Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation KCNA Exam - Topic 5 Question 74 Discussion

Actual exam question for Linux Foundation's KCNA exam
Question #: 74
Topic #: 5
[All KCNA Questions]

What is the main role of the Kubernetes DNS within a cluster?

Show Suggested Answer Hide Answer
Suggested Answer: D

Kubernetes DNS (commonly implemented by CoreDNS) provides service discovery inside the cluster by assigning stable, consistent DNS names to Services and (optionally) Pods, which makes D correct. In a Kubernetes environment, Pods are ephemeral---IP addresses can change when Pods restart or move between nodes. DNS-based discovery allows applications to communicate using stable names rather than hardcoded IPs.

For Services, Kubernetes creates DNS records like service-name.namespace.svc.cluster.local, which resolve to the Service's virtual IP (ClusterIP) or, for headless Services, to the set of Pod endpoints. This supports both load-balanced communication (standard Service) and per-Pod addressing (headless Service, commonly used with StatefulSets). Kubernetes DNS is therefore a core building block that enables microservices to locate each other reliably.

Option A is not Kubernetes DNS's purpose; it serves cluster workloads rather than external VMs. Option B describes a managed DNS hosting product (creating zones/registries), which is outside the scope of cluster DNS. Option C describes protocol translation, which is not the role of DNS. Dual-stack support relates to IP families and networking configuration, not DNS translating IPv6 to IPv4.

In day-to-day Kubernetes operations, DNS reliability impacts everything: if DNS is unhealthy, Pods may fail to resolve Services, causing cascading outages. That's why CoreDNS is typically deployed as a highly available add-on in kube-system, and why DNS caching and scaling are important for large clusters.

So the correct statement is D: Kubernetes DNS provides consistent DNS names so workloads can communicate reliably.

=========


Contribute your Thoughts:

0/2000 characters
Gabriele
9 hours ago
I remember practicing a question about DNS in Kubernetes, and I think it was about providing consistent names for services. That sounds like option D.
upvoted 0 times
...
Hana
5 days ago
I think the main role of Kubernetes DNS is related to how Pods and Services communicate, but I'm not entirely sure which option that is.
upvoted 0 times
...

Save Cancel