Bird
0
0

Why might kubectl delete pod my-pod not immediately remove the pod from the cluster?

hard📝 Conceptual Q10 of 15
Kubernetes - kubectl Essential Commands
Why might kubectl delete pod my-pod not immediately remove the pod from the cluster?
AThe pod is recreated automatically by Kubernetes after deletion
Bkubectl delete only marks the pod for deletion but never removes it
CThe pod is protected and cannot be deleted manually
DThe pod has a finalizer that delays deletion until cleanup is done
Step-by-Step Solution
Solution:
  1. Step 1: Understand pod deletion lifecycle

    Pods can have finalizers that delay actual removal until cleanup tasks finish.
  2. Step 2: Evaluate options

    The pod has a finalizer that delays deletion until cleanup is done correctly explains delayed deletion due to finalizers. kubectl delete only marks the pod for deletion but never removes it is false; delete removes pod. The pod is protected and cannot be deleted manually is incorrect; pods can be deleted unless protected by finalizers. The pod is recreated automatically by Kubernetes after deletion is only true if a controller recreates the pod.
  3. Final Answer:

    The pod has a finalizer that delays deletion until cleanup is done -> Option D
  4. Quick Check:

    Deletion delay = Finalizer present [OK]
Quick Trick: Finalizers can delay pod deletion until cleanup finishes [OK]
Common Mistakes:
  • Thinking delete never removes pods
  • Assuming pods are undeletable
  • Confusing pod recreation with deletion delay

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes