Hashicorp Certified Consul Associate 002 · Free Practice Question Easy

Question 6

Rachel is responsible for managing the Consul implementation at Startup, Inc. She has federation configured between three Consul datacenters to ensure the highest of application availability. The three datacenters are named dc1, dc2, and dc3. For the service named web-app, she has written the prepared query (shown below) and created the prepared query in dc1.

In the event of a local failure, how many times will Consul reach out to query dc2 for an available web-app service?

  • A

    it will not use the other datacenters for failover

  • B

    3

  • C

    2

  • D

    1

Reveal correct answer

Correct answer: D

Explanation

Although this hybrid prepared query defines dc2 and dc3 twice (using Nearest and a static policy), each datacenter is only queried one time during a failover event in Consul.

https://developer.hashicorp.com/consul/api-docs/query#failover

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need