Service Discovery Interview Question-Answer

Q.1 Service Discovery can perform the following service(s).

       A. Stores metadata about service

       B. Health monitoring

       C. Real-time updates

       D. All the options

Ans : All the options


Q.2 Identify the key aspect(s) for a successful service discovery solution.

       A. Service lookup

       B. Service registration

       C. Service discovery

       D. Consistency of information across the instances

       E. All the options

Ans : All the options


Q.3 Which of the registration patterns is best suited for complex architecture?

       A. Self registration

       B. Client side discovery pattern

       C. Third party registration pattern

Ans : Third party registration pattern


Q.4 Identify the right service registry solution that supports discovery.

       A. Ribbon

       B. Zookeeper

       C. Docker

Ans : Zookeeper


Q.5 Is it possible for any service discovery tool to satisfy all the three guarantees (Consistency, Availability, Partition) in a distributed environment?

       A. No, only two of the guarantees can be achieved

       B. Yes, all three can be achieved

       C. No, only one of the guarantees can be achieved

Ans : No, only two of the guarantees can be achieved.


Q.6 ________ supports load balancing in addition to service discovery.

       A. Zookeeper

       B. Consul

       C. Ribbon

Ans : Ribbon


Q.7 The process of consensus in distributed systems is essential to achieve ____________.

       A. Share stronger store models

       B. Fault-tolerance

       C. Common view of system state

       D. All the options

Ans : All the options


Q.8 In _________ pattern, clients connect with the backend services directly.

       A. Server side discovery pattern

       B. Client side discovery pattern

Ans : Client side discovery pattern


Q.9 AWS Elastic Load Balancer (ELB) is an example following ________ pattern of service discovery.

       A. Client side discovery pattern

       B. Server side discovery pattern

Ans : Server side discovery pattern


Q.10 In server-side discovery pattern, load balancing and routing of the request to the service instances are taken care of by the service discovery tool.

       A. True

       B. False

Ans : True


Q.11 A leader node is mandatory in distributed systems to service any Read/Write request. Is this statement correct?

       A. Yes, a leader node is required for read/write requests

       B. No, a leader node is required only for read requests

       C. No, a leader node is required only for write requests

Ans : No, a leader node is required only for write requests


Q.12 The process of consensus in distributed systems is essential to achieve ____________.

       A. Fault-tolerance

       B. Common view of system state

       C. Share stronger store models

       D. All the options

Ans : All the options


Q.13 _________ is associated to every user request to track the service requests placed by the users.

       A. Node Id

       B. Instance Id

       C. Correlation Id

Ans : Correlation Id


Q.14 How can one ensure high availability of service discovery solution so that services can be easily discovered even in the event of any failure scenarios? (I) Service registry information exchange among clusters (II) Service clients caching the service registry information

       A. I & II

       B. I

       C. II

       D. None of the options

Ans : I & II


Q.15 ________ is the foundation for proper monitoring, load balancing and routing in distributed systems.

       A. Maintaining the user base information for the applications

       B. Collecting the application functionality details

       C. Capturing and maintaining all the service instance information

Ans : Capturing and maintaining all the service instance information


Q.16 What happens when the heartbeat from any service instance is not received by the service register?

       A. The instance is disregarded for service availability

       B. The instance is deleted from the system

Ans : The instance is disregarded for service availability


Q.17 In distributed systems, knowing that partition can always occur, what kind of service discovery tool would you prefer?

       A. One that follows CP (Consistency, Partition)

       B. One that follows AP (Availability, Partition)

Ans : One that follows AP (Availability, Partition)


Leave a Comment

Your email address will not be published. Required fields are marked *