Consul FAQs Asked in DevOps Interviews (2027)
44 Consul interview FAQs with short answers: ports, quorum, consistency modes, KV limit, dataplane, comparisons with etcd and Kubernetes DNS, BSL licence.
Consul FAQs in DevOps interviews are the short, factual questions that come before or between the deeper rounds: which ports Consul uses, how many servers a cluster needs, how its read consistency modes differ, what the KV size limit is, how Consul compares with etcd, ZooKeeper or Kubernetes DNS, and what its licence and ownership are today. This page answers 44 of them in two to four sentences each.
Facts were checked against developer.hashicorp.com and HashiCorp and IBM announcements in November 2026. For longer answers on architecture, ACL design and incident handling, the main page for this topic is our Consul engineer interview questions with answers. This page is the quick-reference companion: facts, numbers and comparisons you should be able to say without thinking.
Key takeaways
- Default server ports: DNS 8600, HTTP API 8500, server RPC 8300, LAN Serf 8301, WAN Serf 8302. HTTPS 8501 and gRPC 8502 are disabled by default; gRPC TLS 8503 is enabled.
- Run 3 or 5 voting servers in production. Three tolerate one failure; five tolerate two.
- Reads have three modes: default, consistent and stale. DNS uses stale reads by default.
- The default KV value limit is 512 KB, enforced with an HTTP 413, and adjustable with
kv_max_value_size. - On Kubernetes, Consul dataplane (default since Consul 1.14) replaces node client agents for service mesh workloads.
- HashiCorp moved future releases of Consul to the Business Source License 1.1 in August 2023, and IBM completed its acquisition of HashiCorp on 27 February 2025.
Numbers to know
| Item | Value |
|---|---|
| DNS | 8600 TCP/UDP, enabled |
| HTTP API | 8500 TCP, enabled |
| HTTPS API | 8501 TCP, disabled by default |
| gRPC / gRPC TLS | 8502 disabled / 8503 enabled (servers) |
| Server RPC | 8300 TCP |
| Serf LAN / WAN | 8301 / 8302, TCP and UDP |
| Servers recommended | 3 or 5 |
| KV value default limit | 512 KB |
| Voting servers | Quorum | Failures tolerated |
|---|---|---|
| 1 | 1 | 0 |
| 3 | 2 | 1 |
| 5 | 3 | 2 |
| 7 | 4 | 3 |
Freshers: what Consul is and how it is used (1 to 15)
1. What problem does Consul solve in one sentence?
It gives services a live registry of where other healthy services are, plus health checking, a key/value store and a service mesh, across VMs, Kubernetes and multiple data centres.
2. Is Consul only for Kubernetes?
No. It started on VMs and bare metal and still runs there; on Kubernetes it is installed with the official Helm chart. Mixed estates are one of its main use cases.
3. Which port do you query for Consul DNS?
8600. Most setups forward the .consul domain from the system resolver (for example systemd-resolved or dnsmasq) to port 8600 so applications can use normal DNS.
dig @127.0.0.1 -p 8600 web.service.consul SRV
4. Which port does the HTTP API and UI use?
8500 for HTTP. HTTPS on 8501 is disabled until you configure it with TLS.
5. What is the difference between web.service.consul and web.service.dc2.consul?
The first resolves healthy instances of web in the local data centre. The second asks for instances in data centre dc2.
6. Does Consul DNS return unhealthy instances?
No. Instances with failing health checks are filtered out of DNS answers, which is why health checks matter as much as registration.
7. Which command lists the agents in a cluster?
consul members shows LAN gossip members and their status. consul members -wan shows servers across data centres.
8. How do you see which server is the Raft leader?
consul operator raft list-peers lists servers, their voter status and which one is leader.
9. How do you take a backup?
consul snapshot save backup.snap saves a point-in-time snapshot of server state, and consul snapshot restore restores it.
10. How do you generate a gossip encryption key?
consul keygen prints a key you place in the encrypt setting on every agent. All agents in the LAN pool must share it.
11. What is the KV store meant for?
Small configuration values, feature flags and coordination data such as locks. It is not a general database, and values are limited to 512 KB by default.
12. What happens if you write a 1 MB value to the KV store?
Consul rejects it with HTTP 413. You can raise kv_max_value_size, but HashiCorp warns that large values can hurt leadership stability, so store large blobs elsewhere and keep a pointer in Consul.
13. Is there a web UI?
Yes, the Consul UI is served by the agent on the HTTP port when enabled. It shows services, nodes, KV, intentions and ACLs.
14. What is "Consul Connect"?
The earlier name for Consul's service mesh. Current documentation calls it Consul service mesh: Envoy sidecars with mutual TLS and intentions that allow or deny service-to-service traffic.
15. What does a datacenter mean in Consul?
A set of agents on a low-latency network that share one LAN gossip pool and one set of servers. It does not have to match a physical building.
2 to 5 years: behaviour and limits (16 to 31)
16. Why 3 or 5 servers and not 4?
A 4-server cluster needs 3 for quorum and still tolerates only one failure, the same as 3 servers, while adding replication work. Five servers tolerate two failures.
17. Why not run 7 or 9 voting servers for safety?
Every write must reach a quorum of voters, so more voters slow writes. HashiCorp recommends 3 or 5 and advises against more than five voting servers for performance.
18. What are the three read consistency modes?
default reads from the leader using leader leasing; consistent makes the leader confirm with a quorum before answering; stale lets any server answer, usually within about 50 ms of the leader but with no upper bound.
19. Which mode does DNS use?
Stale, by default, and it cannot be overridden per DNS request. That is why DNS keeps answering even when the cluster has no leader.
20. When should you not use stale reads?
For coordination where correctness depends on the latest data, such as locks or leader election in your application. Use consistent or the default mode there.
21. What does ?stale on an HTTP query do?
It allows any server to answer the read. It spreads read load across followers and keeps reads working during a leader election.
22. Are client agents still needed on Kubernetes?
Not for service mesh workloads. Consul dataplane, the default since Consul 1.14 and Consul on Kubernetes 1.0, manages Envoy and talks to servers over gRPC, so there is no gossip and no gossip key to distribute.
23. What does Consul dataplane need?
Consul servers 1.14.0 or later, Consul K8s 1.0.0 or later, and the NET_BIND_SERVICE capability for the container.
24. What is a blocking query?
An HTTP read with an index parameter that waits until data changes or a timeout expires. Watches and consul-template use it to react to changes without polling hard.
25. What is consul-template used for?
Rendering configuration files from Consul service and KV data (and Vault secrets) and reloading a process when they change, for example regenerating an NGINX upstream list.
26. What is the difference between a service check and a node check?
A service check covers one service instance. A node check covers the whole node; if it fails, every service on that node is treated as unhealthy.
27. What check types exist?
Script, HTTP, TCP, gRPC, TTL, Docker and alias checks, among others listed in the health check docs. HTTP and TCP checks are the most common; TTL checks rely on the application to report in.
28. What is an ACL bootstrap token?
The first management token, created once with consul acl bootstrap after ACLs are enabled. Store it safely and create scoped tokens for everything else.
29. What does default_policy = "deny" change?
Anything without an explicit allow is refused. It is the recommended production setting, but every agent, service and operator then needs a token with the right policy.
30. How does Consul handle a network partition between data centres?
Each data centre keeps its own servers and quorum, so local discovery keeps working. Cross-data-centre requests fail until connectivity returns.
31. What are prepared queries good for?
Failover. A prepared query can return local instances and fall back to the nearest other data centre when none are healthy, through DNS or the API.
Senior: comparisons and decisions (32 to 40)
32. Consul or etcd?
etcd is a consistent key/value store (and the Kubernetes datastore) without built-in service registry, health checks or DNS. Consul includes those plus a mesh. Choose etcd for a small consistent store; choose Consul for service discovery across platforms.
33. Consul or ZooKeeper?
Both offer consensus-backed coordination. Consul adds service discovery, DNS, health checks and a mesh out of the box; ZooKeeper is usually used as a building block by systems such as older Kafka deployments.
34. Consul or Kubernetes Services and CoreDNS?
Inside one cluster, Kubernetes discovery is enough. Consul helps when services span several clusters, VMs and clouds, or when you want one mesh and policy model across them.
35. Consul or Eureka?
Eureka is a Java-centric registry from Netflix OSS used with Spring Cloud. Consul is language-neutral, offers DNS and HTTP, and adds health checking, KV and a mesh.
36. WAN federation or cluster peering?
WAN federation joins data centres under one primary with shared ACLs. Cluster peering connects independent clusters that export chosen services to each other, which suits separate teams or tenants. HashiCorp's docs cover both; know when each fits.
37. Is Consul still open source?
HashiCorp moved future releases of its products, including Consul, from MPL 2.0 to the Business Source License 1.1 in August 2023. The Consul API client library stayed under MPL. HashiCorp says BSL places no restrictions on internal use; the restriction targets offering a competing product.
38. Who owns Consul now?
IBM completed its acquisition of HashiCorp on 27 February 2025. Consul continues as a HashiCorp product under IBM.
39. What is Autopilot?
Server management features that clean up dead servers, check server health and stabilise new servers before they vote. Some features, such as redundancy zones and automated upgrades, are Enterprise only.
40. Where is Consul a poor fit?
A single Kubernetes cluster with no VMs and no multi-cluster plans can usually use native Kubernetes discovery and a Kubernetes-native mesh with less to operate. Consul also is not a database for large values.
Scenario quick answers (41 to 44)
41. DNS lookups still work while the HTTP API returns "No cluster leader".
Expected. DNS uses stale reads, which do not need a leader. Fix quorum first: check consul operator raft list-peers and server logs.
42. A Vault cluster using Consul storage fails to write a large secret with a 413 error.
Consul's 512 KB default value limit is being hit. Either shrink the data or carefully raise kv_max_value_size, accepting the stability warning, or move Vault to its integrated storage.
43. A firewall team asks which ports to open between servers in two data centres.
Server RPC 8300 and WAN Serf 8302 (TCP and UDP) between servers, plus 8301 LAN Serf inside each data centre. Add 8503 if peering or dataplanes use gRPC TLS.
44. After enabling ACLs with default deny, services vanish from the catalog.
Agents no longer have permission to register. Create agent and service tokens with the right policies and set them in the agent configuration or Kubernetes secrets.
How to use these FAQs
- Learn the two tables above by heart; port and quorum questions are almost always asked.
- Run a three-server dev cluster, stop one server, then two, and watch DNS and API behaviour.
- Read service discovery versus service mesh and when to use service discovery for the concept questions, and the 70+ Consul questions page for a wider bank.
- If the role includes Vault, review our Vault interview questions.
Consul is usually deployed with Terraform and run next to other HashiCorp tools. Our Terraform training in Pune (Kharadi classroom or live online) covers that workflow.
FAQ
What port does Consul DNS use?
Port 8600 over TCP and UDP. The HTTP API uses 8500.
How many Consul servers should production have?
Three or five voting servers. Three tolerate one failure and five tolerate two; more than five voters slows writes.
What is the Consul KV size limit?
512 KB per value by default. Larger writes get HTTP 413 unless kv_max_value_size is raised.
Which consistency mode does Consul DNS use?
Stale reads by default, so any server can answer and DNS keeps working without a leader.
Do I need Consul client agents on Kubernetes?
Not for service mesh workloads. Consul dataplane, the default since Consul 1.14, replaces node client agents.
Is Consul open source?
Since August 2023, new Consul releases use the Business Source License 1.1 instead of MPL 2.0. HashiCorp says internal use is not restricted.
Who owns HashiCorp Consul?
IBM, which completed its acquisition of HashiCorp on 27 February 2025.
Official references
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0