Exam4Training

What are some reasons that the service does not return any valid hosts?

The organization uses a service named phone-book for hitting a web service to lookup client phone numbers. However, users complain that the service is currently unavailable. You perform a manual DNS query of the service and the DNS response includes no value.

What are some reasons that the service does not return any valid hosts? (select three)
A . the service health checks have failed for each registered instance
B. the service was removed from Consul service registry
C. a prepared query was never configured for the service
D. the node health check has failed for each underlying host

Answer: A,B,D

Explanation:

If Consul does not return a value for a DNS lookup, it means that there are no healthy instances of that service available or the service doesn’t exist in Consul. Instances of a service can be removed if a service or host health check fails, although that instance is still registered to Consul but will not be returned. If the service is manually deregistered from Consul, the DNS query will fail as well since it’s no longer registered with the Consul registry.

https://learn.hashicorp.com/tutorials/consul/service-registration-health-checks

Exit mobile version