Bird
0
0

What explains this behavior in terms of desired vs actual state reconciliation?

hard📝 Best Practice Q15 of 15
Kubernetes - Fundamentals
You want to update a Deployment's container image from nginx:1.19 to nginx:1.21. After applying the change, you see some pods still run the old image. What explains this behavior in terms of desired vs actual state reconciliation?
AKubernetes ignores image changes unless manually restarted.
BKubernetes gradually updates pods to match desired state using rolling updates.
CKubernetes cannot update pods without deleting the Deployment.
DKubernetes immediately deletes all old pods and creates new ones.
Step-by-Step Solution
Solution:
  1. Step 1: Understand rolling update strategy

    Kubernetes uses rolling updates to gradually replace old pods with new ones to avoid downtime.
  2. Step 2: Explain why old pods remain temporarily

    During rolling update, some pods run old image until replaced, so actual state temporarily differs from desired state.
  3. Final Answer:

    Kubernetes gradually updates pods to match desired state using rolling updates. -> Option B
  4. Quick Check:

    Rolling update means gradual pod replacement [OK]
Quick Trick: Rolling updates replace pods gradually [OK]
Common Mistakes:
  • Expecting instant pod replacement
  • Thinking Deployment must be deleted to update
  • Believing Kubernetes ignores image changes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes