Kong Engineer Interview Questions with Answers (2027)
62 Kong engineer interview questions for experienced roles: deployment modes, decK CI/CD, rate limiting, upgrades, observability and incidents.
A Kong engineer interview for an experienced role tests whether you can run Kong Gateway in production: pick a deployment topology, size and tune nodes, ship configuration through CI/CD, secure the Admin API, watch the right metrics, upgrade without downtime and debug 4xx and 5xx errors quickly. This page holds 62 questions on exactly that.
Key takeaways
- This set is for engineers with about 3 or more years of hands-on work who own a Kong platform. For definitions start with the main Kong API Gateway interview questions; for Admin API and decK syntax drills use the hands-on Kong configuration questions.
- Interviewers at this level care about trade-offs: traditional vs DB-less vs hybrid mode, local vs Redis rate limiting, active vs passive health checks.
- Expect at least one incident walk-through. Answer in order: scope, recent change, Kong logs and latency headers, upstream health, rollback.
- Know where the docs say a feature is Enterprise-only, and say so in the interview instead of guessing.
- Check the Kong version the employer runs. Answers below follow Kong Gateway 3.x documentation.
How this page differs from the other Kong question sets
| Page | Focus | Best for |
|---|---|---|
| Kong API Gateway interview questions | Concepts across all levels: entities, plugins, modes, KIC, Konnect | First pass for any Kong interview |
| 75+ Kong interview questions | Commands and config: Admin API calls, decK, KIC YAML, Lua plugin files | Practical rounds and live coding |
| This page | Running Kong as a platform: sizing, release process, security, observability, upgrades, incidents | Platform, SRE and senior API engineer roles |
Foundation checks for Kong engineers
Even senior interviews open with a few quick checks. Keep these answers short and precise.
1. What does a Kong engineer own on a platform team?
Usually the gateway runtime (nodes, versions, kong.conf), the configuration pipeline (decK or Kubernetes manifests), shared plugins and policies, certificates, observability, and on-call for gateway incidents. Product teams own their Services and Routes; the Kong engineer owns the guardrails around them.
2. Explain the request path through Kong in one minute.
A client connects to the proxy listener. Kong's router matches the request to a Route using protocols, hosts, paths, methods, headers or SNIs. The Route points to a Gateway Service, which names an upstream host or an Upstream object. Plugins configured globally, on the Service, Route or Consumer run in their phases (for example access, header_filter, log). Kong then proxies to a Target selected by the load balancer and returns the response.
3. Which kong.conf settings do you check first on an unfamiliar node?
database (postgres or off), role (traditional, control_plane or data_plane), proxy_listen, admin_listen, status_listen, nginx_worker_processes, mem_cache_size, plugins, and the logging paths. Any setting can also come from an environment variable with the KONG_ prefix, so check the container or systemd environment too.
curl -s http://localhost:8001/ | jq '.configuration | {database, role, proxy_listen, admin_listen}'
The Admin API root endpoint returns the running configuration, which is the safest source of truth because it includes environment overrides.
4. What is the difference between the Admin API and the Status API?
The Admin API reads and writes configuration and must be locked down. The Status API, enabled with status_listen, exposes read-only health and metrics endpoints such as /status, so load balancers and Prometheus can reach it without access to the Admin API.
5. Why do Kong engineers care about Nginx worker processes?
Kong runs on OpenResty, so each Nginx worker handles requests independently with its own Lua VM. nginx_worker_processes defaults to auto (one per CPU core). Per-worker state, such as in-memory counters in the local rate-limiting policy, is shared across workers on a node through shared dictionaries but not across nodes.
6. What is the Kong database cache and why does it matter?
In traditional mode each node caches entities it reads from Postgres in memory (mem_cache_size). Nodes poll for changes every db_update_frequency seconds and invalidate cached entries. That polling interval is why a change made on one node can take a few seconds to show on others.
7. Which response headers help you tell Kong time from backend time?
X-Kong-Upstream-Latency is the time the upstream took to start responding, and X-Kong-Proxy-Latency is the time Kong spent running plugins and routing. If upstream latency is high, the problem is behind Kong. If proxy latency is high, look at plugins, DNS or the node itself. Teams often hide these headers from external clients with the headers setting in kong.conf.
8. What does a Kong engineer need to know about tags?
Tags label entities, and decK uses select_tags to manage only the entities with a given tag. On a shared cluster each team gets its own tag so one team's sync cannot delete another team's Routes.
9. How do you confirm which plugins a node has loaded?
Call GET / on the Admin API and read plugins.available_on_server, or check the plugins setting (default bundled, plus any custom plugin names). A custom plugin missing from that setting cannot be configured, and decK will fail with a schema error.
10. What is the difference between a Kong Service timeout and a client timeout?
A Gateway Service has connect_timeout, write_timeout and read_timeout toward the upstream, each 60000 ms by default, plus retries (default 5). A client or load balancer in front of Kong has its own idle timeout. If the front load balancer times out first, clients see an error from the load balancer while Kong may still be waiting on the backend.
Kong engineer questions for 2 to 5 years of experience
11. How do you choose between traditional, DB-less and hybrid mode?
Choose traditional mode for a small setup where every node can reach Postgres and you want Admin API writes. Choose DB-less when configuration lives in Git or comes from Kong Ingress Controller, and you accept a read-only Admin API. Choose hybrid when you want a central control plane with a database and many data planes in other networks or regions that hold no database credentials.
| Mode | Config source | Database on proxy nodes | Typical use |
|---|---|---|---|
| Traditional | Admin API writes to Postgres | Yes | Single site, small teams |
| DB-less | Declarative file or KIC | No | Kubernetes, GitOps, edge |
| Hybrid | Control plane pushes to data planes | Only on the control plane | Multi-region, many data planes |
12. Which features behave differently in DB-less mode?
The Admin API cannot create or change entities; you replace the whole configuration with POST /config or a new file. Plugins that need a database to store state cannot keep it in Postgres, so the rate-limiting cluster policy is not available and you use local or redis. Kong's docs list plugin compatibility per mode; check it before promising a feature.
13. How do you design the CI/CD pipeline for Kong configuration?
Keep declarative files in Git per team or per domain. On a pull request run deck file validate or deck gateway validate, lint against house rules, and post deck gateway diff output for review. On merge, run deck gateway sync against staging, run smoke tests, then promote to production with the same files and environment-specific values injected from variables.
deck gateway diff --select-tag team-payments payments.yaml
deck gateway sync --select-tag team-payments payments.yaml
14. How do you stop teams from creating risky configuration?
Use decK lint rules or a policy step in CI to block things like Routes without an auth plugin, plugins outside an allow list, or missing tags. In Enterprise, Workspaces and RBAC limit who can touch which entities. Global plugins that the platform team owns, such as logging and correlation IDs, sit in a file teams cannot edit.
15. How do you manage environment differences between staging and production?
Keep one set of files and template only the values that differ, such as upstream hostnames and credentials. decK supports environment variable substitution in files, and secrets should come from a vault reference rather than plain text in Git.
16. How do you reference secrets instead of storing them in Kong?
Kong supports vault references in referenceable fields, written as {vault://backend/path}. The env vault ships with Kong; other backends such as HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager and Azure Key Vault are documented, some only in Enterprise. Check the docs for which fields are referenceable.
17. When do you use local, cluster and redis rate-limiting policies?
local keeps counters in node memory: fastest, but each node counts separately. cluster stores counters in the database: accurate in traditional mode, adds database load, and is not available in DB-less or hybrid data planes. redis shares counters across all nodes through Redis: accurate and the usual choice for multi-node clusters, at the cost of a Redis dependency.
18. What happens to rate limiting if Redis goes down?
The plugin has a fault_tolerant option. When true (the default), Kong keeps proxying requests if it cannot reach the counter store, so limits are not enforced during the outage. When false, Kong returns errors instead. Pick based on whether availability or strict enforcement matters more for that API, and alert on Redis errors in the Kong error log.
19. How do you configure health checks on an Upstream?
Active checks probe a path on each Target at an interval and mark it healthy or unhealthy after a number of successes or failures. Passive checks watch real traffic and mark a Target unhealthy after errors or timeouts. Passive checks cannot bring a Target back on their own; you need active checks or a manual reset for that.
upstreams:
- name: orders-upstream
healthchecks:
active:
http_path: /healthz
healthy: { interval: 5, successes: 2 }
unhealthy: { interval: 5, http_failures: 3, timeouts: 3 }
passive:
unhealthy: { http_failures: 5, timeouts: 3 }
targets:
- target: 10.0.1.10:8080
- target: 10.0.1.11:8080
20. How do you check Target health during an incident?
Call GET /upstreams/{name}/health on the Admin API. It lists each Target with its health state per node. Health is tracked per node, so two nodes can disagree for a short time.
21. Which load-balancing algorithm would you pick for a stateful backend?
Use consistent-hashing with hash_on set to a consumer, IP, header or cookie, so the same client keeps reaching the same Target. Use round-robin or least-connections for stateless services. Changing the Target set reshuffles some clients either way, so session data should not live only on one backend.
22. How do you roll out a new backend version gradually?
Add the new Targets to the Upstream with a low weight and raise it step by step while you watch error rate and latency per Target. Kong Enterprise also has a canary plugin. On Kubernetes, the Gateway API HTTPRoute supports weighted backendRefs with Kong Ingress Controller.
23. How does plugin precedence work when the same plugin is set at several scopes?
Kong runs one instance of a plugin per request and picks the most specific configuration. A plugin set on a Route plus Consumer beats one on the Route alone, which beats the Service, which beats a global plugin. Kong's plugin docs list the full order of precedence.
24. How is the execution order of different plugins decided?
Each plugin has a static PRIORITY; higher priority runs first within a phase. Authentication plugins run before rate limiting so that limits can apply per Consumer. Kong Enterprise adds dynamic plugin ordering through an ordering field when the default order does not fit.
25. How do you design authentication for internal and external clients on one gateway?
Separate them by Route or host. External partners often use OAuth 2.0 or OpenID Connect against the company identity provider (the openid-connect plugin is Enterprise), or key-auth for simple cases. Internal service traffic can use JWT validation or mTLS. Pair authentication with the ACL plugin or Consumer Groups so access is limited per API, not just "authenticated".
26. How do you secure the hop from Kong to the upstream?
Use HTTPS to the upstream with tls_verify enabled on the Service and a CA certificate configured, and set a client certificate on the Service when the backend requires mTLS. Without verification, Kong encrypts but does not prove it reached the right backend.
27. How do you manage TLS certificates on the proxy?
Store Certificate entities with SNIs in Kong, or on Kubernetes reference TLS Secrets from Ingress or Gateway resources, often issued by cert-manager. Track expiry dates in monitoring, because an expired certificate on the gateway takes down every API behind that hostname.
28. How would you expose Kong metrics to Prometheus?
Enable the prometheus plugin globally and scrape /metrics on the Status API. Since Kong 3.0, per-service status code, latency, bandwidth and upstream health metrics are off by default and turned on with plugin options such as status_code_metrics, latency_metrics, bandwidth_metrics and upstream_health_metrics. Watch label cardinality when you have thousands of Routes.
29. Which Kong metrics would you alert on?
| Signal | Why it matters |
|---|---|
| 5xx rate per Service | Backend or gateway failures that users see |
| p95/p99 Kong latency vs upstream latency | Separates plugin overhead from backend slowness |
| Upstream Target health | Targets dropping out before errors spike |
| Nginx connections and worker memory | Capacity and leaks |
| Data plane config hash and last sync | Data planes stuck on old configuration in hybrid mode |
| Certificate expiry | Avoidable full outages |
30. How do you add distributed tracing through Kong?
Enable the opentelemetry plugin with an OTLP endpoint, and set tracing_instrumentations and tracing_sampling_rate in kong.conf to control which internal spans Kong records. Kong propagates trace context to the upstream so backend spans join the same trace.
31. Which logging approach do you use for Kong access logs?
Kong writes Nginx access and error logs to files by default; in containers, point them to stdout and stderr. For structured logs per request, use plugins such as http-log, tcp-log, udp-log, syslog or file-log, which send a JSON object with request, response, latency and Consumer data. Use the plugin's custom fields option to drop or add fields, and never log credentials.
32. How do you run Kong on Kubernetes in production?
Install with the official Helm charts or the Kong Operator, run Kong Ingress Controller (KIC) to translate Ingress, Gateway API and Kong CRDs into Kong configuration, and set resource requests, a PodDisruptionBudget, anti-affinity across zones and a HorizontalPodAutoscaler on the proxy. Keep the Admin API on a ClusterIP only.
33. How do you choose between Ingress and the Gateway API with KIC?
KIC supports both. The Gateway API has role separation (GatewayClass, Gateway, HTTPRoute) and built-in traffic splitting, so it suits shared clusters where the platform team owns Gateways and app teams own Routes. Ingress plus annotations is simpler for existing setups. New designs tend toward the Gateway API.
34. How do you attach a policy to many Routes on Kubernetes?
Create a KongPlugin (namespaced) or KongClusterPlugin (cluster-wide) and reference it with the konghq.com/plugins annotation on the Ingress, HTTPRoute, Service or KongConsumer. A KongClusterPlugin labelled global: "true" applies to all traffic.
35. How do you size a Kong cluster?
Start from Kong's published performance and sizing guidance, then load test with your real plugin chain, because auth, transformation and logging plugins cost far more than plain proxying. Size for peak plus headroom for losing one zone. Track CPU per node and Kong latency as you add load; scale out horizontally rather than up.
36. What settings affect memory use on a node?
mem_cache_size (entity cache), the number of workers, the size of the configuration in DB-less or hybrid mode, and plugins that buffer bodies such as request or response transformers. Large declarative configs are loaded into memory on every data plane, so very large configs need more memory per pod.
37. What is worker_consistency and when would you change it?
It controls how workers rebuild the router and balancer after a configuration change. eventual (the 3.x default) rebuilds in the background, so a request just after a change may briefly use the old state. strict rebuilds before serving, which can add latency spikes on busy nodes. Most teams keep eventual.
38. How do you test a Kong change before production?
Validate the files, run deck gateway diff against a staging cluster, sync, and run automated API tests that cover auth, rate limit headers and routing. For upgrades, replay a sample of traffic or run a canary data plane. Keep the previous file version so rollback is one sync.
Senior Kong engineer questions
39. How would you design Kong for a multi-region deployment?
Run hybrid mode with one control plane (or Konnect) and data planes in each region behind a regional load balancer, with DNS or global load balancing in front. Keep upstreams regional so traffic does not cross regions by accident. Use Redis per region for rate limiting, or accept per-region limits. Data planes keep serving their last good configuration if the control plane is unreachable.
40. What happens in hybrid mode when the control plane is down?
Data planes keep proxying with the configuration they last received and cache it on disk, so they can restart without the control plane. You cannot push changes until it returns. Monitor the connection and config sync status on the control plane's clustering data plane status endpoint, and alert when a data plane stops syncing.
41. How do data planes authenticate to the control plane?
With mutual TLS. In cluster_mtls = shared mode every node uses the same certificate and key pair (generated with kong hybrid gen_cert). In pki mode each node has a certificate signed by a CA you manage. Rotate those certificates before they expire, since an expired cluster certificate stops config sync.
42. How do you plan a Kong version upgrade?
Read the changelog and upgrade guide for every version between the current and target releases, note breaking changes and removed plugin fields, and run decK validation against the new version. Upgrade staging first. In hybrid mode, upgrade the control plane before data planes, because Kong documents compatibility rules between them. Prefer Kong's long-term support releases for production if the employer values stability.
43. How do database migrations work during a traditional-mode upgrade?
Kong documents a blue-green flow: run kong migrations up from a node on the new version, which applies non-destructive migrations while old nodes keep serving; shift traffic to new nodes; then run kong migrations finish once old nodes are gone. Always back up Postgres before starting.
44. How do you lock down the Admin API?
Bind admin_listen to localhost or a private interface, never a public one. If remote access is needed, put it behind Kong itself as a Service with authentication and IP restriction, or behind a VPN. In Enterprise, turn on RBAC. Use DB-less or hybrid data planes so proxy nodes have no writable Admin API at all.
45. How do you harden a Kong node beyond the Admin API?
- Run as a non-root user and keep the container image patched.
- Remove version details from response headers with the
headerssetting. - Set request size limits and timeouts per Service.
- Use TLS 1.2 or later and a reviewed cipher list (
ssl_cipher_suite). - Pull secrets from a vault, and restrict who can read kong.conf and environment variables.
46. When would you write a custom plugin, and in what language?
Only when no bundled plugin or combination of plugins does the job, since every custom plugin is code you must maintain across upgrades. Lua is native and fastest. Kong also supports plugins written in Go, JavaScript and Python through plugin servers, plus WebAssembly filters in recent 3.x releases. Pick Lua for hot paths and another language when the team cannot maintain Lua.
47. How do you test and release a custom plugin safely?
Write unit and integration tests with Pongo, Kong's test tool for plugins, run them against every Kong version you support, package the plugin into the image, add it to the plugins setting, and roll it out on a canary node first. Version the plugin schema carefully, because removing a field breaks existing configuration.
48. How do you keep plugin overhead under control?
Measure X-Kong-Proxy-Latency or Kong latency metrics per Route before and after adding a plugin. Avoid body transformation on large payloads, cache introspection results for OAuth, send logs asynchronously, and limit regex-heavy routes. Remove plugins nobody uses.
49. How do you handle a large number of Routes?
Kong 3.x uses the ATC router by default (router_flavor = expressions or traditional_compatible), which handles many Routes better than the older router. Keep paths prefix-based where possible, use regex only when needed, and split very large configurations by workspace or cluster so a single bad sync has a smaller blast radius.
50. How would you compare running Kong yourself vs Kong Konnect?
Self-managed gives full control of the control plane and data and fits air-gapped or strict compliance environments. Konnect hosts the control plane, analytics and developer portal, and you run only data planes (or use Kong's dedicated cloud gateways). The trade-off is operational effort vs dependency on a SaaS control plane and its pricing. Use current Konnect docs for feature details.
51. How do you design an API versioning and deprecation process on Kong?
Route versions by path (/v1, /v2) or header, keep each version on its own Route, and track usage per Route in metrics. When retiring a version, add a response header warning clients, notify Consumers seen in the logs, then switch the old Route to the request-termination plugin with a clear message once traffic reaches zero.
52. How do you build a disaster recovery plan for Kong?
Treat Git plus decK files as the source of truth, back up Postgres for traditional or control plane nodes, store cluster and proxy certificates in a secret manager, and document how to rebuild a cluster from scratch. Test the rebuild. Data planes in a second region with cached configuration cover a control plane loss.
Scenario-based Kong engineer questions
53. After a deploy, 20% of requests return 502. What do you do?
First check whether the deploy was Kong config, Kong version or the backend. Look at the Kong error log for upstream connection errors, compare X-Kong-Upstream-Latency, and query /upstreams/{name}/health. If one Target is failing, the weight of new Targets or a bad pod is the likely cause. Roll back the change that matches the start time rather than tuning under pressure.
54. p99 latency doubled but backend dashboards look normal. Where do you look?
Compare Kong latency with upstream latency in metrics. If Kong latency rose, check recent plugin changes, DNS resolution time to upstream hosts, CPU throttling on Kong pods, and calls to external services such as an IdP or Redis. A slow Redis makes every rate-limited request slower.
55. A partner says they are getting 429 errors far below their agreed limit. How do you check?
Find which limit applied: a plugin on their Consumer, the Route, the Service or a global one, using the precedence rules. Check whether the limit keys on IP (all partner traffic behind one NAT shares it) instead of Consumer. Read the RateLimit-* and X-RateLimit-* response headers to see which window was hit.
56. Limits are exceeded across the cluster even though each node enforces them. Why?
The plugin is using the local policy, so each node counts on its own and the effective limit is roughly the limit times the node count. Switch to redis, or divide the limit per node if approximate enforcement is acceptable.
57. Hybrid data planes in one region are serving stale configuration. What do you check?
Check the data plane logs for clustering errors, network reachability to the control plane's cluster port (8005 by default), certificate expiry for cluster mTLS, and version compatibility after a recent control plane upgrade. The control plane's data plane status list shows the last seen time and config hash for each node.
58. A decK sync from one team removed another team's plugins. How do you fix and prevent it?
Restore the lost entities by syncing the other team's file. Prevent it by tagging every entity by team, running each pipeline with --select-tag, failing CI when a file contains untagged entities, and reviewing deck gateway diff output on every pull request.
59. Kong pods are OOMKilled after a configuration grew. What are your options?
Raise the memory limit to match the new config size, check mem_cache_size against the pod limit, reduce the number of workers if each holds a large router, and look for very large plugin configurations. Long term, split the configuration across clusters or workspaces.
60. Clients started getting TLS errors at midnight. What happened, most likely?
A certificate expired, either on the proxy hostname or the upstream CA chain Kong verifies against. Check the certificate served with openssl s_client -connect host:443 -servername host, replace it, and add expiry alerts plus automated renewal.
61. A security review finds an API reachable without authentication. How do you respond?
Confirm the Route, add the auth plugin or block it with request-termination immediately, then review access logs for unauthenticated calls during the exposure window. Add a CI rule that rejects Routes without an approved auth plugin, and report the finding through the security process.
62. The control plane database is lost. How do you recover?
Data planes keep serving cached configuration, so there is time. Restore Postgres from backup, or bootstrap a fresh database with kong migrations bootstrap and sync all decK files from Git. Confirm data planes reconnect and report the expected config hash, then review why backups or replication did not cover the loss.
How to prepare for a Kong engineer interview
- Build a lab with Docker: one Postgres-backed node, then a DB-less node, then a hybrid pair. Break each one on purpose.
- Write a decK pipeline in GitHub Actions or GitLab CI with diff on pull requests and sync on merge.
- Run Kong Ingress Controller on a local Kubernetes cluster and route traffic with both Ingress and HTTPRoute.
- Wire Prometheus, Grafana and the opentelemetry plugin, then generate load and read the dashboards.
- Practise the scenario answers aloud with a timer: two minutes each.
For wider preparation, the DevOps interview questions hub links to other topic sets, the scenario-based Kong questions add more incident drills, and this comparison of API gateways helps when an interviewer asks why Kong over alternatives. If you want structured Kubernetes practice for KIC work, see the CKA training in Pune (classroom in Kharadi or live online), or the broader DevOps training in Pune.
FAQs
What level is this Kong question set aimed at?
Engineers with roughly three or more years of hands-on gateway or platform work who run Kong in production. Beginners should start with the main Kong API Gateway question set and come back here once the entities and plugins are familiar.
Which Kong deployment mode should I know best for interviews?
Know all three, and be ready to defend a choice. Hybrid mode and DB-less with Kong Ingress Controller come up most often for platform roles, because they match multi-region and Kubernetes setups.
Do I need to write Lua for a Kong engineer job?
Not always. Many teams use only bundled plugins. You should still be able to read a simple Lua plugin, explain phases and PRIORITY, and know that Go, JavaScript, Python and WebAssembly are other options.
How do I explain Kong rate limiting accuracy in an interview?
Say that the local policy counts per node, the cluster policy uses the database and does not work in DB-less, and the redis policy shares counters across nodes. Mention the fault_tolerant option and what it means when Redis is down.
What metrics should a Kong engineer watch?
5xx rate per Service, Kong latency compared with upstream latency, upstream Target health, connections and memory per node, data plane config sync status in hybrid mode, and certificate expiry dates.
How do I upgrade Kong without downtime?
Read every changelog between versions, test in staging, use Kong's documented blue-green migration flow in traditional mode, and upgrade the control plane before data planes in hybrid mode. Keep a rollback plan and a database backup.
Are Enterprise features asked about in interviews?
Often, if the employer pays for Kong Enterprise or Konnect. Know which features are Enterprise, such as RBAC, Workspaces, the openid-connect plugin and dynamic plugin ordering, and say so when you answer.
References
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0