Bird
0
0

What will happen if a Pod uses a Volume of type emptyDir and the Pod is deleted?

medium📝 Command Output Q5 of 15
Kubernetes - Persistent Storage
What will happen if a Pod uses a Volume of type emptyDir and the Pod is deleted?
AThe data in the emptyDir volume is deleted along with the Pod.
BThe data in the emptyDir volume persists after Pod deletion.
CThe emptyDir volume is converted to a Persistent Volume automatically.
DThe emptyDir volume data is backed up to a Persistent Volume.
Step-by-Step Solution
Solution:
  1. Step 1: Understand emptyDir volume behavior

    emptyDir volumes are temporary and tied to Pod lifecycle.
  2. Step 2: Effect of Pod deletion

    When Pod is deleted, emptyDir data is deleted as well.
  3. Final Answer:

    The data in the emptyDir volume is deleted along with the Pod. -> Option A
  4. Quick Check:

    emptyDir data = deleted with Pod [OK]
Quick Trick: emptyDir data disappears when Pod is removed [OK]
Common Mistakes:
  • Assuming emptyDir data persists after Pod deletion
  • Thinking emptyDir converts to Persistent Volume
  • Believing data is backed up automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes