Bird
0
0

Given this output from kubectl get deployment frontend:

medium📝 Command Output Q5 of 15
Kubernetes - ReplicaSets and Deployments
Given this output from kubectl get deployment frontend:
DESIRED=4, CURRENT=5, UP-TO-DATE=4, AVAILABLE=4
What does the extra Pod indicate?
ADeployment is scaling up to 5 Pods
BA Pod is terminating but still counted in current
CThere is a Pod stuck in pending state
DDeployment has an error and created extra Pod
Step-by-Step Solution
Solution:
  1. Step 1: Compare desired and current replicas

    Desired=4 but current=5 means one extra Pod exists temporarily.
  2. Step 2: Understand Pod lifecycle

    Extra Pod is likely terminating but still counted until fully removed.
  3. Final Answer:

    A Pod is terminating but still counted in current -> Option B
  4. Quick Check:

    Current can temporarily exceed desired during Pod termination [OK]
Quick Trick: Current can be higher during Pod termination [OK]
Common Mistakes:
  • Assuming Deployment scales beyond desired
  • Thinking extra Pod is pending or error
  • Ignoring Pod termination delay

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes