Courseiva
Service DiscoverymediumMultiple ChoiceObjective-mapped

Consul 1.15 Service Discovery Practice Question

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

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

Consul DNS does not support tag exclusion; you must filter via the HTTP API.

Consul DNS queries do not support tag exclusion directly in the query string; you filter by including only the desired tags.

Answer analysis

Option-by-option breakdown

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

  • Use the '!' character before the tag name.

    Why it's wrong here

    This syntax is not supported in DNS.

  • Consul DNS does not support tag exclusion; you must filter via the HTTP API.

    Why this is correct

    DNS queries are limited; complex filtering requires the HTTP API.

  • Add a 'not' parameter to the query.

    Why it's wrong here

    'not' is not a valid parameter.

  • Use regex in the service name.

    Why it's wrong here

    Service names do not support regex.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

One of 194 original Consul 1.15 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.