Courseiva
Service DiscoverymediumMultiple ChoiceObjective-mapped

Consul 1.15 Service Discovery Practice Question

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?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Set the 'passing' parameter to true in the DNS query.

Consul allows filtering services based on health checks via the 'passing' parameter in the DNS interface or by defining the service with a health check.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enable 'only_passing' in the DNS configuration.

    Why it's wrong here

    This setting does not exist in Consul DNS configuration.

  • Disable the agent's 'allow_stale' read setting.

    Why it's wrong here

    Allow_stale affects consistency, not health check filtering.

  • Set the 'passing' parameter to true in the DNS query.

    Why this is correct

    Using the passing query parameter filters results to only include services with passing health checks.

  • Set 'deregister_critical_service_after' to 0.

    Why it's wrong here

    This setting controls service cleanup, not DNS visibility.

About these practice questions

This Consul 1.15 question is part of Courseiva's 194-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official HashiCorp exam blueprint

This Consul 1.15 practice question is part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Consul 1.15 exam.