Kong Gateway Certified Associate: 50-Question Scenario Quiz and Lab Companion

This is a self-test companion to the 12 practice labs. These are original practice questions built from the published exam topics, not real exam questions.

How to use this guide

  1. Spin up the lab environment from Lab 0 (Kong + Postgres + two httpbin containers on a Docker network).
  2. Answer each question on paper first, before reading the answer and explanation directly below it.
  3. For every question marked Lab check, run the command and watch the real output. Reading about a 401 is not the same as seeing it.
  4. Check each answer in the explanation below its question. Note the domain of every miss.
  5. Re-take only the missed domains after redoing the matching lab.

Scoring: 45+ exam-ready. 38 to 44 solid, review misses. 30 to 37 redo the labs for weak domains. Under 30 restart with the labs, then retake.

Domain map

DomainQuestionsMatching lab
A. Architecture and deployment1 to 6Lab 0, Bonus (hybrid)
B. Services and Routes7 to 15Lab 1
C. Consumers and authentication16 to 23Labs 2, 4, 8
D. Plugins and precedence24 to 30Labs 2 to 7
E. Rate limiting31 to 34Lab 3
F. Load balancing and health checks35 to 40Lab 5
G. Transformation, caching, logging41 to 44Labs 6, 7, 11
H. Declarative config, RBAC, operations45 to 50Labs 9, 10, 12

Assume Admin API on localhost:8001, proxy on localhost:8000, a Service named httpbin-svc, a Route named httpbin-route with path /api, and consumer alice with key alice-secret, unless a question says otherwise.


The Questions, with Answers and Explanations

Domain A: Architecture and deployment

Q1. Kong Gateway is built on which technology stack?

  • A) Envoy proxy with C++ filters
  • B) NGINX/OpenResty with LuaJIT
  • C) Apache HTTP Server with mod_proxy
  • D) Node.js with Express

Answer: B. Kong runs on NGINX with OpenResty and LuaJIT. Plugins are written in Lua (or via PDKs for Go, Python and JavaScript).

Q2. You run curl -i localhost:8000/services and receive {"message":"no Route matched with those values"}. What is the most likely cause?

  • A) The database is down
  • B) Port 8000 is the proxy port, and the Admin API listens on 8001
  • C) The Enterprise licence has expired
  • D) The key-auth plugin is missing

Lab check: compare curl -i localhost:8000/services with curl -i localhost:8001/services.

Answer: B. Port 8000 is the proxy, so /services is treated as a request to be routed and no Route matches. The Admin API is on 8001. This is the most common beginner mistake, and the error message is a clue: “no Route matched” always comes from the proxy side.

Q3. You start Kong against a brand new, empty Postgres database and it refuses to start, reporting that the database needs bootstrapping. Which command do you run first?

  • A) kong migrations up
  • B) kong migrations bootstrap
  • C) kong migrations finish
  • D) kong prepare

Answer: B. kong migrations bootstrap initialises an empty database. Run it once on a fresh install. up and finish are for upgrades.

Q4. You are upgrading Kong in database mode with zero downtime. Which sequence is correct?

  • A) kong migrations finish, then start new nodes, then kong migrations up
  • B) kong migrations up, start new-version nodes, retire old nodes, then kong migrations finish
  • C) kong migrations bootstrap on the existing database, then restart
  • D) Drop the database and run bootstrap again

Answer: B. The upgrade order is kong migrations up, then start the new-version nodes, then retire the old nodes, then kong migrations finish. Running finish too early breaks old nodes that are still serving traffic.

Q5. A team wants a gateway with no database on any node, loading its configuration from a YAML file. Which deployment style is this?

  • A) Traditional mode
  • B) DB-less mode
  • C) Control Plane mode
  • D) Sidecar mode

Answer: B. DB-less mode sets KONG_DATABASE=off and loads KONG_DECLARATIVE_CONFIG. The Admin API only allows reading, plus POST /config to reload.

Q6. In hybrid mode, which statement about Data Plane nodes is true?

  • A) Each Data Plane needs its own Postgres database
  • B) They receive configuration from the Control Plane and can keep serving from cached config if the Control Plane is briefly unreachable
  • C) They must be restarted after every configuration change
  • D) They expose a writable Admin API for local changes

Answer: B. Data Planes receive configuration from the Control Plane over the cluster port (8005) and run database-free. If the Control Plane is briefly unreachable, they keep serving from the last config they received. Connecting uses mutual TLS with a shared cluster certificate.


Domain B: Services and Routes

Q7. Route paths=/api with strip_path=true, Service url=http://httpbin1:80. A client calls /api/get. What path does the upstream receive?

  • A) /api/get
  • B) /get
  • C) /api
  • D) /

Answer: B. With strip_path=true, Kong removes the matched Route path before proxying, so /api/get becomes /get.

Q8. Same setup, but you set strip_path=false. A client calls /api/get and gets a 404 from httpbin. Why?

  • A) Kong blocked the request
  • B) The upstream now receives /api/get, which httpbin does not serve
  • C) The Route was deleted
  • D) The Service host is wrong

Lab check: curl -X PATCH localhost:8001/routes/httpbin-route --data strip_path=false, then curl -i localhost:8000/api/get.

Answer: B. With strip_path=false, the full path /api/get reaches httpbin, which has no such endpoint. This is a classic trap: the 404 comes from the upstream, not Kong. Check the Via: kong/... and X-Kong-Upstream-Latency headers to confirm the request reached the upstream.

Q9. A Service has path=/v1. Route paths=/api, strip_path=true. A client calls /api/users. What does the upstream receive?

  • A) /api/users
  • B) /users
  • C) /v1/users
  • D) /v1/api/users

Answer: C. Kong strips /api and then prepends the Service path /v1, giving /v1/users.

Q10. A Route is configured with hosts=["api.example.com"]. curl -i localhost:8000/api/get returns 404 “no Route matched”. How do you test it correctly without DNS changes?

  • A) curl -i localhost:8000/api/get -H 'Host: api.example.com'
  • B) curl -i localhost:8001/api/get
  • C) Add ?host=api.example.com to the URL
  • D) Restart Kong

Answer: A. Host-based Routes match on the Host header. Send it explicitly with curl. Don’t edit DNS or hosts files for the exam.

Q11. A Route has methods=[GET]. A client sends POST /api/post. What happens?

  • A) 405 from the upstream
  • B) 404 “no Route matched with those values”
  • C) 401 Unauthorized
  • D) The request is converted to GET

Answer: B. A method mismatch means no Route matches, so Kong itself returns 404 “no Route matched with those values”. It does not return 405.

Q12. Two Routes exist: one with path /api, another with path /api/v2. A request arrives for /api/v2/items. Which Route matches?

  • A) /api, because it was created first
  • B) /api/v2, because the longer prefix is the more specific match
  • C) Both, and Kong load balances between them
  • D) Neither, Kong returns 500

Answer: B. When several prefix paths match, the longest and most specific one wins.

Q13. How many Services can a single Route proxy to?

  • A) Any number
  • B) One Service (while a Service can have many Routes)
  • C) Two, a primary and a backup
  • D) None, Routes point directly at Upstreams

Answer: B. Each Route belongs to one Service. One Service can have many Routes, which is how you expose one backend on several paths or hosts.

Q14. You create a Service with --data url=https://example.com:8443/base. Which Service fields does Kong populate from that URL?

  • A) host only
  • B) protocol, host, port and path
  • C) protocol and host only
  • D) None, the url field is only a label

Answer: B. The url shorthand is split into protocol, host, port and path. You can also set those fields individually.

Q15. Which response headers does Kong add to proxied responses to show latency?

  • A) X-Request-Time and X-Response-Time
  • B) X-Kong-Upstream-Latency and X-Kong-Proxy-Latency
  • C) X-Latency-Kong only
  • D) None, you must enable a plugin

Answer: B. X-Kong-Upstream-Latency is the time waiting for the upstream. X-Kong-Proxy-Latency is the time Kong spent processing. Both are added by default.


Domain C: Consumers and authentication

Q16. key-auth is enabled on httpbin-svc. A client sends no credentials. What is returned?

  • A) 403 Forbidden
  • B) 401 with a message saying no API key was found in the request
  • C) 200 OK
  • D) 404 Not Found

Answer: B. A missing credential gives 401 with a “No API key found in request” message.

Q17. The same client sends apikey: wrong. What is returned?

  • A) 401 with a message saying the authentication credentials are invalid
  • B) 403 Forbidden
  • C) 200 OK with reduced access
  • D) 429 Too Many Requests

Answer: A. An invalid credential gives 401 with an “Invalid authentication credentials” message. Memorise the difference between the missing and invalid wording.

Q18. Which Admin API call adds an API key to consumer alice?

  • A) POST /keys with consumer=alice
  • B) POST /consumers/alice/key-auth --data key=alice-secret
  • C) PUT /plugins/key-auth/alice
  • D) POST /services/httpbin-svc/key-auth

Answer: B. Credentials hang off the Consumer: POST /consumers/alice/key-auth. The same pattern works for basic-auth, jwt, hmac-auth and others.

Q19. What does hide_credentials=true do on key-auth?

  • A) Encrypts the key in the database
  • B) Strips the credential from the request before it is forwarded to the upstream
  • C) Hides the consumer from the Admin API
  • D) Removes the key from Kong’s logs only

Answer: B. hide_credentials=true removes the key header or query parameter before the request is sent to the upstream, so your backend never sees it.

Q20. ACL allow=[gold] is on httpbin-svc. Consumer bob has a valid key but is in no group. What happens?

  • A) 401
  • B) 403 “You cannot consume this service”
  • C) 200 OK
  • D) 404

Lab check: create bob with key bob-secret and call the API with that key before and after adding him to gold.

Answer: B. The consumer was authenticated, so it is not a 401. ACL then denies because the consumer is not in an allowed group: 403 “You cannot consume this service”. ACL always needs an authentication plugin to identify the consumer first.

Q21. Which statement correctly distinguishes 401 from 403 in Kong?

  • A) 401 means authentication failed or is missing, 403 means the consumer was identified but is not authorized
  • B) 401 means authorization failed, 403 means authentication failed
  • C) They are interchangeable
  • D) 403 is only returned by the upstream

Answer: A. 401 means “I don’t know who you are”. 403 means “I know who you are, but you can’t do this”.

Q22. With the JWT plugin, what must match the token’s iss claim by default?

  • A) The consumer username
  • B) The key field of the consumer’s JWT credential
  • C) The Service name
  • D) The Route ID

Answer: B. By default the JWT plugin finds the credential by matching the token’s iss claim against the credential’s key. The signature is then verified using that credential’s secret. You can change the claim name with key_claim_name.

Q23. You want unauthenticated callers to be allowed through key-auth as a low-privilege consumer. What do you configure?

  • A) Set config.anonymous to an anonymous consumer
  • B) Delete the plugin
  • C) Set hide_credentials to false
  • D) Add an ACL deny rule

Answer: A. Set config.anonymous to an anonymous consumer. Unauthenticated callers are then treated as that consumer, and you can limit it with ACLs or rate limits.


Domain D: Plugins and precedence

Q24. rate-limiting (5/minute) is on httpbin-svc. Another rate-limiting instance (100/minute) is on consumer alice. What limit applies to alice’s requests?

  • A) 5 per minute, the Service always wins
  • B) 100 per minute, because the Consumer-scoped plugin is more specific than the Service-scoped one
  • C) 105 per minute, they add up
  • D) Both run, and the lower one is enforced

Answer: B. Precedence runs from most specific to least: Consumer+Route+Service, Consumer+Route, Consumer+Service, Route+Service, Consumer, Route, Service, then Global. Consumer beats Service, so alice gets 100 per minute.

Q25. The same plugin type is configured on both a Route and its Service. How many instances run for a request on that Route?

  • A) Both, one after the other
  • B) One, and the Route-scoped one takes precedence
  • C) One, the Service-scoped one
  • D) None, this is a conflict error

Answer: B. Only one instance of a given plugin runs per request, chosen by the precedence order. The Route-scoped one beats the Service-scoped one.

Q26. How do you create a plugin that applies to every request through Kong?

  • A) POST /plugins with no Service, Route or Consumer specified
  • B) POST /global/plugins
  • C) Add it to every Route manually
  • D) Set KONG_GLOBAL=true

Answer: A. A plugin created at POST /plugins with no scope is global.

Q27. Creating a plugin returns an error saying the plugin is not enabled and to add it to the plugins configuration property. What is the fix?

  • A) Add the plugin name to KONG_PLUGINS (or plugins in kong.conf) and restart or reload Kong
  • B) Reinstall Postgres
  • C) Create a Consumer first
  • D) Use port 8444

Answer: A. The plugin has to be in the plugins property (for example KONG_PLUGINS=bundled,my-plugin). Restart or reload Kong after changing it.

Q28. How can you temporarily switch off a plugin without deleting its configuration?

  • A) PATCH /plugins/{id} --data enabled=false
  • B) Delete and recreate it later
  • C) Rename it
  • D) Not possible

Answer: A. PATCH /plugins/{id} --data enabled=false keeps the config but stops the plugin running.

Q29. What determines the order in which plugins execute during a request?

  • A) The order they were created
  • B) Alphabetical plugin name
  • C) Each plugin’s built-in priority
  • D) Random

Answer: C. Execution order is set by each plugin’s fixed priority, not by when you created it. For example, authentication plugins run before rate limiting so that per-consumer limits work.

Q30. A plugin is scoped to Route A. A request is proxied via Route B. Does the plugin run?

  • A) Yes, plugins are shared across Routes of the same Service
  • B) No, it only runs for requests matched to Route A
  • C) Yes, but only the access phase
  • D) Only if it is a logging plugin

Answer: B. A Route-scoped plugin only runs for requests matched to that Route.


Domain E: Rate limiting

Q31. You run a 3-node Kong cluster in database mode with no Redis available and need accurate shared counters. Which policy fits?

  • A) local
  • B) cluster
  • C) memory
  • D) sync

Answer: B. local keeps counters per node, so three nodes give roughly three times the limit. cluster stores counters in the database for accuracy but adds load, and it is not available for hybrid Data Planes. redis is the scalable and accurate option when Redis exists.

Q32. A client exceeds the configured limit. What does Kong return?

  • A) 503
  • B) 429, with rate-limit headers such as Retry-After and X-RateLimit-Remaining-Minute
  • C) 403 with an empty body
  • D) 200 with an error body

Answer: B. Exceeding the limit returns 429, along with headers such as Retry-After and X-RateLimit-Remaining-Minute.

Q33. What does the rate-limiting plugin count by default (limit_by)?

  • A) The Consumer, falling back to client IP when no Consumer is identified
  • B) The Service only
  • C) The request path
  • D) A custom header

Answer: A. limit_by defaults to the Consumer, falling back to the client IP when there is no authenticated Consumer. Other options are credential, ip, service, header and path.

Q34. Config is minute=5 and hour=100. A client has used 40 requests this hour but sends a 6th request within one minute. What happens?

  • A) Allowed, the hourly limit has room
  • B) 429, because the minute limit is already exhausted
  • C) Allowed, only the largest window is enforced
  • D) Kong picks one limit at random

Lab check: loop 7 requests with curl -s -o /dev/null -w '%{http_code}\n' and observe 5 successes then 429.

Answer: B. Every configured window is enforced independently. Exhausting the minute window returns 429 even when the hour window has room.


Domain F: Load balancing and health checks

Q35. What must be true for a Service to use an Upstream’s load balancer?

  • A) The Service host equals the Upstream name
  • B) The Service path equals the Upstream name
  • C) A Route with the Upstream’s name exists
  • D) A plugin named balancer is enabled

Answer: A. The Service host must exactly match the Upstream name. That is the link between the two entities.

Q36. What is the default load-balancing algorithm for an Upstream?

  • A) round-robin
  • B) least-connections
  • C) consistent-hashing
  • D) random

Answer: A. The default is round-robin. Alternatives are consistent-hashing (needs hash_on), least-connections, and in newer versions latency and sticky sessions.

Q37. Two Targets have weights 100 and 50. Roughly how is traffic split?

  • A) 50/50
  • B) 2:1 in favour of the weight-100 Target
  • C) 1:2
  • D) All traffic to the weight-100 Target

Answer: B. Weights are proportional, so 100 to 50 is a 2:1 split.

Q38. A Target was marked unhealthy by passive health checks. Which is true?

  • A) Passive checks bring it back after a timer
  • B) Passive checks cannot recover a Target; active checks (or a manual API call) are needed
  • C) It recovers on the next request automatically
  • D) It is removed permanently

Answer: B. Passive checks only observe real traffic and can mark a Target unhealthy. They never bring it back. Active probes recover it, or you can do it manually with POST /upstreams/{u}/targets/{t}/healthy.

Q39. All Targets in an Upstream are unhealthy. What does a client see?

  • A) 503, “failure to get a peer from the ring-balancer”
  • B) 401
  • C) 404
  • D) A cached 200

Answer: A. With no healthy Targets Kong returns 503 with “failure to get a peer from the ring-balancer”. A bad DNS name gives a different 503 mentioning name resolution.

Q40. Which Admin API call shows the health status of an Upstream’s Targets?

  • A) GET /upstreams/{name}/health
  • B) GET /health/{name}
  • C) GET /targets/status
  • D) GET /status/upstreams

Answer: A. GET /upstreams/{name}/health lists each Target as HEALTHY or UNHEALTHY.


Domain G: Transformation, caching and logging

Q41. In request-transformer, how does add.headers differ from replace.headers?

  • A) add sets the header only if it is missing, replace changes it only if it already exists
  • B) They are identical
  • C) add removes existing values, replace appends
  • D) replace creates headers, add deletes them

Answer: A. add only sets a header that is missing. replace only overwrites one that already exists. append adds another value even if the header exists.

Q42. proxy-cache is enabled with strategy=memory. You send the same cacheable GET twice. What does the second response show?

  • A) X-Cache-Status: Hit
  • B) X-Cache-Status: Miss
  • C) X-Cache-Status: Bypass
  • D) No cache header

Answer: A. The first request is Miss and the second is Hit. Other statuses are Refresh and Bypass.

Q43. Which call purges the entire proxy-cache?

  • A) DELETE /proxy-cache
  • B) POST /proxy-cache/flush
  • C) DELETE /plugins/proxy-cache
  • D) kong cache purge

Answer: A. DELETE /proxy-cache purges everything. You can also purge by cache key with DELETE /proxy-cache/{key}.

Q44. In a Kong log entry, what does latencies.proxy represent?

  • A) Time spent inside Kong’s own processing
  • B) Time waiting for the upstream service to respond
  • C) Total request time
  • D) DNS resolution only

Answer: B. latencies.proxy is the upstream wait, latencies.kong is Kong’s own time, and latencies.request is the total.


Domain H: Declarative config, RBAC and operations

Q45. Which decK command previews changes without applying them?

  • A) deck gateway sync
  • B) deck gateway diff
  • C) deck gateway reset
  • D) deck gateway apply

Answer: B. deck gateway diff is the dry run. sync applies the changes and deletes anything not in the file. Older decK versions use deck diff and deck sync.

Q46. A node runs DB-less. You run curl -X POST localhost:9001/services --data name=x --data url=http://a. What is returned?

  • A) 201 Created
  • B) 405, because the Admin API is read-only in DB-less mode
  • C) 401
  • D) 500

Answer: B. DB-less mode is read-only through the Admin API, so writes return 405.

Q47. Which command validates a declarative kong.yml file before you load it?

  • A) kong check kong.yml
  • B) kong config parse kong.yml
  • C) kong validate kong.yml
  • D) kong health kong.yml

Answer: B. kong config parse kong.yml validates the declarative file. Always run it before loading.

Q48. How do you hot-load a new declarative config into a running DB-less node?

  • A) curl -X POST localhost:8001/config -F config=@kong.yml
  • B) curl -X PUT localhost:8001/services
  • C) Run kong migrations up
  • D) Replace the file and nothing else is needed

Answer: A. POST /config with the file reloads a running DB-less node without a restart.

Q49. With RBAC enforced, which HTTP header carries the Admin API token?

  • A) Authorization: Admin
  • B) Kong-Admin-Token
  • C) X-Admin-Key
  • D) apikey

Answer: B. The header is Kong-Admin-Token. Roles and endpoint permissions control what that token can do.

Q50. You create a Route through the Admin API of node A (database mode, two nodes). Node B returns 404 for it for a few seconds, then works. Why?

  • A) A bug in node B
  • B) Cache invalidation between nodes is eventually consistent, governed by settings such as db_update_frequency (default 5 seconds)
  • C) Routes require a restart to take effect
  • D) The Route is only active on the node that created it

Answer: B. Nodes sharing a database learn about changes through polling and cache invalidation, governed by db_update_frequency (default 5 seconds). Short inconsistencies between nodes are normal.



Score sheet

DomainQuestionsYour score
A. Architecture and deployment6___ / 6
B. Services and Routes9___ / 9
C. Consumers and authentication8___ / 8
D. Plugins and precedence7___ / 7
E. Rate limiting4___ / 4
F. Load balancing and health checks6___ / 6
G. Transformation, caching, logging4___ / 4
H. Declarative config, RBAC, operations6___ / 6
Total50___ / 50

Targeted revision

  • Missed A: redo Lab 0 and the hybrid bonus. Practise the migration command order until it is automatic.
  • Missed B: redo Lab 1 and deliberately break strip_path, hosts and methods to see each failure.
  • Missed C: redo Labs 2, 4 and 8. Write the four error messages from memory (401 missing, 401 invalid, 403 ACL, 401 JWT).
  • Missed D or E: rebuild the precedence ladder from memory, then repeat Lab 3 with Service-level and Consumer-level limits together.
  • Missed F: redo Lab 5 and stop a container to watch the health status change.
  • Missed G: redo Labs 6, 7 and 11. Read the log JSON and identify each latency field.
  • Missed H: redo Labs 9, 10 and 12. Practise the troubleshooting table until symptom-to-cause is instant.

Final exam-day checklist

  1. Start every task by confirming what is running: curl localhost:8001/ and curl localhost:8001/status.
  2. After each change, test with curl -i so you see status codes and headers.
  3. When something fails, decide first whether the error came from Kong or from the upstream.
  4. Keep the Kong docs open for exact plugin parameter names. Knowing where to look is faster than guessing.
  5. Verify the final state of every task before moving on. Check that the plugin is attached to the right scope and the Route is on the right Service.

Leave a Reply

Your email address will not be published. Required fields are marked *