Kcna Kubernetes And Cloud Native Associate · Free Practice Question Easy

Question 54

What system allows containers to discover services and establish connectivity in an environment using service discovery and service mesh?

  • A

    load balancers

  • B

    DNS

  • C

    Kubernetes service

  • D

    eBPF

Reveal correct answer

Correct answer: B

Explanation

In environments using service discovery and service mesh, DNS (Domain Name System) plays a crucial role in allowing containers to discover services and establish connectivity.

DNS provides the naming and resolution mechanism that allows containers to discover services by their DNS names. When a service is deployed within a cluster, it is associated with a DNS name, and DNS resolution ensures that containers can find the IP addresses of the services they want to communicate with. This DNS-based service discovery is fundamental to the operation of service meshes like Istio and is used to route traffic between services based on their DNS names.

https://developer.hashicorp.com/consul/docs/concepts/service-discovery

A. Load balancers are not directly responsible for enabling containers to discover services and establish connectivity. While load balancers help distribute incoming network traffic across multiple servers, they do not provide the service discovery and connectivity features required in this context.

B. DNS (Domain Name System) is the correct choice because it is a system that allows containers to discover services by translating domain names into IP addresses. It plays a crucial role in service discovery by enabling containers to establish connectivity with other services in the environment.

C. Kubernetes service is a resource that defines a set of Pods and a policy by which to access them. While Kubernetes services play a role in enabling connectivity between different parts of an application, they are not the system responsible for overall service discovery and connectivity in a containerized environment. DNS is the primary system for this purpose.

D. eBPF (Extended Berkeley Packet Filter) is a technology used for efficient packet filtering and analysis in the Linux kernel. While eBPF can be used for network-related tasks, it is not specifically designed for service discovery and connectivity between containers in a Kubernetes environment.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need