Scenario-Based Kong Interview Questions (2027)
40 scenario-based Kong interview questions: 404 no route matched, 502, 503 ring-balancer, rate limits across nodes, decK, hybrid mode and KIC.
Scenario-based Kong interview questions give you a production situation, such as a 404 from the gateway, a 503 from the load balancer, a rate limit that does not hold across nodes, or a plugin applied to the wrong traffic, and ask how you would find the cause and fix it using Kong services, routes, upstreams, plugins and decK. This page has 40 scenarios with answers, grouped by level.
Ports, defaults, error messages and commands were checked against the Kong documentation at developer.konghq.com in November 2026.
Key takeaways
- Know the default listeners: proxy on 8000 (HTTP) and 8443 (HTTPS), Admin API on 8001 and 8444. In hybrid mode the control plane listens for data planes on 8005 by default.
- A 404 with "no Route matched with those values" is a routing problem. A 502 or 504 is an upstream problem. A 503 from the ring balancer means no healthy target.
- When the same plugin is configured at several scopes, the most specific one wins (consumer plus route plus service beats a global plugin).
- The rate-limiting plugin's
localpolicy counts per node. Useredisfor a shared count across nodes, especially in DB-less or hybrid deployments whereclusteris not available. - Answer every scenario in four steps: what you check first, the likely cause, the fix, and how you stop it recurring.
Which Kong page to read
This is the scenario set. For concepts and hands-on configuration, read 75+ Kong interview questions: hands-on config and Kong API Gateway interview questions. For engineer-level design, read Kong engineer interview questions. For a quick revision list use Kong FAQs asked in DevOps interviews, and for a study schedule the 4-week Kong prep guide.
| Status or symptom | Usually means | Check first |
|---|---|---|
| 404 "no Route matched with those values" | No route matches host, path, method or headers | Route definitions, Host header, path prefix |
| 401 "No API key found in request" | Auth plugin expects a credential | Key name and location, consumer credentials |
| 429 | Rate limit reached | Plugin scope, policy, limits |
| 502 | Kong could not get a valid response from upstream | Upstream host, port, protocol, TLS |
| 503 "failure to get a peer from the ring-balancer" | No healthy targets in the upstream | Health checks, target list |
| 504 | Upstream timed out | Service timeouts, upstream latency |
Scenario questions for freshers
1. A new API returns 404 "no Route matched with those values". What do you check?
The request did not match any route. Compare the request with the route: path (and whether it is a prefix or regex), hosts, methods and headers. A common cause is the client sending a different Host header than the route expects, or a path missing its leading slash. Test with curl -i http://localhost:8000/path -H "Host: api.example.com".
2. The route matches, but the backend receives the wrong path. Why?
Check strip_path. It is true by default, so Kong removes the matched route path before forwarding. A route on /orders forwards /orders/42 as /42 unless the service has a path or you set strip_path: false. Also check the service's own path field, which is prepended.
3. The backend uses the Host header for virtual hosting and returns the wrong site. What do you change?
By default preserve_host is false, so Kong sends the upstream's host name, not the client's. Set preserve_host: true on the route if the backend needs the original Host header.
4. Clients get 426 when calling an HTTP URL. Why?
The route allows only HTTPS, and the default https_redirect_status_code is 426 (Upgrade Required). Either call the HTTPS listener on 8443 or change the status code to 301 or 308 if you want browsers redirected.
5. A team cannot reach the Admin API from their laptop. Should you open port 8001?
No. The Admin API controls the whole gateway, so it should listen only on localhost or a private network, protected by network rules (and RBAC in Kong Enterprise). Give the team access through decK in a pipeline or through a secured internal endpoint instead.
6. Requests return 401 "No API key found in request" after enabling key-auth. What is wrong?
The client is not sending the key where the plugin looks. Check the plugin's key_names (default apikey) and whether it reads headers, query string or body. Confirm the consumer has a key-auth credential and the key value matches.
7. Key-auth works but every consumer gets the same rate limit. Why?
The rate-limiting plugin is configured once on the service with limit_by: consumer and the same limit for everyone. For different tiers, add rate-limiting plugins scoped to specific consumers or consumer groups with their own limits.
8. A plugin you enabled seems to have no effect. What do you check?
Check its scope: is it on the right service, route or consumer, or global? Check it is enabled and the protocols field includes the request protocol. Check whether a more specific instance of the same plugin overrides it. Call the Admin API /plugins endpoint to list what is really configured.
9. CORS errors appear in the browser after moving an API behind Kong. What do you do?
Enable the CORS plugin on the route or service with the allowed origins, methods and headers the frontend uses, and include credentials only if needed. Make sure the route accepts OPTIONS requests so preflight reaches the plugin.
10. You changed config in the database but a node still serves old behaviour. Why?
Nodes cache entities and refresh on a polling interval controlled by db_update_frequency (5 seconds by default). Wait a few seconds and test again. If one node never updates, check its database connectivity and logs.
11. How do you check whether Kong is healthy during an incident?
Run kong health on the node, query the Admin API status endpoint, and check the error log (by default under the Kong prefix in logs/error.log). For load balancers, use the status listener if configured rather than the proxy port.
12. A route with a regex path does not match. What is a common mistake?
In Kong 3.x, regex paths must start with ~, for example ~/users/\d+$. Without the prefix, Kong treats the path as a plain prefix. Also check regex priority if several regex routes could match.
Scenario questions for 2 to 5 years of experience
13. Users see 503 "failure to get a peer from the ring-balancer". What happened?
The upstream has no healthy targets. Either all targets failed health checks, the targets list is empty, or they were marked unhealthy by passive checks after errors. Check upstream health through the Admin API, fix the targets, and review health check thresholds so one slow minute does not mark everything down.
14. How do you configure Kong to stop sending traffic to a failing backend instance?
Use upstream health checks. Active checks probe each target on a path and interval; passive checks (circuit breaking) watch real traffic and mark a target unhealthy after a set number of failures. Passive checks alone never bring a target back, so pair them with active checks or re-enable targets manually.
15. Requests fail with 504 after 60 seconds on a report endpoint. What do you change?
The service's read_timeout defaults to 60000 ms. Raise it on a separate service or route used only by the long report endpoint rather than for the whole API, or better, make the report asynchronous. Also check timeouts on any load balancer in front of Kong.
16. A POST was executed twice on the backend after a timeout. Why?
Kong retries failed requests to upstreams; retries defaults to 5 on a service. If the backend processed the first attempt but responded late, the retry can repeat a non-idempotent action. Lower retries for such services or make the API idempotent with request IDs.
17. Rate limits are exceeded even though each node shows counts under the limit. Why?
With policy: local, each node counts separately, so three nodes allow roughly three times the limit. Switch to policy: redis for a shared counter. cluster uses the database and is not available for DB-less or hybrid data planes.
18. Redis went down and all API calls started failing. How do you prevent this?
Set fault_tolerant: true on the rate-limiting plugin so Kong proxies requests when it cannot reach the counter store, and make Redis highly available. Decide with the business whether failing open (allow traffic) or failing closed is safer for that API.
19. A JWT-protected API rejects valid tokens. What do you check?
Check that the JWT credential's key matches the claim Kong uses to find the consumer (by default iss), the algorithm and secret or public key match, the token is not expired if exp is verified, and the token is sent in the header or parameter the plugin reads.
20. Only internal clients should reach an admin route. How do you enforce it?
Add the IP restriction plugin to that route with allowed internal ranges, and combine it with authentication and the ACL plugin so only a specific consumer group can call it. Make sure Kong sees the real client IP by setting trusted_ips and real_ip_header when behind a load balancer.
21. Logs show the load balancer's IP for every client. How do you fix it?
Configure trusted_ips with the load balancer's addresses and set real_ip_header (for example X-Forwarded-For, or proxy_protocol if you use PROXY protocol). Then plugins such as IP restriction and rate limiting by IP use the real client address.
22. A config change made with the Admin API by hand broke production. How do you stop this?
Manage configuration declaratively with decK in Git. Run deck gateway diff in pull requests and deck gateway sync from the pipeline after approval. Lock down direct Admin API access so manual changes are rare and visible.
deck gateway diff kong.yaml
deck gateway sync kong.yaml
23. decK sync deleted entities another team created. Why?
decK treats the state file as the full truth and removes entities not in it. Use tags with select_tags so each team's file manages only its own tagged entities, or split workspaces in Enterprise. Run diff before sync so deletions are visible.
24. On Kubernetes, a KongPlugin does nothing. What do you check?
Check the annotation konghq.com/plugins is on the right Ingress, HTTPRoute, Service or KongConsumer and names the KongPlugin exactly, the KongPlugin is in the same namespace (or use KongClusterPlugin), and the controller logs show no errors syncing it.
25. Requests through the Kubernetes Ingress Controller return 404 for a new HTTPRoute. Why?
Check the HTTPRoute's parentRefs point at a Gateway the Kong controller manages, the Gateway listener allows the route's namespace, the hostnames match, and the route status conditions show accepted. Kubernetes Gateway API status messages usually say why a route is not attached.
26. You need to send 10% of traffic to a new version. How do you do it in Kong?
Use an upstream with two targets weighted 90 and 10, or two upstreams and a traffic splitting method supported by your Kong edition. On Kubernetes with Gateway API, use weighted backendRefs on an HTTPRoute. Watch error rates per version and shift weights gradually.
27. Response latency rose after enabling several plugins. How do you find the cause?
Compare Kong latency (time spent in Kong) with upstream latency using the latency headers or the Prometheus plugin metrics. If Kong latency rose, test removing plugins one at a time; logging plugins that call slow endpoints and plugins that call external services (such as Redis or an identity provider) are common causes.
Scenario questions for senior engineers
28. The control plane in hybrid mode went down. What happens to traffic?
Data planes keep serving traffic with the last configuration they received, which they cache. You cannot change config until the control plane returns. Restore it, then check data planes reconnect on the cluster port (8005 by default) and report the expected config hash.
29. A new data plane joins but never receives config. What do you check?
Check the cluster certificate and key match between control plane and data plane, the data plane can reach the control plane cluster listener, the role and cluster_control_plane settings are correct, and the versions are compatible (data planes should not be newer than the control plane).
30. How do you upgrade Kong with minimal risk?
Read the upgrade notes for breaking changes, test with your declarative config in staging, and back up the database. For traditional mode, run kong migrations up, roll new nodes, then kong migrations finish. For hybrid, upgrade the control plane first, then data planes in batches.
31. Prometheus shows Kong metrics but no per-service breakdown. Why?
Since Kong 3.0, per-service status code and latency metrics in the Prometheus plugin are opt-in. Enable the relevant options (such as status_code_metrics and latency_metrics) and watch label cardinality, since per-route labels can grow large.
32. How do you trace one failing request across Kong and backend services?
Add a correlation ID with the correlation-id plugin or use the OpenTelemetry plugin to propagate trace context. Log the ID in Kong's logging plugin and in each service so you can follow one request end to end.
33. A custom plugin crashes some requests. How do you handle it in production?
Disable the plugin on affected routes to stop the impact, read the error log for the Lua stack trace, reproduce in staging with the same request, fix it, and add tests with Kong's plugin test tooling. Roll out custom plugins with the same review and staging process as application code.
34. Security asks you to block a sudden flood from one client. What do you do?
Identify the client by consumer, key or real IP from logs. Apply a strict rate limit or IP restriction on the affected route right away, then work with the client or revoke their credential. Afterwards, set sensible default limits so one client cannot exhaust capacity again.
35. You must rotate a TLS certificate on the gateway without downtime. How?
Upload the new certificate and SNI entities (through decK or the Admin API), confirm it is served with openssl s_client -servername, then remove the old one. Kong picks up certificate changes without a restart. Track expiry dates and alert before they lapse.
36. One team's misconfiguration keeps affecting other teams on a shared gateway. What do you change?
Give each team its own decK file scoped by tags, use workspaces and RBAC in Kong Enterprise, apply global plugins only for true platform rules, and validate config in CI before sync. For very different traffic or risk levels, run separate gateway deployments.
Incident drills: put it all together
37. After a deploy, 30% of requests return 502. Walk through your response.
Check whether the 502s map to one upstream target. Kong logs show the upstream address and error, such as connection refused or TLS handshake failure. If one new target is broken, remove it or set its weight to 0, roll back the deploy, then fix health checks so Kong stops routing to failing targets on its own.
38. Traffic doubled for a sale and Kong nodes hit CPU limits. What do you do now and later?
Scale out data plane nodes now and disable non-essential plugins on hot routes if needed. Later, load test with realistic traffic, use the proxy-cache plugin for cacheable responses, move TLS termination where it makes sense, and set autoscaling on CPU.
39. A partner says their calls get 429 even though they are under the agreed limit. How do you check?
Find which plugin instance applies to them and its scope, limits and window. Check whether limit_by groups them with other traffic (for example by IP behind a shared NAT) and whether the policy counts across nodes as expected. Fix the scope or limit and confirm in logs.
40. Leadership asks how to stop gateway incidents repeating. What do you propose?
Config in Git through decK with review and diff, health checks on every upstream, rate limits by default, dashboards and alerts on 4xx, 5xx and latency per service, tested upgrade runbooks, and a short review after each incident with owners for each action.
How to prepare for scenario-based Kong questions
- Run Kong in Docker with Postgres, then again in DB-less mode with a declarative file.
- Create a service, route and upstream with two targets, then stop one target and watch health checks.
- Recreate the 404, 401, 429, 502 and 503 cases above and read the error log for each.
- Manage everything with decK and practise
diffandsync. - Install the Kong Ingress Controller on a small cluster and attach a plugin with an annotation.
For wider context, see self-hosted API gateways compared and the 200+ DevOps interview questions hub. Kong is often deployed on Kubernetes, so our CKA training, run in our Kharadi, Pune classroom and live online, is a useful next step.
Official references
- Kong Gateway documentation
- Kong configuration reference
- Route entity
- Service entity
- Hybrid mode
- Rate Limiting plugin
- Prometheus plugin
- decK
- Kong Ingress Controller
- Kubernetes Gateway API
FAQs
What does "no Route matched with those values" mean in Kong?
Kong returned 404 because no route matched the request's host, path, method or headers. Compare the request with your route definitions.
What are Kong's default ports?
Proxy 8000 (HTTP) and 8443 (HTTPS), Admin API 8001 and 8444. In hybrid mode the control plane listens for data planes on 8005 by default.
Why does Kong return 503 "failure to get a peer from the ring-balancer"?
The upstream has no healthy targets, either because health checks marked them down or because no targets are configured.
Why are my Kong rate limits not shared across nodes?
The local policy counts per node. Use the redis policy for a shared counter; cluster is not available in DB-less or hybrid data planes.
Does traffic stop if the Kong control plane fails in hybrid mode?
No. Data planes keep serving with their cached configuration, but you cannot change configuration until the control plane is back.
What is the default timeout for a Kong service?
Connect, read and write timeouts default to 60000 milliseconds, and retries default to 5.
How should I answer a Kong scenario question?
Say what you would check first, the likely cause, the fix, and how you would prevent it from happening again.
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0