Bird
0
0

Why does a Kubernetes Service use label selectors instead of static IPs to provide stable networking?

hard📝 Conceptual Q10 of 15
Kubernetes - Services
Why does a Kubernetes Service use label selectors instead of static IPs to provide stable networking?
ABecause pod IPs are dynamic and label selectors allow flexible routing
BBecause static IPs are assigned to Services only
CBecause label selectors improve pod security
DBecause static IPs cause network conflicts
Step-by-Step Solution
Solution:
  1. Step 1: Understand pod IP dynamics

    Pods get dynamic IPs that can change frequently, making static IPs unreliable.
  2. Step 2: Role of label selectors

    Label selectors allow Services to route traffic to any pods matching criteria, regardless of IP changes.
  3. Final Answer:

    Because pod IPs are dynamic and label selectors allow flexible routing -> Option A
  4. Quick Check:

    Dynamic IPs + selectors = stable routing [OK]
Quick Trick: Selectors handle dynamic pod IPs flexibly [OK]
Common Mistakes:
  • Confusing static IP assignment
  • Assuming selectors improve security only
  • Thinking static IPs cause conflicts always

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes