20+ practice questions focused on Service Discovery — one of the most tested topics on the HashiCorp Certified: Consul Associate (Consul 1.15) (Consul 1.15) exam. Each question includes a detailed explanation so you learn why the right answer is correct.
Start Service Discovery PracticeYou 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?
Explanation: The 'consul catalog services' command queries the catalog API and lists all services currently registered in the catalog, making it the fastest way to confirm whether a service registration via the HTTP API actually landed. If the service is missing, the registration failed or targeted the wrong agent/datacenter.
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?
Explanation: A script health check runs an arbitrary command or script on the same machine as the Consul agent, so it can verify a service that has no exposed HTTP endpoint by checking process state, files, or local sockets. This makes it the correct choice for a local service without an HTTP interface.
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?
Explanation: The /etc/consul.d/ directory is the standard configuration directory for Consul agents. When a Consul agent starts, it automatically loads all JSON configuration files placed in this directory, including service definitions. This allows services to be registered without restarting the agent, as Consul watches the directory for changes.
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?
Explanation: Consul allows the use of 0 as a port, and the registration process typically involves discovering the port via an external process or environment variable.
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?
Explanation: The DNS interface in Consul supports a 'passing' parameter that, when set to true in the DNS query (e.g., servicename.service.consul?passing), filters results to only include instances whose health checks are passing. This is a query-time option, not a service definition setting. It ensures that only healthy instances are returned in DNS responses.
+15 more Service Discovery questions available
Practice all Service Discovery questions1. Baseline your knowledge
Start with 10 questions to gauge your current understanding of Service Discovery. This tells you whether you need a concept refresher or just practice.
2. Review every explanation
For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.
3. Focus on exam traps
Service Discovery questions on the Consul 1.15 frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.
4. Reach 80% consistently
Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.
The exact number varies per candidate. Service Discovery is tested as part of the HashiCorp Certified: Consul Associate (Consul 1.15) (Consul 1.15) blueprint. Practicing with targeted Service Discovery questions ensures you can handle any format or difficulty that appears.
Yes. Courseiva provides free Consul 1.15 practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.
Difficulty is subjective, but Service Discovery is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.
Launch a full Service Discovery practice session with instant scoring and detailed explanations.
Start Service Discovery Practice →