Bird
0
0

If a Kubernetes Service selects pods with label app=backend and one of the three pods is terminated, what will be the effect on the Service endpoints?

medium📝 Command Output Q4 of 15
Kubernetes - Services
If a Kubernetes Service selects pods with label app=backend and one of the three pods is terminated, what will be the effect on the Service endpoints?
AThe Service will automatically update endpoints to exclude the terminated pod
BThe Service will stop routing traffic until the pod is replaced
CThe Service will continue routing traffic to the terminated pod IP
DThe Service will crash due to missing pod
Step-by-Step Solution
Solution:
  1. Step 1: Understand Service endpoint management

    Kubernetes Services dynamically track pods matching the selector and update endpoints accordingly.
  2. Step 2: Effect of pod termination

    When a pod is terminated, it is removed from the endpoints list, so traffic is no longer routed to it.
  3. Final Answer:

    The Service will automatically update endpoints to exclude the terminated pod -> Option A
  4. Quick Check:

    Endpoints update dynamically with pod lifecycle [OK]
Quick Trick: Service endpoints reflect current pods only [OK]
Common Mistakes:
  • Assuming Service routes to terminated pods
  • Believing Service stops routing if pods change
  • Thinking Service crashes on pod deletion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes