Courseiva

Consul 1.15 · topic practice

Health Checking practice questions

This domain covers how Consul monitors service and node health using checks defined in service definitions, agent configuration, or the HTTP API. The exam tests check types (script, HTTP, TCP, TTL, Docker, gRPC), status transitions, and how to query or update health via CLI and API.

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: Health Checking

What the exam tests

What to know about Health Checking

Be able to define checks in service definitions, agent config, and the API; explain TTL check timing; and update TTL checks using consul services check or the HTTP endpoint. The key is knowing that TTL checks only go critical after the TTL interval passes without a heartbeat.

Defining health checks in service definitions, agent config, and via the /agent/check/register API endpoint

TTL check behavior: a missed heartbeat after the TTL interval marks the service critical

Interpreting check statuses (passing, warning, critical) and common causes like script exit codes

Updating TTL checks with consul services check or the /agent/check/pass/<check_id> HTTP endpoint

Watch out for

Common Health Checking exam traps

  • ▸Assuming a TTL check goes critical immediately on crash; it only changes after the TTL interval elapses without a heartbeat.
  • ▸Forgetting that health checks can be defined in multiple places (service definition, agent config, API), not just one.
  • ▸Confusing warning status with critical; warning often comes from a script exiting with code 1, not a hard failure.

Practice set

Health Checking questions

20 questions · select your answer, then reveal the explanation

Question 1mediummultiple choice
Read the full Health Checking explanation →

An operator observes that a service is failing its HTTP health check because the application takes 15 seconds to start up, exceeding the default timeout. Which parameter should be adjusted in the service definition to prevent premature failure?

Question 2mediummultiple choice
Read the full Health Checking explanation →

Which agent configuration allows you to specify the local address that the Consul agent binds to for performing health checks?

You have configured a Script health check that executes a shell command. For security reasons, you want to restrict which scripts the Consul agent can run. What configuration setting must be set to 'false' in the agent configuration to disable script checks entirely?

Which configuration file format is preferred by Consul for defining service health checks?

You are using Consul Template to observe health status. What happens to a service's health check status if the network segment between the agent and the server is partitioned and the server cannot contact the agent?

Question 6mediummultiple choice
Read the full Health Checking explanation →

You want to run a shell command as a health check. Which field in the service definition specifies the command to execute?

What happens if you do not specify an 'interval' for a health check in the configuration?

Which of the following are valid types of health checks in Consul? (Select TWO)

Question 9mediummultiple choice
Read the full Health Checking explanation →

If you need to perform an HTTP check over HTTPS, what configuration option is required to handle self-signed certificates?

Which of the following parameters are used in a service health check configuration? (Select THREE)

Which actions can you perform on a TTL check? (Select TWO)

Which states can a health check report? (Select THREE)

Which of these are required fields for a TCP health check definition? (Select THREE)

An operations engineer registers an HTTP health check against `https://payments.internal:8443/health` on a Consul client agent. The endpoint uses a certificate signed by an internal CA that is not in the system trust store, and requests must carry an `Authorization: Bearer` token. The check currently reports critical. Which two configuration additions are required to make this check pass? (Choose two.)

Question 15mediummultiple choice
Read the full Health Checking explanation →

A cloud engineer is configuring a Consul 1.15 health check for a service that runs on a host with multiple network interfaces. The service listens only on 10.0.1.5:8080, but the Consul agent's default check address resolves to a different interface. The engineer wants the TCP check to connect specifically to 10.0.1.5:8080. Which configuration field should be used within the check definition to achieve this?

A Consul cluster runs a service that uses a script health check. The operations team wants to ensure that the check is correctly configured to detect failures and avoid false positives. Which two fields are required in the script health check definition? (Choose two.)

Question 17mediummultiple choice
Read the full Health Checking explanation →

A platform engineer is registering a web API on a Consul 1.15 agent. The API exposes a readiness endpoint at https://10.0.4.21:8443/ready that requires the header X-Health-Token: s3cr3t, and the check must accept the cluster's internal CA certificate. Which check definition accomplishes this?

Question 18hardmultiple choice
Read the full Health Checking explanation →

A Consul agent is configured with a service that has a health check defined in a separate JSON file. The check is a TCP check against port 5432 on localhost. The agent starts, but the check immediately reports critical even though the database is listening on port 5432. Which configuration error is most likely responsible?

A site reliability engineer is troubleshooting why a service registered in Consul 1.15 is being marked as critical by its HTTP health check. The check is configured with http = "https://internal.service/health", interval = "10s", and timeout = "2s". The service's logs show that requests from Consul are reaching the application and returning HTTP 200, but Consul still reports critical. Which two configuration issues could cause this behavior? (Choose two.)

Question 20mediummultiple choice
Read the full Health Checking explanation →

A platform team runs a legacy batch worker that has no HTTP listener but exposes a lightweight TCP socket on port 9100 for liveness only. They register it in Consul with a service definition that includes a check named "worker-liveness". The worker process occasionally blocks for up to 40 seconds during a nightly compaction routine, but the team still wants Consul to mark it unhealthy only if the socket is genuinely unreachable. Which check configuration best satisfies this requirement?

Free account

Track your progress over time

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

Focused Health Checking sessions

Start a Health Checking only practice session

Every question in these sessions is drawn from the Health Checking 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 Health Checking?
Be able to define checks in service definitions, agent config, and the API; explain TTL check timing; and update TTL checks using consul services check or the HTTP endpoint. The key is knowing that TTL checks only go critical after the TTL interval passes without a heartbeat.
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 Health Checking questions in a focused session?
Yes — the session launcher on this page draws every question from the Health Checking 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.