Bird
0
0

Why is it important that a Deployment's selector matches the Pod template labels exactly?

hard📝 Conceptual Q10 of 15
Microservices - Orchestration with Kubernetes
Why is it important that a Deployment's selector matches the Pod template labels exactly?
ATo allow Services to route traffic correctly
BTo configure network policies automatically
CTo enable persistent storage attachment
DTo ensure the Deployment manages the correct Pods for updates and scaling
Step-by-Step Solution
Solution:
  1. Step 1: Understand selector-label relationship

    The selector defines which Pods the Deployment controls for lifecycle management.
  2. Step 2: Analyze other options

    Service routing depends on Service selectors, storage and network policies are unrelated to Deployment selectors.
  3. Final Answer:

    To ensure the Deployment manages the correct Pods for updates and scaling -> Option D
  4. Quick Check:

    Selector-label match = Deployment control [OK]
Quick Trick: Selector must match Pod labels for Deployment control [OK]
Common Mistakes:
MISTAKES
  • Confusing Deployment selector with Service selector
  • Assuming selector affects storage or network
  • Ignoring exact label matching

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes