Skip to content

Service discovery and registration Questions

Practice questions for Service discovery and registration topic in HashiCorp Certified: Consul Associate (003). 28 questions covering this domain.

28 questions7 easy15 medium6 hard
Q1
medium

A team registers services using configuration files in Consul's configuration directory. After adding a new service definition file, what must they do...

Q2
medium

A service registered with Consul has three instances across two availability zones. A prepared query is configured to prefer local instances but fail ...

Q3
medium

An application developer wants to query the Consul service catalog for all healthy instances of the `api` service using the HTTP API. Which HTTP endpo...

Q4
hard

A Consul operator registers the same `web` service on ten nodes. When clients query `web.service.consul` via DNS, they receive different IP addresses ...

Q5
easy

A Consul service definition includes a `check` block with `interval = "10s"` and `timeout = "3s"`. Which behavior does this configuration produce?

Q6
easy

A developer registers a service called `payments` with Consul and wants other services to resolve it using Consul's built-in DNS. Which DNS name forma...

Q7
hard

A team uses the Consul HTTP API to register a service with a custom health check script. After registering, the health check never runs and the servic...

Q8
medium

An alias check needs to mirror the health of a service that is not registered with the same local agent. What extra field is required in the check def...

Q9
medium

A team wants to use prepared queries to select a specific port from a service that registers multiple ports. What does Consul support?

Q10
medium

An HTTP health check receives status code `429` from the application. How does Consul classify that result?

Q11
easy

A VM service definition file contains only one required field. Which field is it?

Q12
hard

An operator wants to register multiple services from one file. Which combination is valid according to the service definition docs?

Q13
easy

A newly registered health check should not appear healthy until it is actually verified. What initial status does Consul assign to checks by default?

Q14
medium

A service uses a TTL check and the node restarts. Which statement is true about the check status?

Q15
medium

An HTTP health check uses an IP address in its URL and the service requires TLS with a specific SNI name. Which field should the operator set?

Q16
medium

A TCP health check targets a hostname that resolves to both an IPv4 address and an IPv6 address. When does Consul mark the check healthy?

Q17
hard

A team adds a gRPC health check and assumes TLS is enabled automatically. The endpoint requires TLS, but the check still fails during handshake. What ...

Q18
medium

An external monitoring system needs to update service tags and have those tag changes remain the source of truth for a locally registered service. Whi...

Q19
easy

A service definition includes an HTTP health check but omits the method field. Which HTTP method will Consul use?

Q20
easy

A script health check exits with code 1. How does Consul classify the check result?

Sign in to see all 28 questions

Create a free account to browse all questions — completely free during our launch phase.