KCNA Kubernetes Fundamentals Practice Question
A developer creates a Pod with a volume of type emptyDir. The Pod writes data to the volume and then is deleted. What happens to the data?
⚠ Common exam trap
Candidates often confuse emptyDir with a PersistentVolume, assuming that data written to any volume persists after Pod deletion, when emptyDir is strictly temporary.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The data is permanently deleted when the Pod is removed.
An emptyDir volume is ephemeral and scoped to the Pod. When the Pod is deleted, the volume is removed from the node, and its data is lost. To retain data beyond the Pod's lifetime, you must use a PersistentVolumeClaim backed by durable storage. This behavior is fundamental for understanding stateless versus stateful workloads.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The data remains in the container's filesystem layer and can be recovered by restarting the container.
Why it's wrong here
The container filesystem is also ephemeral and is lost when the container is recreated. emptyDir is a separate volume mounted into the container, but it is still deleted with the Pod. Restarting the container within the same Pod would preserve the emptyDir, but once the Pod is deleted, the data is gone.
- ✗
The data persists on the node and can be reused by a new Pod if the same emptyDir name is used.
Why it's wrong here
emptyDir is tied to the Pod's lifecycle, not the node. When the Pod is deleted, the volume is removed. A new Pod with the same emptyDir name will get a fresh, empty volume; it cannot access data from the previous Pod. Persistence requires a PersistentVolume.
- ✓
The data is permanently deleted when the Pod is removed.
Why this is correct
An emptyDir volume is created when a Pod is assigned to a node and exists only for the lifetime of that Pod. When the Pod is deleted, the emptyDir volume and all its data are deleted. This makes it suitable for temporary scratch space, caching, or sharing files between containers in the same Pod.
- ✗
The data is automatically backed up to a PersistentVolume before deletion.
Why it's wrong here
emptyDir has no built-in backup or migration to PersistentVolume. It is a node-local temporary directory. If data needs to survive Pod deletion, the developer must explicitly use a PersistentVolumeClaim. Kubernetes does not automatically promote emptyDir data to persistent storage.
Go deeper
Related to this question
About these practice questions
One of 930 original KCNA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CNCF exam blueprint
This KCNA practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the KCNA exam.