Courseiva

CCNA Multi Datacenter Federation Questions

45 questions · Multi Datacenter Federation · All types, answers revealed

1
MCQeasy

You 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?

A.acl_replication_token with a token that has acl:write privileges in the primary datacenter.
B.primary_datacenter set to the name of the primary datacenter and acl_replication_token with acl:read privileges.
C.acl_datacenter set to the primary datacenter name and acl_replication_token with acl:read privileges.
D.acl_replication_enabled set to true and acl_replication_token with acl:write privileges.
AnswerB

The secondary datacenter must know which datacenter is the primary by setting primary_datacenter. Additionally, it needs a token with acl:read privileges in the primary to read ACL data. This token is configured using acl_replication_token. Both settings are required for ACL replication to function in a secondary datacenter.

Why this answer

To enable ACL replication in a secondary datacenter, you must set primary_datacenter to the name of the primary datacenter and provide acl_replication_token with a token that has acl:read privileges in the primary. These two settings allow the secondary servers to authenticate to the primary and read ACL policies, roles, and tokens. Without primary_datacenter, the agent does not know where to replicate from.

Exam trap

The trap here is confusing the deprecated acl_datacenter parameter with the current primary_datacenter, and assuming the replication token needs write privileges instead of read.

2
MCQeasy

A 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?

A.primary_datacenter
B.acl_replication_token
C.retry_join_wan
D.encrypt
AnswerD

The encrypt parameter specifies the gossip encryption key used for both LAN and WAN gossip. For a new datacenter to join the WAN federation, its servers must use the same gossip encryption key as the existing datacenter's WAN pool. Setting encrypt correctly is essential for secure and successful WAN gossip communication.

Why this answer

The encrypt parameter sets the gossip encryption key. For WAN gossip to function between datacenters, all servers in the WAN pool must use the same encryption key. Configuring encrypt on the new datacenter's servers with the existing key allows them to securely join the WAN gossip pool.

Exam trap

The trap here is confusing parameters used for ACL replication or join addresses with the gossip encryption key, which is set by encrypt.

3
MCQmedium

An 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'?

A.web.service.dc2.consul
B.dc2.web.service.consul
C.web.service.consul?dc=dc2
D.web.dc2.service.consul
AnswerA

Consul's DNS interface supports cross-datacenter lookups by including the datacenter as a label before the domain. The format is <service>.service.<datacenter>.consul. Querying web.service.dc2.consul asks the local Consul agent to resolve the 'web' service in dc2 via the WAN federation, returning healthy instances from that remote catalog.

Why this answer

Consul DNS encodes the datacenter as a label positioned directly after the 'service' label. The canonical form is <service>.service.<datacenter>.consul. Other label orders or query parameters are not recognized by the DNS interface, so only the format with the datacenter immediately following 'service' will trigger a WAN-forwarded lookup to the remote catalog.

Exam trap

The trap here is assuming the datacenter label position is flexible or that query parameters can select a datacenter, when Consul requires a fixed label order.

4
MCQhard

You 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?

A.consul operator raft list-peers
B.consul members -wan
C.consul monitor
D.consul kv get
AnswerB

`consul members -wan` queries the WAN gossip pool directly, listing every datacenter's server agents with their gossip status and round-trip latency. That satisfies the stem's need for insight into WAN gossip state under high latency, unlike LAN-scoped commands or RPC-based tooling that bypass the gossip layer entirely.

Why this answer

The consul members -wan command lists all members of the WAN gossip pool, showing their status, address, port, protocol, and build. It is the primary CLI tool for inspecting the health and membership of the WAN gossip layer that connects datacenters in a federation. High latency or partition issues in WAN gossip will be visible as failed or left members in this output, making it the best diagnostic choice.

Exam trap

The trap is confusing Raft peer listing with gossip membership; candidates may pick consul operator raft list-peers because it sounds like it shows cluster state, but it only covers the Raft consensus layer within one datacenter, not the WAN gossip pool.

How to eliminate wrong answers

Option A is wrong because consul operator raft list-peers shows the Raft consensus peers within a single datacenter's server cluster, not the WAN gossip state across datacenters. Option C is wrong because consul monitor streams recent logs from the local agent, which may contain gossip-related messages but does not provide a structured view of WAN membership. Option D is wrong because consul kv get retrieves a key from the KV store and has no bearing on gossip or network state.

5
MCQmedium

When configuring ACL replication, where must the 'acl_replication_token' be defined?

A.In the secondary datacenter's server agents.
B.In the primary datacenter's client agents.
C.In the Consul Enterprise license file.
D.On all nodes in both datacenters.
AnswerA

The acl_replication_token is configured on the secondary datacenter's server agents, which use it to authenticate to the primary datacenter and receive replicated ACL data. Defining it there satisfies the requirement that secondary servers can pull token-protected ACL updates.

Why this answer

ACL replication flows from the primary datacenter to secondary datacenters, and the token that authorizes this replication must be configured on the server agents in the secondary datacenter. The secondary servers use this token to authenticate to the primary and pull ACL data. Client agents do not perform ACL replication, so the token is not needed there.

Exam trap

Consul 1.15 often tests the direction and location of ACL replication — candidates confuse primary vs. secondary and server vs. client, picking 'all nodes' or 'primary clients' when only secondary servers need the token.

How to eliminate wrong answers

Option B is wrong because client agents never perform ACL replication — only servers do, and the token belongs on the secondary datacenter's servers, not the primary's clients. Option C is wrong because the Consul Enterprise license file governs feature entitlements, not ACL replication credentials; the replication token is a Consul ACL token, not a license artifact. Option D is wrong because placing the token on all nodes in both datacenters is unnecessary and a security risk — only secondary server agents need it, and broad distribution violates least privilege.

6
MCQmedium

An 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?

A.retry_join_wan
B.start_join_wan
C.join_wan
D.retry_join
AnswerA

retry_join_wan specifies a list of WAN addresses of servers in other datacenters that the agent should attempt to join. Setting this in dc3 ensures that on startup or after a restart, the server will automatically attempt to join the WAN gossip pool, maintaining federation without manual intervention. This is the correct parameter for automatic WAN rejoin.

Why this answer

retry_join_wan is the correct parameter to configure automatic rejoining of the WAN gossip pool. It accepts a list of WAN addresses and continuously retries until successful. This ensures that dc3 remains federated with dc1 even after restarts or network interruptions.

The other parameters either apply to LAN joining or are deprecated or invalid.

Exam trap

The trap here is confusing retry_join_wan with retry_join, which is used for LAN gossip; only the WAN variant ensures automatic rejoin of the cross-datacenter gossip pool.

7
MCQhard

You 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?

A.The secondary datacenter does not have 'verify_outgoing' enabled for TLS.
B.The 'encrypt' key is different between the primary and secondary datacenters.
C.The 'acl_replication_token' is set on the client agents instead of the servers.
D.The 'acl_replication_token' does not have 'acl:read' permissions on the primary datacenter.
AnswerD

For ACL replication to work, the replication token must have 'acl:read' permissions on the primary datacenter. Without this, the secondary servers cannot read the ACL policies, tokens, and intentions from the primary, causing replication to fail. This is a common misconfiguration.

Why this answer

ACL replication requires a token with 'acl:read' permissions on the primary datacenter. Without it, the secondary servers cannot fetch ACL data, leading to replication failure. Other issues like encryption key mismatch would prevent WAN communication entirely, but the scenario indicates that the token and primary datacenter are configured, pointing to a permissions problem.

Exam trap

The trap here is focusing on encryption or TLS settings when the most direct cause of replication failure, given the configuration, is insufficient permissions on the replication token.

8
MCQeasy

How do you enable WAN federation between two Consul datacenters that do not share a network?

A.By disabling ACLs.
B.By increasing the gossip interval.
C.By using a load balancer in front of the servers.
D.By deploying Mesh Gateways.
AnswerD

Mesh gateways route server-to-server RPC traffic between datacenters over the WAN, so datacenters without direct network connectivity can still federate. Each gateway proxies traffic on behalf of its local servers, satisfying the stem's no-shared-network constraint without requiring VPN tunnels or routed peering.

Why this answer

Mesh Gateways are the correct solution for enabling WAN federation between datacenters that do not share a network, such as when they are behind NAT or firewalls with no direct WAN gossip connectivity. Mesh gateways relay WAN gossip and service traffic over the LAN, allowing federation without direct server-to-server WAN links. This is the standard Consul pattern for isolated datacenters.

Exam trap

The trap is thinking that network-level fixes like load balancers or ACL changes can solve isolation — candidates often pick load balancer because it sounds like a connectivity solution, but only mesh gateways are designed to relay WAN gossip when no direct path exists.

How to eliminate wrong answers

Option A is wrong because disabling ACLs does not address network connectivity — ACLs control authorization, not whether packets can flow between datacenters. Option B is wrong because increasing the gossip interval only changes timing, not reachability; it cannot overcome a lack of network path. Option C is wrong because a load balancer in front of servers can distribute traffic but does not solve the problem of no direct network path between datacenters for WAN gossip — mesh gateways are specifically designed to relay that traffic.

9
MCQmedium

What is the role of a Consul server in a non-primary datacenter regarding ACLs?

A.They ignore all ACLs.
B.They can write new ACL policies independently.
C.They become the primary if the original primary fails.
D.They replicate the ACL state from the primary.
AnswerD

Non-primary datacenters do not originate ACL tokens or policies; they forward token writes to the primary and asynchronously replicate the resulting ACL state. This replication ensures consistent authorisation decisions locally, satisfying the requirement that servers in secondary datacenters enforce the same ACLs without holding the authoritative token store.

Why this answer

In a multi-datacenter Consul deployment, ACL state is authoritative only in the primary datacenter. Non-primary datacenters, including their servers, do not accept ACL writes; instead, they replicate the ACL state (tokens, policies, roles, and bindings) from the primary datacenter. This ensures a single source of truth for ACLs and prevents conflicting policies across datacenters.

The replication is one-way, from primary to secondary, and is performed by the Consul servers in the secondary datacenter.

Exam trap

The trap here is confusing the role of non-primary servers with that of the primary, leading candidates to incorrectly assume they can write ACLs or that they automatically take over as primary; Consul 1.15 often tests the one-way replication model and the manual nature of primary datacenter failover.

How to eliminate wrong answers

Option A is wrong because non-primary servers do not ignore ACLs; they enforce ACLs locally using the replicated state, and if ACLs are enabled, they require tokens for operations. Option B is wrong because only the primary datacenter can accept ACL writes; non-primary servers cannot independently create or modify ACL policies, as this would break the single authoritative source. Option C is wrong because Consul does not automatically promote a non-primary datacenter to primary upon failure of the original primary; failover of the primary datacenter is a manual process, and non-primary servers do not become primary automatically.

10
Multi-Selecthard

Which THREE network considerations are vital for Consul WAN federation?

Select 3 answers
A.Sufficient bandwidth for gossip heartbeat messages.
B.A shared NAT gateway for all datacenters.
C.Uniform MTU settings across all regions.
D.TCP and UDP traffic on the WAN gossip port (8302).
E.Connectivity between server nodes across datacenters.
AnswersA, D, E

WAN federation relies on the gossip protocol, which exchanges lightweight heartbeat messages between servers in each datacentre. Sufficient bandwidth ensures these periodic probes and suspicion messages propagate reliably across the WAN, preventing false failure detection and maintaining a healthy federated membership.

Why this answer

Option A is correct because Consul WAN federation relies on the gossip protocol (Serf) to exchange heartbeat messages between datacenter servers, and insufficient bandwidth can cause missed heartbeats, false failures, and instability in the federated cluster. Option D is correct because WAN gossip uses port 8302 over both TCP and UDP, so firewall rules must permit both protocols on that port for servers in different datacenters to communicate. Option E is correct because WAN federation fundamentally requires that server nodes in each datacenter can reach server nodes in the other datacenters, typically over the WAN gossip port and the server RPC port (8300), to join and maintain the federation.

Option B is not required because each datacenter can use its own independent NAT or network egress; a shared NAT gateway is not a Consul WAN federation requirement. Option C is not required because while consistent MTU can help avoid fragmentation issues, Consul does not mandate uniform MTU settings across regions for WAN federation to function.

Exam trap

Consul 1.15 often tests WAN federation by including plausible but non-required items (shared NAT, uniform MTU) alongside the true requirements (bandwidth, port 8302 TCP/UDP, server connectivity).

11
MCQmedium

In a multi-datacenter environment, what happens if the 'primary_datacenter' server cluster becomes unavailable?

A.Secondary datacenters elect a new primary.
B.Secondary datacenters continue to operate, but ACL updates are blocked.
C.All secondary datacenters immediately shut down.
D.The entire WAN federation is dismantled.
AnswerB

Secondary datacentres keep serving their local workloads because each maintains its own replicated state, but ACL token and policy updates originate from the primary and cannot propagate. The outage therefore blocks only ACL changes, not ongoing operations.

Why this answer

In Consul's multi-datacenter model, the primary datacenter is authoritative for ACL token replication and certain global operations. If the primary becomes unavailable, secondary datacenters continue serving their local services and DNS/HTTP queries, but ACL updates and token replication are blocked until the primary returns. This design prioritizes availability of local service discovery over global consistency.

Exam trap

Consul 1.15 often tests the assumption that losing the primary triggers automatic failover or total shutdown, when in reality secondaries keep running with ACL replication paused.

How to eliminate wrong answers

Option A is wrong because Consul does not automatically elect a new primary datacenter; primary designation is a static configuration (primary_datacenter) and requires manual intervention to change. Option C is wrong because secondary datacenters are designed for fault isolation and continue operating independently rather than shutting down. Option D is wrong because WAN federation is not dismantled; the secondary datacenters remain federated and simply cannot receive ACL updates from the unavailable primary.

12
MCQmedium

You 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?

A.Service mesh with intentions
B.DNS interface with datacenter parameter
C.Prepared queries
D.Network segments
AnswerB

Consul's DNS interface allows querying services in other datacenters by appending the datacenter name to the query, such as service.service.dc2.consul. This works out of the box once WAN federation is established. No additional configuration is needed beyond the initial federation. This is the standard way to perform cross-datacenter service discovery.

Why this answer

Consul's DNS interface supports querying services in other datacenters by including the datacenter in the query name. Once WAN federation is established, a service in dc1 can query a service in dc2 by using the format <service>.service.<dc>.consul. This requires no extra configuration beyond the initial federation, making it the correct answer.

Exam trap

The trap here is overcomplicating cross-datacenter discovery; many think advanced features like prepared queries are needed, but the DNS interface handles it natively once federation is set up.

13
MCQeasy

To verify if two datacenters are connected via WAN, which command shows the remote datacenter's server nodes?

A.consul members
B.consul info
C.consul members -wan
D.consul operator raft list-peers
AnswerC

`consul members -wan` queries the WAN gossip pool, listing servers from every datacenter joined through the WAN federation. This directly satisfies the requirement to see the remote datacenter's server nodes, unlike the LAN pool, which only returns members of the local datacenter.

Why this answer

The `consul members -wan` command queries the WAN gossip pool and lists all Consul servers across every datacenter that are federated via the WAN. It shows the remote datacenter's server nodes, confirming WAN connectivity. This is the only command that explicitly targets the WAN gossip layer, which is used for cross-datacenter communication.

Exam trap

The trap here is confusing local LAN membership with WAN federation; candidates often pick `consul members` because it lists nodes, but it only shows the local datacenter, not remote ones.

How to eliminate wrong answers

Option A is wrong because `consul members` only lists nodes in the local datacenter's LAN gossip pool, not remote datacenters. Option B is wrong because `consul info` provides runtime metrics and configuration details about the local agent, not a list of remote server nodes. Option D is wrong because `consul operator raft list-peers` shows the Raft peers within a single datacenter's server cluster, not WAN federation members.

14
MCQeasy

A 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?

A.The secondary datacenter will continue to serve existing services and enforce replicated intentions, but new ACL tokens or intention changes cannot be made until the primary is restored.
B.The secondary datacenter will switch to using its local ACLs and intentions, ignoring the primary's configuration entirely.
C.The secondary datacenter will immediately stop all services and return errors until the primary datacenter is reachable again.
D.The secondary datacenter will automatically promote itself to primary and continue operating without interruption.
AnswerA

In a federated setup, the secondary datacenter maintains its own state and can continue to serve existing services using local data. Replicated ACLs and intentions are enforced based on the last successful replication. However, any changes to ACLs or intentions must be made in the primary, so new changes cannot be applied until the primary is back online.

Why this answer

Consul's multi-datacenter design allows secondary datacenters to remain operational for existing services and enforce replicated intentions even if the primary is down. However, administrative changes to ACLs or intentions require the primary, so they are blocked until connectivity is restored. This provides high availability for data plane operations while maintaining centralized control.

Exam trap

The trap here is assuming that the secondary datacenter can automatically take over the primary role or that it becomes completely independent, when in reality it continues to rely on replicated data and cannot make changes without the primary.

15
MCQmedium

What is the benefit of using a Mesh Gateway in a multi-datacenter deployment with overlapping IP space?

A.It allows cross-datacenter traffic without routing overlapping networks.
B.It reduces the server memory usage.
C.It eliminates the need for ACLs.
D.It increases the gossip speed.
AnswerA

Mesh gateways route service traffic through a shared gateway rather than exposing pod or node addresses, so datacentres with identical CIDR ranges never need direct IP reachability. This satisfies the stem's overlapping-IP constraint without renumbering either network.

Why this answer

A mesh gateway in Consul enables service-to-service communication across datacenters by routing traffic through a gateway that terminates and re-originates the connection, rather than relying on direct IP routing between datacenters. This is essential when two datacenters have overlapping CIDR ranges, because the mesh gateway provides a single, routable entry point that abstracts the underlying overlapping addresses. Without it, Consul's native cross-datacenter routing (which uses the remote datacenter's IPs) would fail due to routing conflicts.

Exam trap

The trap here is confusing mesh gateways with other Consul features like ACLs or gossip optimization; candidates may think mesh gateways are about security or performance rather than solving the routing problem of overlapping IP spaces.

How to eliminate wrong answers

Option B is wrong because mesh gateways do not reduce Consul server memory usage; they are data-plane proxies that handle traffic, not a mechanism for optimizing server resource consumption. Option C is wrong because ACLs are still required and enforced independently of mesh gateways; mesh gateways do not eliminate the need for access control policies. Option D is wrong because gossip protocol speed is related to network latency and configuration (e.g., LAN/WAN gossip), not to the presence of a mesh gateway, which operates at the service mesh data plane.

16
MCQmedium

You want to ensure that specific services in a remote datacenter are only accessible to certain local services. How can you achieve this?

A.Use Consul Intentions.
B.Use firewall rules on all nodes.
C.Modify DNS resolution.
D.Use ACL tokens.
AnswerA

Consul intentions define L4 authorisation rules that permit or deny connections between specific services, enforced via sidecar proxies or Connect. They restrict which local services may reach the remote datacenter services, satisfying the access-control requirement.

Why this answer

Consul Intentions define allow/deny rules for service-to-service communication, including across datacenters. They are the correct mechanism to restrict access to specific services in a remote datacenter based on the source service's identity.

Exam trap

Consul 1.15 often tests service mesh security; candidates may choose ACL tokens or firewall rules, but Intentions are specifically designed for service-to-service authorization.

How to eliminate wrong answers

Option B is wrong because firewall rules operate at the network layer and cannot enforce service-level identity without Consul's service mesh. Option C is wrong because DNS resolution only affects discovery, not authorization. Option D is wrong because ACL tokens control access to Consul's API and KV, not service-to-service communication.

17
MCQhard

A 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?

A.The secondary continues serving catalog and DNS queries using its replicated ACL data, but new ACL tokens or policy changes cannot be created or replicated until the primary returns.
B.The secondary purges its replicated ACL data to avoid serving stale policies, forcing a full re-replication when the primary returns.
C.The secondary automatically promotes itself to primary and begins accepting ACL writes, then demotes itself when the primary returns.
D.The secondary immediately stops accepting all requests because ACL authorization depends on a live connection to the primary.
AnswerA

A secondary keeps its replicated ACL state and continues authorizing requests and answering catalog queries locally. What stops is the replication stream: any new token or policy must be created in the primary and cannot be propagated while it is offline, so ACL changes made in the secondary would not be authoritative or replicated.

Why this answer

A secondary datacenter relies on locally replicated ACL data, so it continues authorizing requests and serving queries while the primary is offline. The outage blocks the replication stream, meaning new tokens and policy changes cannot be created or propagated until the primary is reachable again. No automatic promotion or data purge occurs.

Exam trap

The trap here is assuming ACL enforcement requires a live primary, when the secondary authorizes from locally replicated data and only replication stalls.

18
MCQmedium

You 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?

A.Set retry_join_wan in dc2's servers to the private IPs of dc1's servers and enable connect.enable_mesh_gateways only on dc2.
B.Configure dc2's servers with retry_join_wan pointing to dc1's server LAN addresses and set acl.tokens.default to the replication token.
C.Set primary_gateways in dc2's server configuration to the addresses of dc1's mesh gateways and enable connect.enable_mesh_gateways on both datacenters.
D.Enable connect.enable_mesh_gateways on dc2 and set primary_datacenter to dc1, then use the consul join -wan command with dc1's mesh gateway addresses.
AnswerC

When WAN traffic cannot route directly, Consul 1.15 supports WAN federation via mesh gateways. You set primary_gateways on the secondary servers to the primary's mesh gateway addresses and enable mesh gateways in both datacenters, allowing the secondary servers to establish the WAN gossip and RPC connections through the gateways.

Why this answer

WAN federation through mesh gateways requires setting primary_gateways on the secondary datacenter's servers to the primary's mesh gateway addresses, and enabling mesh gateways in both datacenters. This lets the secondary servers form the WAN gossip pool and perform RPCs over the gateways when direct WAN routing is unavailable.

Exam trap

The trap here is assuming that retry_join_wan or manual consul join -wan can traverse mesh gateways, when gateway-based federation instead relies on primary_gateways plus mesh gateways enabled on both sides.

19
MCQeasy

What happens to the gossip protocol if the 'encrypt' key is mismatched between two datacenters trying to join via WAN?

A.The join proceeds with warnings.
B.The join fails.
C.The connection defaults to unencrypted.
D.Only metadata is encrypted.
AnswerB

Consul's gossip protocol uses the encryption key to authenticate and encrypt Serf messages; if the WAN key differs between datacenters, members cannot decrypt each other's traffic, so the join attempt fails rather than silently forming a split cluster.

Why this answer

If the gossip encryption key ('encrypt' for LAN or 'encrypt_wan' for WAN) is mismatched between two datacenters attempting to join via WAN, the join fails because Serf cannot decrypt the gossip messages from the remote cluster. Encryption keys must match exactly for the WAN gossip pool to form. There is no fallback to unencrypted communication.

Exam trap

The trap is assuming Consul will gracefully degrade to unencrypted gossip or only encrypt metadata — candidates often think encryption is optional or partial, but Serf enforces full-message encryption, so a key mismatch is a hard failure.

How to eliminate wrong answers

Option A is wrong because the join does not proceed with warnings — Serf rejects messages it cannot decrypt, so the join fails outright. Option C is wrong because Consul does not default to unencrypted communication when keys mismatch; if encryption is configured, it is enforced, and mismatched keys cause failure. Option D is wrong because the entire gossip payload is encrypted, not just metadata — Serf encrypts the full message body, so a key mismatch prevents any communication, not just metadata exchange.

20
MCQeasy

When joining a new datacenter to an existing WAN pool, what is the best practice for server versions?

A.The new DC must run a newer version.
B.The new DC must run an older version.
C.Versions should be consistent across all datacenters.
D.Version doesn't matter at all.
AnswerC

Consul's gossip protocol and RPC compatibility depend on matching versions; mixed server versions across WAN-federated datacenters can break Serf membership and cause failed joins or inconsistent catalog replication. Uniform versions across every datacenter keep the WAN pool stable during and after the join.

Why this answer

Consul best practice is to keep server versions consistent across all datacenters in a WAN pool. Version skew can cause protocol incompatibilities, inconsistent behavior, and upgrade complications, so the official guidance is to run the same version everywhere. This is why option C is correct.

Exam trap

Consul 1.15 often tests upgrade best practices — candidates may assume newer is always better or that version doesn't matter, but the exam expects you to know that consistency across datacenters is the documented best practice.

How to eliminate wrong answers

Option A is wrong because running a newer version in the new DC creates version skew that can break WAN gossip compatibility and Raft protocol negotiation. Option B is wrong because running an older version in the new DC also creates skew and may lack features or security fixes required by the existing pool. Option D is wrong because version consistency absolutely matters — Consul's WAN federation and Raft protocol have version-dependent behaviors, and ignoring version alignment is a documented anti-pattern.

21
MCQeasy

A 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?

A.'retry_join' with the LAN addresses of servers in the same datacenter, which also covers WAN rejoin as a side effect.
B.'retry_join_wan' with the addresses of server agents in the other datacenter, so the agent retries WAN join attempts on startup and after failures.
C.'translate_wan_addrs' set to true, which causes the agent to discover and join the WAN pool automatically.
D.'start_join_wan' with a single remote server address, which retries only once at startup and then stops.
AnswerB

'retry_join_wan' provides a list of WAN addresses that the server agent attempts to join, retrying indefinitely with backoff. It is the standard way to make WAN federation resilient across restarts, because the agent re-establishes the WAN gossip link automatically rather than requiring an operator to run 'consul join -wan' again.

Why this answer

'retry_join_wan' is the supported mechanism for resilient WAN federation membership. It lists remote server addresses and retries joins with backoff, so a restarted or temporarily disconnected server agent rejoins the WAN pool without operator action. Options that address LAN joins or address translation do not restore cross-datacenter membership.

Exam trap

The trap here is confusing LAN rejoin settings with WAN rejoin settings, when only the WAN-specific option restores cross-datacenter membership.

22
MCQmedium

A 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?

A.ACL replication only works in one direction from secondary to primary, so changes made in the primary are not replicated.
B.The secondary datacenter has not yet received the updated policy because ACL replication is asynchronous and may take time to propagate.
C.The secondary datacenter must be restarted to pick up the new ACL policy from the primary datacenter.
D.The updated policy must be manually copied to each secondary datacenter using the consul acl policy create command.
AnswerB

ACL replication in Consul is asynchronous. Changes made in the primary datacenter are replicated to secondary datacenters on a periodic basis, so there can be a delay before the updated policy is visible. This scenario matches that behavior: the security engineer checked immediately, before the next replication cycle completed.

Why this answer

ACL replication between datacenters is asynchronous, so changes made in the primary datacenter are not instantly visible in secondary datacenters. The security engineer checked before the next replication cycle, which explains why the old policy was still in effect. The other options describe mechanisms that are not part of Consul's ACL replication model.

Exam trap

The trap here is assuming ACL replication is instantaneous, when in fact it is asynchronous and can take time to propagate to secondary datacenters.

23
Multi-Selectmedium

Which TWO of the following are valid ways to troubleshoot inter-datacenter communication issues?

Select 2 answers
A.Change the datacenter name in the config.
B.Inspect server logs for RPC errors between datacenters.
C.Restart all clients in the datacenter.
D.Use 'consul members -wan' to verify remote server visibility.
E.Use 'consul kv export' to sync data.
AnswersB, D

Inspecting server logs surfaces RPC errors that reveal failed cross-datacenter RPCs, directly satisfying the need to diagnose inter-datacenter communication faults. Consul's server-to-server RPC traffic carries replication and forwarding requests, so logged RPC failures pinpoint connectivity or TLS problems between datacenters.

Why this answer

Option B is correct because inter-datacenter communication in Consul relies on the WAN gossip pool and RPC forwarding between servers, so inspecting server logs for RPC errors (such as failed RPCs to remote datacenters or WAN gossip issues) is a valid diagnostic step to identify connectivity or federation problems. Option D is correct because 'consul members -wan' lists the members of the WAN gossip pool, allowing you to verify that servers in remote datacenters are visible and participating in cross-datacenter communication. Option A is not a valid troubleshooting method because changing the datacenter name alters the identity of the cluster and would break existing federation rather than diagnose it.

Option C is not appropriate because restarting all clients does not address server-to-server WAN communication and could cause unnecessary disruption. Option E is incorrect because 'consul kv export' only exports key/value data and does not test or repair inter-datacenter connectivity.

Exam trap

The trap is picking disruptive or unrelated actions like restarting clients or exporting KV data as 'troubleshooting' — the exam tests whether you know that federation diagnostics focus on WAN gossip membership and server RPC logs, not on client restarts or KV operations.

24
MCQmedium

What is the purpose of the 'datacenter' field in the Consul agent configuration?

A.To limit the number of clients.
B.To segment the cluster into logical datacenters.
C.To enable encryption.
D.To identify the node for metrics.
AnswerB

The datacenter field labels which Consul datacenter an agent belongs to, letting servers, services and queries be scoped to that logical segment. Agents in different datacenters form separate clusters joined only through WAN gossip, enabling multi-region segmentation.

Why this answer

The 'datacenter' field in the Consul agent configuration assigns the agent to a named logical datacenter, which segments the cluster into independent failure domains. Each datacenter has its own LAN gossip pool, its own Raft consensus group of servers, and its own catalog and KV store. Agents in different datacenters communicate only through the WAN gossip pool and cross-datacenter RPC, not through the LAN pool.

Exam trap

Consul 1.15 often tests whether candidates understand that 'datacenter' is a logical segmentation label, not an encryption, capacity, or identity setting — the distractor options borrow features that belong to other config fields.

How to eliminate wrong answers

Option A is wrong because client count is not limited by the datacenter field — it is a naming/segmentation attribute, not a capacity control. Option C is wrong because encryption is enabled via 'encrypt' (gossip) and 'verify_outgoing'/'verify_incoming' (TLS), not via the datacenter name. Option D is wrong because node identity for metrics is set via the 'node_name' field and telemetry tags, not the datacenter field.

25
MCQeasy

You 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?

A.consul members -wan
B.consul join -wan <remote-server-address>
C.consul reload -wan
D.consul agent -join-wan
AnswerB

The -wan flag directs the join request over the WAN gossip pool rather than the LAN pool, which is the only way to federate separate Consul datacenters. Running consul join without -wan would attempt a LAN gossip join and fail to establish cross-datacenter federation.

Why this answer

The consul join -wan command is used to join a Consul server to the WAN gossip pool of another datacenter. It must be executed on a server in the secondary datacenter, specifying the address of a remote server in the primary datacenter. This establishes the WAN federation, allowing cross-datacenter communication.

Exam trap

The trap is confusing the agent startup flag -join-wan with the runtime command consul join -wan; the former is used when starting an agent, while the latter is for joining an already running agent.

How to eliminate wrong answers

Option A is wrong because consul members -wan only displays the members of the WAN gossip pool; it does not initiate a join. Option C is wrong because consul reload -wan is not a valid command; consul reload reloads agent configuration but does not join a WAN pool. Option D is wrong because consul agent -join-wan is not a valid flag; the correct flag is -join-wan when starting an agent, but the command to join an already running agent is consul join -wan.

26
Multi-Selecthard

You 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.)

Select 2 answers
A.retry_join_wan
B.acl_replication_token
C.encrypt
D.datacenter
E.primary_datacenter
AnswersA, C

retry_join_wan specifies one or more addresses of existing Consul servers in the WAN gossip pool. It allows the new datacenter's servers to automatically join the WAN pool and retry if the initial join fails. Without it, the servers would not know how to reach the existing WAN cluster, and manual joining would be required. This is essential for multi-datacenter federation.

Why this answer

To enable WAN gossip, the new datacenter's servers must be able to discover and join the existing WAN pool, which requires retry_join_wan to specify seed servers. Additionally, all servers in the WAN pool must share the same gossip encryption key configured via encrypt to secure communication. The other settings are important for ACLs and identification but do not directly enable or secure WAN gossip.

Exam trap

The trap here is confusing ACL replication settings with gossip requirements; while primary_datacenter and acl_replication_token are vital for ACLs, they are not needed for WAN gossip itself.

27
MCQmedium

You 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?

A.The DNS query must include the datacenter name, for example web.service.dc2.consul, to resolve services in another datacenter.
B.The service 'web' must be registered with a tag that matches the datacenter name to be discoverable across datacenters.
C.The client's DNS resolver must be configured with a forwarder to dc2's Consul servers.
D.The service 'web' is not registered in dc1's catalog, so cross-datacenter DNS queries are not supported.
AnswerA

By default, Consul DNS queries resolve services in the local datacenter. To query a service in another datacenter, you must include the datacenter name in the query, such as web.service.dc2.consul. Without the datacenter qualifier, the query only searches the local datacenter's catalog, which may not contain the service, resulting in no results.

Why this answer

Consul's DNS interface resolves services in the local datacenter by default. To query a service in a different datacenter, you must append the datacenter name to the query, such as web.service.dc2.consul. Without this qualifier, the query only searches the local catalog, which may not contain the service, leading to no results.

The local Consul agent forwards the query to the specified datacenter's servers.

Exam trap

The trap here is assuming that Consul DNS automatically searches all datacenters or requires a separate DNS forwarder, when in fact the datacenter must be explicitly included in the query.

28
MCQhard

You 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?

A.The acl_replication_token in dc2 does not have the necessary permissions to read ACLs from the primary datacenter.
B.The acl_replication_token has expired and needs to be renewed.
C.The secondary datacenter's servers cannot communicate with the primary datacenter's servers due to a network partition or misconfigured WAN gossip.
D.The primary datacenter's ACL system is disabled, causing replication to fail.
AnswerC

The 'No known leader' status in ACL replication typically means the secondary datacenter cannot reach the primary datacenter's servers to determine the leader. This can be caused by a network partition, firewall rules blocking WAN traffic, or WAN gossip not functioning. Without connectivity to the primary, replication cannot proceed, leading to this status.

Why this answer

The 'No known leader' status in ACL replication indicates that the secondary datacenter cannot reach the primary datacenter's servers to discover the leader. This is typically due to network connectivity issues, such as a partition or misconfigured WAN gossip. The other options would produce different error messages and are less likely given the specific status.

Exam trap

The trap here is assuming that ACL replication issues are always due to token permissions or expiration, but 'No known leader' specifically points to a connectivity problem with the primary datacenter.

29
MCQmedium

You have enabled ACL replication between a primary and secondary datacenter. What is the effect of changing an ACL policy in the primary datacenter?

A.The changes only propagate if the secondary is in maintenance mode.
B.The changes require a manual trigger on secondary servers.
C.The changes are ignored by secondary datacenters.
D.The changes are asynchronously replicated to all secondary datacenters.
AnswerD

ACL replication in Consul propagates token and policy changes from the primary to secondary datacenters asynchronously, satisfying the stem's cross-datacenter consistency requirement without blocking primary writes. Secondaries receive updates shortly after the primary commits them, so the change is not instantaneous but eventually consistent across all secondary datacenters.

Why this answer

Consul ACL replication from a primary datacenter to secondary datacenters is asynchronous by design. When an ACL policy, token, or role is modified in the primary, the change is queued and replicated to all secondaries without manual intervention, though there may be a short propagation delay. This matches the documented behavior of the `acl-replication` mechanism.

Exam trap

The trap is assuming ACL changes are synchronous or require manual action; candidates who conflate Consul's Raft-based intra-DC consistency with cross-DC replication may pick 'manual trigger' or 'ignored' instead of recognizing the asynchronous automatic model.

How to eliminate wrong answers

Option A is wrong because maintenance mode is unrelated to ACL replication; it is used to quiesce a server for upgrades and does not gate policy propagation. Option B is wrong because replication is automatic once enabled — there is no manual trigger required on secondary servers, and inventing one misrepresents how the replication endpoint works. Option C is wrong because secondary datacenters do honor replicated ACLs; ignoring them would defeat the purpose of enabling replication, and Consul explicitly applies replicated policies to authorization decisions in secondaries.

30
MCQhard

A 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?

A.Existing ACL tokens in dc2 and dc3 continue to work for authorization because the replicated ACL data is stored locally.
B.ACL tokens in dc2 and dc3 continue to work, but only for read operations, because write operations require primary approval.
C.New ACL tokens can still be created in dc2 and dc3 during the outage, and they will be automatically synchronized back to dc1 when it recovers.
D.ACL tokens in dc2 and dc3 immediately become invalid because the primary datacenter is the only place that can validate tokens.
AnswerA

Once ACL data is replicated to secondary datacenters, it is stored locally. During a primary outage, secondary datacenters can continue to use the replicated tokens and policies for local authorization decisions. This allows services to authenticate and authorize without requiring the primary to be online, which is a key benefit of ACL replication.

Why this answer

ACL replication stores a local copy of ACL data in each secondary datacenter. During a primary outage, secondary datacenters can continue to authorize requests using the replicated tokens and policies. New token creation in secondaries is not replicated back to the primary, but existing tokens remain valid for local authorization.

Exam trap

The trap here is thinking that token validation always requires the primary datacenter to be online, when in fact secondary datacenters use locally replicated ACL data.

31
MCQhard

A 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?

A.The failover block requires that all datacenters be in the same WAN gossip pool and have identical ACL tokens.
B.The failover block automatically selects the datacenter with the lowest latency, regardless of the order specified.
C.The failover block can specify a list of datacenters to try in order, and Consul will return results from the first datacenter in the list that has healthy instances.
D.The failover block is only used for DNS queries, not for HTTP API queries.
AnswerC

The failover block in a prepared query allows you to define a prioritized list of datacenters. When the local datacenter lacks healthy instances, Consul queries the specified datacenters in order and returns results from the first one with healthy instances. This enables controlled cross-datacenter failover.

Why this answer

Prepared queries support a failover block that lists datacenters in priority order. When the local datacenter has no healthy instances, Consul tries each listed datacenter in sequence and returns results from the first with healthy instances. This provides deterministic cross-datacenter failover for service discovery.

Exam trap

The trap here is thinking failover uses dynamic criteria like latency, when it actually follows the explicit order defined in the failover block.

32
MCQmedium

A 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?

A.The replication token must be configured in both dc1 and dc2 under acl.tokens.replication.
B.The new replication token must be created in the primary datacenter and have read permissions on ACLs, then configured in dc2.
C.The replication token must be a management token with acl:write permissions in the primary datacenter.
D.The replication token in dc2 must match the token used in dc1's acl.tokens.replication configuration.
AnswerB

ACL replication requires a token that exists in the primary datacenter and has read access to ACL policies, tokens, and roles. After rotating the token in dc1, the old token is invalid, causing permission denied in dc2. Creating a new token in dc1 with appropriate read permissions and updating dc2's configuration resolves the issue. The token must be from the primary, not the secondary.

Why this answer

ACL token replication in Consul allows secondary datacenters to mirror ACL data from the primary. The replication token must be created in the primary datacenter with read permissions on ACL resources. After rotating the token, the old token becomes invalid, leading to permission errors in the secondary.

Updating the secondary's configuration with a valid token from the primary restores replication.

Exam trap

The trap here is assuming the replication token must be identical or configured in both datacenters, when it only needs to exist in the primary and be referenced in the secondary.

33
MCQmedium

Which file format is used for Consul configuration?

A.HCL or JSON
B.INI
C.YAML
D.XML
AnswerA

Consul accepts configuration in either HCL or JSON, satisfying the stem's requirement for the supported file format. HCL provides comments and a more readable syntax, while JSON suits machine-generated files; both are parsed natively by the Consul agent for service definitions, checks and agent settings.

Why this answer

Consul accepts configuration in either HCL or JSON format. HCL is the more human-readable format used in most examples, while JSON is supported for programmatic generation and legacy compatibility. Both are parsed into the same configuration structure.

Exam trap

The trap is assuming Consul uses YAML because it is ubiquitous in modern infrastructure tooling, when Consul actually supports only HCL and JSON.

How to eliminate wrong answers

Option B is wrong because INI is not a supported Consul configuration format — it is used by other tools but not Consul. Option C is wrong because YAML is not natively supported for Consul agent configuration files, despite being common in Kubernetes and CI tooling. Option D is wrong because XML is not a Consul configuration format.

34
MCQmedium

You 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?

A.A `Failover` block with `Datacenters` set to `["dc2"]`.
B.A `Service` block with `Datacenter` set to `dc2`.
C.A `Failover` block with `NearestN` set to 3.
D.A `Failover` block with `NearestN` set to 2 and `Datacenters` listing dc2.
AnswerA

In a prepared query, the `Failover` block allows you to specify a list of datacenters to try if the local datacenter's service instances are unhealthy. Setting `Datacenters` to `["dc2"]` will cause the query to failover to dc2 when no healthy instances are available in the local datacenter. This is the correct configuration for automatic cross-datacenter failover.

Why this answer

Prepared queries support a `Failover` block that can list datacenters to try when local instances are unhealthy. By setting `Datacenters` to `["dc2"]`, the query will automatically attempt to find healthy instances in dc2 if none are available in the local datacenter. This is the standard method for cross-datacenter failover in Consul.

Other options either misuse fields or do not provide the required failover behavior.

Exam trap

The trap here is confusing `NearestN` (which sorts by proximity) with the `Datacenters` field (which explicitly lists failover targets). Only the latter achieves directed failover to a specific datacenter.

35
Multi-Selectmedium

Which TWO of the following are true about Consul datacenters?

Select 2 answers
A.Each datacenter must have at least one server node.
B.They are strictly physical locations.
C.They represent a group of nodes with low latency to each other.
D.They must share the same Raft quorum.
E.They allow a single Consul agent to join multiple DCs.
AnswersA, C

Every Consul datacenter requires its own server cluster to maintain the Raft quorum and manage the catalogue, intentions and ACLs; a datacenter cannot function with client agents alone. This satisfies the stem's requirement that each datacenter operates independently, with servers in one datacenter not replicating data to servers in another.

Why this answer

Option A is correct because every Consul datacenter requires at least one server node to form the Raft quorum and maintain the catalog, since servers are the only agents that participate in the consensus protocol and store cluster state. Option C is correct because a Consul datacenter is defined as a group of nodes that are expected to have low-latency, high-bandwidth connectivity to each other, which is why datacenters are typically mapped to a single network region or availability zone. Option B is incorrect because a datacenter in Consul is a logical grouping, not strictly a physical location, and can span or subdivide physical sites.

Option D is incorrect because each datacenter maintains its own independent Raft quorum; servers in different datacenters do not share a single quorum. Option E is incorrect because a single Consul agent belongs to exactly one datacenter and cannot join multiple datacenters simultaneously.

Exam trap

Consul 1.15 often tests the misconception that datacenters must be physical or share a Raft quorum — candidates confuse the WAN gossip pool with a shared consensus group.

36
MCQeasy

An 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?

A.GET /v1/health/checks/web?dc=dc2
B.GET /v1/health/service/web?dc=dc1
C.GET /v1/catalog/service/web?dc=dc2
D.GET /v1/health/service/web?dc=dc2
AnswerD

The /v1/health/service endpoint returns health checks for a given service. The dc query parameter specifies the target datacenter. Since dc1 and dc2 are federated, a request to the local agent in dc1 with dc=dc2 will be forwarded to dc2's servers and return the health information for 'web' in dc2. This is the correct way to query remote datacenter health via the HTTP API.

Why this answer

To query the health of a service in a remote federated datacenter, the correct endpoint is /v1/health/service/<service> with the dc query parameter set to the target datacenter. This endpoint returns the health checks and statuses for the service instances. The local Consul agent in dc1 will forward the request to dc2's servers because the datacenters are federated, allowing cross-datacenter health queries.

Exam trap

The trap here is confusing the health endpoint with the catalog endpoint or using the wrong datacenter parameter, which would return incorrect or incomplete information for the remote service's health.

37
MCQhard

When using 'prepared_queries' for cross-datacenter failover, what does the 'failover' block allow you to specify?

A.The timeout for the WAN gossip.
B.A list of datacenters to attempt for service resolution.
C.The encryption algorithm for failover traffic.
D.The number of retries per node.
AnswerB

The `failover` block within `prepared_queries` accepts a `targets` list naming datacenters in priority order, so Consul attempts service resolution against each in turn when the local datacenter's instances are unreachable. This satisfies the cross-datacenter failover constraint by defining exactly which remote datacenters to query.

Why this answer

The failover block in a prepared query specifies a list of datacenters to attempt for service resolution when the local datacenter has no healthy instances. This enables cross-datacenter failover by defining an ordered fallback list. It does not control timeouts, encryption, or retry counts.

Exam trap

Consul 1.15 often tests the confusion between failover datacenter selection and unrelated settings like timeouts or encryption, leading candidates to pick options that sound plausible but are configured elsewhere.

How to eliminate wrong answers

Option A is wrong because WAN gossip timeout is configured elsewhere (e.g., serf_wan settings), not in the prepared query failover block. Option C is wrong because encryption algorithms are configured at the gossip and RPC layer, not per prepared query failover. Option D is wrong because retry counts per node are not part of the failover block; failover defines datacenter targets, not retry behavior.

38
MCQhard

You notice that the KV store is not consistent across datacenters. What is the cause?

A.The Raft protocol is broken.
B.The ACL token lacks the 'write' permission.
C.KV store is datacenter-local by design.
D.The WAN gossip is disabled.
AnswerC

Consul's KV store is scoped per datacenter; entries written in one datacenter are not replicated to peers. Cross-datacenter inconsistency is therefore expected behaviour, not replication failure, because each datacenter maintains its own independent KV namespace.

Why this answer

Consul's KV store is datacenter-local by design — each datacenter maintains its own independent KV namespace with no automatic replication to peer datacenters. When you write a key in dc1, it does not appear in dc2 unless you explicitly write it there or use a tool like consul-replicate. This is expected behaviour, not a fault.

Exam trap

Consul 1.15 often tests the misconception that Consul is a globally consistent KV store — candidates assume cross-DC replication is automatic and blame Raft or gossip when they see divergence, missing that KV is DC-scoped by design.

How to eliminate wrong answers

Option A is wrong because a broken Raft protocol would cause loss of consensus and leader election failures within a single datacenter, not cross-DC KV divergence — and it would manifest as write failures, not silent inconsistency. Option B is wrong because a missing 'write' ACL permission would cause 403 errors on writes, not inconsistent reads across datacenters. Option D is wrong because WAN gossip carries only membership and serf events between datacenters; it does not replicate KV data, so disabling it would break federation but not explain KV divergence.

39
MCQmedium

A 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?

A.Deploying a second Consul cluster in dc2 that mirrors dc1 using the 'consul snapshot restore' command on a schedule.
B.Configuring 'recursors' on every dc2 client agent so that queries for dc1 services are sent to dc1's DNS port on 8600.
C.The built-in remote datacenter query capability, where a lookup such as 'web.service.dc1.consul' is forwarded to dc1's servers over the WAN federation link.
D.Enabling 'translate_wan_addrs' on dc1 servers so that dc2 agents can resolve remote service names locally.
AnswerC

Consul's DNS interface natively understands the '.dcX.consul' suffix. When a local agent receives a query for a service in a remote datacenter, it forwards the request to that datacenter's servers across the WAN gossip and RPC federation link, so no extra components or manual forwarding rules are required once servers are joined.

Why this answer

Once server agents are joined over the WAN, Consul's DNS interface resolves remote services using the datacenter label in the query name, forwarding the request to the owning datacenter's servers. No recursor changes, address translation, or snapshot copying are needed. The federation link itself provides the cross-datacenter query path for both DNS and HTTP interfaces.

Exam trap

The trap here is assuming that cross-datacenter DNS requires extra DNS forwarding configuration, when Consul's own interface handles the datacenter suffix natively.

40
MCQmedium

When using multiple datacenters, what is the primary role of the 'consul-template' tool?

A.To generate configuration files based on Consul data.
B.To provision infrastructure.
C.To replicate KV stores.
D.To manage the Consul cluster nodes.
AnswerA

Consul-template watches the Consul catalog and KV store, then renders templates into local configuration files and reloads dependent services. Across datacenters it queries the relevant Consul servers, so the stem's requirement for generating configuration from Consul data is met directly.

Why this answer

consul-template is a daemon that watches Consul for changes (KV pairs, services, health checks) and renders configuration files from templates, optionally running commands when files change. Its primary role is dynamic configuration generation based on Consul data, commonly used to configure HAProxy, Nginx, or Vault. It does not provision infrastructure or manage the cluster.

Exam trap

Consul 1.15 often tests the confusion between consul-template (config rendering) and Consul's built-in features like KV replication or cluster management — candidates assume consul-template does more than render files.

How to eliminate wrong answers

Option B is wrong because infrastructure provisioning is the job of tools like Terraform or CloudFormation — consul-template only renders config files and can run a reload command. Option C is wrong because KV replication across datacenters is handled by Consul's native replication (via the WAN gossip and Raft replication of the KV store), not by consul-template. Option D is wrong because cluster node management is done via Consul's own CLI/API and server agents — consul-template is a client-side rendering tool.

41
MCQmedium

What is the recommended number of Consul servers per datacenter to ensure high availability?

A.3
B.2
C.1
D.10
AnswerA

Three servers allow the Raft consensus quorum of two to survive a single node failure while still electing a leader, giving high availability without the write-latency penalty that five or more servers introduce in one datacenter.

Why this answer

The recommended number of Consul servers per datacenter for high availability is three, because it allows the cluster to tolerate the failure of one server while maintaining quorum. Consul uses the Raft consensus algorithm, which requires a majority of servers to be available for writes. With three servers, a single failure leaves two servers, still a majority, so the cluster remains operational.

Exam trap

The trap is thinking that two servers provide high availability, but Raft requires a majority, so two servers cannot tolerate any failure; the exam tests understanding of quorum requirements.

How to eliminate wrong answers

Option B is wrong because two servers cannot tolerate any failure — if one goes down, only one remains, which is not a majority of two, so the cluster loses quorum and becomes read-only. Option C is wrong because a single server is a single point of failure; if it fails, the entire datacenter loses write capability. Option D is wrong because ten servers is excessive and increases Raft consensus overhead, leading to slower writes and more complex operations; odd numbers are preferred, and three or five are typical.

42
MCQeasy

Which protocol do Consul servers use to maintain the WAN gossip pool?

A.gRPC
B.DNS
C.Serf (SWIM)
D.HTTP
AnswerC

Consul servers use the Serf library, which implements the SWIM gossip protocol, to exchange membership and failure-detection messages across the WAN gossip pool. SWIM's infection-style dissemination lets datacentre servers converge on membership state without a central coordinator.

Why this answer

Consul servers use the Serf library, which implements the SWIM gossip protocol, to maintain the WAN gossip pool across datacenters. Serf handles membership, failure detection, and lightweight message dissemination over UDP/TCP. This is distinct from Raft, which handles consensus for the replicated state.

Exam trap

Consul 1.15 often tests the distinction between Serf/SWIM (gossip) and Raft (consensus) — candidates may pick HTTP or gRPC because they associate those with Consul's API, forgetting that membership uses Serf.

How to eliminate wrong answers

Option A is wrong because gRPC is used for Consul's newer service mesh data plane (xDS) and some internal APIs, not for WAN gossip membership. Option B is wrong because DNS is Consul's service discovery interface for clients, not the protocol servers use to gossip. Option D is wrong because HTTP is the client-facing API for KV, catalog, and ACL operations, not the server-to-server WAN gossip mechanism.

43
MCQeasy

You 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?

A.`start_join_wan`
B.`retry_join_wan`
C.`join_wan`
D.`retry_join`
AnswerB

`retry_join_wan` is specifically designed to provide addresses of servers in other datacenters to join the WAN gossip pool. When set, the agent will attempt to join the WAN gossip pool using the provided addresses. This is the correct way to federate a new datacenter with existing ones. It is commonly used in multi-datacenter deployments to automate WAN joining.

Why this answer

To join a new datacenter to an existing WAN gossip pool, you must configure `retry_join_wan` on the servers in the new datacenter. This parameter accepts a list of addresses of servers in other datacenters. The agent will continuously attempt to join the WAN pool using these addresses, providing resilience.

This is the standard method for WAN federation in Consul 1.15.

Exam trap

The trap here is confusing `retry_join` (used for LAN gossip within a datacenter) with `retry_join_wan` (used for WAN gossip across datacenters).

44
Multi-Selecthard

Which TWO of the following accurately describe Consul's WAN gossip protocol behavior?

Select 2 answers
A.It involves only the server nodes of each datacenter.
B.It relies on a central hub-and-spoke architecture.
C.It is optimized to handle higher latency than LAN gossip.
D.It includes all client nodes in the gossip pool.
E.It is mandatory for service discovery.
AnswersA, C

The WAN gossip pool contains only Consul server nodes, one per datacentre, which exchange membership and datacentre information across the federation. Clients join only the LAN pool, so this statement accurately describes WAN gossip behaviour.

Why this answer

Option A is correct because Consul's WAN gossip pool is formed exclusively by the server nodes from each datacenter, which federate across datacenters; client agents do not participate in the WAN gossip. Option C is correct because the WAN gossip protocol is specifically tuned for higher latency and lower bandwidth conditions typical of cross-datacenter links, unlike the LAN gossip pool that assumes low-latency local networks. Option B is not correct because Consul's WAN gossip uses a full-mesh among servers rather than a central hub-and-spoke topology.

Option D is not correct because client nodes only join the LAN gossip pool within their own datacenter, not the WAN pool. Option E is not correct because service discovery relies on the catalog and DNS/HTTP interfaces, not on the WAN gossip protocol being mandatory.

Exam trap

Consul 1.15 often tests the distinction between LAN and WAN gossip pools, and candidates commonly assume that all nodes participate in WAN gossip or that it is required for service discovery, leading to incorrect selections.

45
MCQhard

An 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?

A.The primary datacenter's servers are not configured with retry_join_wan pointing to the secondary.
B.The secondary datacenter's servers have a different gossip encryption key than the primary.
C.The secondary datacenter is configured with primary_datacenter set to its own name instead of the primary's name.
D.The secondary datacenter's servers are not configured with a valid acl_replication_token.
AnswerD

ACL replication requires the secondary datacenter to authenticate to the primary using a token with replication permissions. If acl_replication_token is missing, expired, or lacks the necessary policies, the secondary cannot pull token and policy updates. As a result, tokens created in the primary will not be replicated, and the secondary will not recognize them for authorization.

Why this answer

ACL replication in Consul is driven by the secondary datacenter, which uses acl_replication_token to authenticate to the primary and pull updates. Without a valid token, the secondary cannot fetch new tokens or policies, so tokens created in the primary will not be recognized. Other settings like retry_join_wan and gossip encryption affect WAN federation but not the ACL replication process itself.

Exam trap

The trap here is focusing on WAN gossip settings when the symptom points specifically to ACL replication, which depends on a replication token rather than gossip configuration.

Ready to test yourself?

Try a timed practice session using only Multi Datacenter Federation questions.