Networking
medium

Questão de Networking #019e3a4f

Enunciado da Questão
Networking
#cloud native
#service discovery
#microservices
Médio

What best describes cloud native service discovery?

A

It's a mechanism for applications and microservices to locate each other on a network.

Correta
B

It's a procedure for discovering a MAC address, associated with a given IP address.

C

It's used for automatically assigning IP addresses to devices connected to the network.

D

It's a protocol that turns human-readable domain names into IP addresses on the Internet.

Explicação Oficial / Explicações da Comunidade

Cloud native service discovery is a mechanism for applications and microservices to locate each other on a network. In cloud native environments, services are dynamic, with instances being created and destroyed frequently. Service discovery enables clients to find the network location (IP address and port) of a service instance without hardcoding configurations. This is typically achieved through a service registry (e.g., Consul, etcd, ZooKeeper) where services register themselves and clients query the registry to obtain the endpoint. The correct answer describes this core functionality.

How it works:

  • Service instances register their network endpoints with a service registry upon startup.
  • Clients or load balancers query the registry to discover available instances.
  • The registry provides health checks to ensure only healthy instances are returned.
  • This decouples service location from application code, enabling scalability and resilience.

Why the correct answer is right:
The statement "a mechanism for applications and microservices to locate each other on a network" precisely captures the essence of service discovery in cloud native architectures. It emphasizes the dynamic nature of microservices and the need for automated location.

Why the incorrect answers are wrong:

  • "A procedure for discovering a MAC address, associated with a given IP address" describes Address Resolution Protocol (ARP), which operates at Layer 2 of the OSI model and is unrelated to application-level service discovery.
  • "Used for automatically assigning IP addresses to devices connected to the network" refers to DHCP (Dynamic Host Configuration Protocol), which assigns IP configurations but does not provide service location.
  • "A protocol that turns human-readable domain names into IP addresses on the Internet" describes DNS (Domain Name System). While DNS can be used for service discovery (e.g., SRV records), cloud native service discovery is broader and typically involves dynamic registration and health checking beyond simple name resolution.