Be able to configure and reason about federated datacenters: WAN gossip, primary/secondary replication, token rotation, and prepared query failover. The key point is that most Consul data, including KV, is datacenter-scoped and only specific data replicates.
Start practicing
Multi Datacenter Federation — choose a session length
Free · No account required
Domain overview
This domain covers Consul multi-datacenter federation: WAN gossip, the primary/secondary datacenter model, token and config replication, prepared query failover, and datacenter-scoped behavior. Questions test whether you understand that datacenters are isolated for most data, how replication is authorized and rotated, and how cross-DC service discovery actually works.
Exam objectives
WAN gossip federation and the primary/secondary datacenter relationship for replication
ACL token replication and config replication between primary and secondary datacenters
Prepared queries with Failover policy targeting a service in another datacenter
Datacenter scoping of the KV store and the 'datacenter' agent configuration field
Assuming the KV store replicates across datacenters; it does not, so inconsistent KV reads across DCs are expected behavior, not a fault.
Forgetting that after rotating a replication token in the primary, the new token must be supplied to the secondary for replication to continue.
Believing prepared query failover is automatic without a Failover policy and healthy targets; the query must be defined with cross-DC failover.
Click any question to see the full explanation and answer options, or start a focused practice session above.
Which protocol do Consul servers use to maintain the WAN gossip pool?
2In a multi-datacenter environment, what happens if the 'primary_datacenter' server cluster becomes unavailable?
3You have enabled ACL replication between a primary and secondary datacenter. What is the effect of changing an ACL policy in the primary datacenter?
4You are troubleshooting a partition between two datacenters. The WAN gossip shows high latency. Which Consul CLI tool provides the best insight into the WAN gossip state?
5How do you enable WAN federation between two Consul datacenters that do not share a network?
6You are joining two Consul datacenters via WAN gossip. Which command must be executed on a Consul server in the secondary datacenter to initiate the federation?
7What is the role of a Consul server in a non-primary datacenter regarding ACLs?
8What is the purpose of the 'datacenter' field in the Consul agent configuration?
9What happens to the gossip protocol if the 'encrypt' key is mismatched between two datacenters trying to join via WAN?
10When configuring ACL replication, where must the 'acl_replication_token' be defined?
11You want to ensure that specific services in a remote datacenter are only accessible to certain local services. How can you achieve this?
12When using 'prepared_queries' for cross-datacenter failover, what does the 'failover' block allow you to specify?
13Which file format is used for Consul configuration?
14What is the benefit of using a Mesh Gateway in a multi-datacenter deployment with overlapping IP space?
15To verify if two datacenters are connected via WAN, which command shows the remote datacenter's server nodes?
16You notice that the KV store is not consistent across datacenters. What is the cause?
17When joining a new datacenter to an existing WAN pool, what is the best practice for server versions?
18When using multiple datacenters, what is the primary role of the 'consul-template' tool?
19What is the recommended number of Consul servers per datacenter to ensure high availability?
20Which TWO of the following accurately describe Consul's WAN gossip protocol behavior?
21Which TWO of the following are true about Consul datacenters?
22Which THREE network considerations are vital for Consul WAN federation?
23Which TWO of the following are valid ways to troubleshoot inter-datacenter communication issues?
24A platform team operates two Consul datacenters, dc1 (primary) and dc2 (secondary), with ACLs enabled. They have configured token replication using a replication token in dc2. After rotating the replication token in dc1, they update the configuration in dc2 and restart the Consul agents. However, ACL replication stops working and dc2 logs show 'Permission denied'. What is the most likely cause?
25A platform team operates a Consul 1.15 cluster with a primary datacenter in us-east-1 and a secondary datacenter in eu-west-1. After configuring ACLs for replication, they update a token policy in the primary datacenter. A security engineer in the secondary datacenter immediately checks the ACL token and finds the old policy still in effect. What is the most likely reason the policy change has not propagated yet?
26A company runs Consul 1.15 in three datacenters: dc1 (primary), dc2, and dc3 (secondaries). The operations team wants to ensure that if dc1 becomes unavailable, the remaining datacenters can still authenticate services using existing ACL tokens. They have already configured ACL replication and WAN federation. Which statement best describes the expected behavior of ACL tokens in dc2 and dc3 during a primary datacenter outage?
27An operator is configuring a new Consul datacenter that must be able to resolve services in a remote datacenter using the DNS interface. The remote datacenter is already federated and reachable. Which query format should the operator use to resolve a service named 'web' in the remote datacenter 'dc2'?
28A cloud engineer is setting up a new Consul 1.15 datacenter that will join an existing WAN federation. The existing datacenter uses a specific gossip encryption key for the WAN pool. Which configuration parameter must be set on the new datacenter's servers to ensure they can participate in WAN gossip?
29You are configuring a new Consul datacenter named 'dc2' to join an existing WAN federation with primary datacenter 'dc1' that uses mesh gateways. The WAN is not directly routable between datacenters. Which configuration allows dc2's servers to establish WAN federation through the mesh gateways?
30You are deploying a new Consul datacenter and need to configure the servers to join the existing WAN gossip pool. Which configuration parameter should you set on the new servers to specify the addresses of the existing WAN servers?
31A platform team operates two Consul datacenters, 'dc1' and 'dc2', and wants operators in dc2 to resolve service names registered in dc1 without a full mesh of local agents. They have already used 'consul join -wan' to link the server agents. Which feature should they rely on for DNS lookups of remote services?
32You are deploying Consul servers in a new datacenter that will be a secondary in a federated environment. The primary datacenter is already configured with ACLs enabled and replication is working. You need to ensure the new secondary datacenter can replicate ACLs from the primary. Which configuration must be set on the new secondary's servers?
33A Consul operator wants to ensure that if the primary datacenter becomes unavailable, the secondary datacenter can continue to operate for existing services and intentions. Which statement best describes Consul's behavior in this scenario?
34A company runs a primary datacenter and a secondary datacenter with ACL replication enabled. During a maintenance window the primary's servers are taken offline for several hours while the secondary remains fully operational. What is the expected behavior in the secondary during the outage?
35You are configuring a new Consul datacenter in a multi-datacenter federation. The datacenter must be able to join the existing WAN gossip pool and participate in cross-datacenter service discovery. Which two configuration settings are required on the new datacenter's Consul servers to enable WAN gossip and ensure secure communication? (Choose two.)
36You are configuring a Consul secondary datacenter to replicate ACLs from the primary. You have set 'primary_datacenter' and 'acl_replication_token' on the servers. However, replication is failing. Which of the following is the most likely cause?
37You have a Consul 1.15 cluster with two datacenters, dc1 and dc2, federated via WAN gossip. You want to use a prepared query to automatically failover to a service in dc2 if the service in dc1 becomes unhealthy. Which configuration in the prepared query is required to achieve this?
38You are managing a multi-datacenter Consul deployment with ACLs enabled. The primary datacenter is in dc1, and a secondary datacenter is in dc2. You have configured ACL replication in dc2 using acl_replication_token. After some time, you notice that new ACL tokens created in dc1 are not being replicated to dc2, and the replication status shows 'No known leader'. What is the most likely cause of this issue?
39A new engineer is configuring a Consul server agent for a datacenter named 'west' and wants the agent to automatically rejoin the WAN federation after a restart without manual intervention. Which configuration setting should they use?
40You are deploying a Consul cluster across three datacenters: dc1, dc2, and dc3. Each datacenter has its own LAN gossip pool and they are all joined via WAN gossip. You want to enable cross-datacenter service discovery so that services in dc1 can discover services in dc2 and dc3. Which Consul feature allows a service in one datacenter to query services in another datacenter without additional configuration?
41You are using Consul's DNS interface to query a service named 'web' in datacenter dc2 from a client in dc1. The query returns no results, but you know the service is running in dc2. What is the most likely reason?
42An operator is troubleshooting a Consul datacenter that was recently federated with another datacenter. They notice that cross-datacenter service discovery works, but ACL tokens created in the primary datacenter are not being recognized in the secondary datacenter. What is the most likely cause?
43An operator has two Consul datacenters, 'dc1' and 'dc2', federated via WAN gossip. They want to query the health of a service named 'web' in dc2 from a Consul agent in dc1 using the HTTP API. Which endpoint should they use?
44A Consul 1.15 cluster spans three datacenters: dc1 (primary), dc2, and dc3. The operations team wants to enable cross-datacenter service discovery for a service named 'web' that is deployed in all datacenters. They configure a prepared query with a failover policy. Which statement accurately describes how the failover block in the prepared query affects query results when the local datacenter's 'web' service has no healthy instances?
45An operator is configuring a new Consul 1.15 datacenter 'dc3' to join an existing WAN federation with primary datacenter 'dc1'. The operator wants to ensure that dc3 can automatically rejoin the WAN gossip pool after a restart. Which configuration parameter should be set in dc3's server configuration?
Be able to configure and reason about federated datacenters: WAN gossip, primary/secondary replication, token rotation, and prepared query failover. The key point is that most Consul data, including KV, is datacenter-scoped and only specific data replicates.
The Courseiva Consul 1.15 question bank contains 45 questions in the Multi Datacenter Federation domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Multi Datacenter Federation domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included