Courseiva

Consul 1.15 · topic practice

Service Discovery practice questions

Service Discovery covers how services and nodes register with Consul, how health checks gate their visibility, and how clients locate healthy instances via DNS or HTTP. Questions test catalog registration, TTL and other check behavior, node failure consequences, and cross-datacenter query resolution using real Consul APIs and defaults.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Service Discovery

What the exam tests

What to know about Service Discovery

Be able to register a service with a health check through the Consul HTTP API and predict its status transitions, including TTL expiry and deregistration. The key skill is knowing how check state controls whether an instance is returned by DNS or catalog queries.

Registering services and health checks via the /v1/agent/service/register HTTP API

TTL check semantics: pass, warn, fail endpoints and deregistration after critical timeout

DNS interface queries like user-auth.service.consul and default datacenter scoping

How node failure marks checks critical and removes node from catalog health results

Watch out for

Common Service Discovery exam traps

  • ▸Assuming a TTL check starts passing automatically; without a pass call it goes critical and can trigger deregistration.
  • ▸Forgetting that DNS queries default to the local datacenter unless a datacenter is explicitly specified.
  • ▸Confusing service registration with health: a registered service still appears unhealthy until its checks pass.

Practice set

Service Discovery questions

20 questions · select your answer, then reveal the explanation

You are troubleshooting why a service registered via HTTP API is not showing up in the catalog. Which tool provides the most immediate insight into the registration status?

Which Consul feature allows you to perform health checks against a service that does not have an exposed HTTP endpoint but resides on the same machine?

An administrator wants to register a service using a JSON file. Where should this file be placed on a standard Consul agent installation to ensure automatic loading?

You need to register a service that runs on a dynamic port. How should the service definition be configured to allow Consul to detect the port?

Question 5mediummultiple choice
Read the full DNS explanation →

You need to ensure that a service is only discoverable via DNS if it passes its health checks. Which configuration setting in the service definition achieves this?

You are configuring a service check that needs to be ignored if the node is in maintenance mode. What is the correct approach?

How does Consul handle service discovery in multi-datacenter environments when a service is requested by name?

You need to ensure a service instance is removed from the catalog immediately after the service process terminates. Which setting helps?

How does Consul handle service discovery when using the 'prepared query' feature?

Question 10mediummultiple choice
Read the full DNS explanation →

You are querying the Consul DNS interface for a service. How can you exclude specific tags from the results?

Which file format is primarily used for defining services in Consul?

What command displays the currently registered services in the local agent?

Question 13mediummulti select
Read the full DNS explanation →

Which TWO of the following can be used to filter services during a DNS query?

Which THREE of the following fields are typically included in a service metadata (meta) block?

Which TWO of the following describe a Consul 'service definition'?

Which THREE of the following are valid Consul health check statuses?

Question 17mediummultiple choice
Read the full DNS explanation →

A platform team runs a Consul cluster in production. They want to prevent a specific service, `redis-cache`, from being returned by DNS queries and catalog lookups unless it has passed its health check. They have already configured a TTL health check for the service. What must they do to ensure the service is only discoverable when healthy?

Question 18mediummultiple choice
Read the full Service Discovery explanation →

A Consul operator needs to register an external service (a third-party API) into the Consul catalog so that internal applications can discover it alongside other services. The external service does not run a Consul agent. Which Consul feature should the operator use?

A developer registers a web service `api-gateway` on a Consul node using the HTTP API. The service definition includes a `meta` block with `version` and `environment` keys. Later, the developer queries the service catalog and notices that the `meta` fields are not returned in the response. What is the most likely reason for the missing metadata?

Question 20mediummultiple choice
Read the full Service Discovery explanation →

A developer registers a new service instance with the local Consul agent using the HTTP API. The registration includes a TCP health check on port 8080. The service process is running and listening on port 8080, but the check status remains 'critical'. The developer confirms the port is open using netcat from the same host. What is the most likely cause?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Service Discovery sessions

Start a Service Discovery only practice session

Every question in these sessions is drawn from the Service Discovery domain — nothing else.

Related practice questions

Related Consul 1.15 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the Consul 1.15 exam test about Service Discovery?
Be able to register a service with a health check through the Consul HTTP API and predict its status transitions, including TTL expiry and deregistration. The key skill is knowing how check state controls whether an instance is returned by DNS or catalog queries.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Service Discovery questions in a focused session?
Yes — the session launcher on this page draws every question from the Service Discovery domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other Consul 1.15 topics?
Use the topic links above to move to related areas, or go back to the Consul 1.15 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the Consul 1.15 exam covers. They are not copied from any real exam or dump site.