Bird
0
0

What is the main advantage of Kubernetes using DNS-based service discovery instead of hardcoding IP addresses for services?

hard📝 Conceptual Q10 of 15
Kubernetes - Services
What is the main advantage of Kubernetes using DNS-based service discovery instead of hardcoding IP addresses for services?
AIt eliminates the need for service endpoints
BIt reduces DNS traffic in the cluster
CIt enforces strict IP address allocation policies
DIt allows services to be dynamically discovered despite IP changes
Step-by-Step Solution
Solution:
  1. Step 1: Understand service IP dynamics

    Service IPs can change due to scaling, restarts, or cluster changes.
  2. Step 2: Role of DNS

    DNS provides a stable name that resolves to current service IPs dynamically.
  3. Step 3: Evaluate other options

    DNS does not reduce traffic or eliminate endpoints; it enables dynamic discovery.
  4. Final Answer:

    It allows services to be dynamically discovered despite IP changes -> Option D
  5. Quick Check:

    Dynamic IPs require DNS names for stable access [OK]
Quick Trick: DNS abstracts changing IPs for stable service access [OK]
Common Mistakes:
  • Thinking DNS reduces network traffic
  • Believing DNS removes need for endpoints
  • Assuming IPs never change

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes