A Pod uses an
emptyDir volume mounted at /data. A process writes a file there, then the Pod is deleted and a new Pod with the same spec is created. What happens to the file?- aIt is copied to the new Pod automatically by the kubelet
- bIt stays on the node and the new Pod mounts the same directory
- cIt is gone, since emptyDir is scoped to that Pod's lifetime✓
- dIt moves to whichever PersistentVolume is bound in the namespace
Explanation:An emptyDir volume is created when a Pod is assigned to a node and its contents are deleted permanently when that specific Pod is removed. A new Pod, even with an identical spec, gets a fresh empty directory.