CKA Storage Practice Question
Which of the following volume types provides ephemeral storage that shares the pod's lifecycle and is initially empty?
⚠ Common exam trap
Test-takers frequently confuse `emptyDir` with `hostPath` or `configMap`, mistakenly thinking that any volume that is initially empty must be a `configMap` or that `hostPath` provides ephemeral storage, when in fact `emptyDir` is the only volume type that is both ephemeral and initially empty by design.
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
✓
emptyDir
B is correct because an `emptyDir` volume is created empty when a Pod is assigned to a node and exists as long as that Pod is running. It provides ephemeral storage that shares the Pod's lifecycle, meaning it is deleted when the Pod is removed, and it is initially empty, making it ideal for scratch space, caching, or temporary data.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
secret
Why it's wrong here
A secret volume projects existing Secret objects into the pod as files; it is not initially empty and holds externally supplied data. It tempts because it shares the pod lifecycle, but the stem requires a scratch volume created empty, which emptyDir provides.
- ✓
emptyDir
Why this is correct
An `emptyDir` volume is created when the pod is scheduled and deleted permanently when the pod is removed, satisfying the shared-lifecycle constraint. Its contents start empty and persist across container restarts within that pod, unlike `hostPath`, which survives pod deletion by binding to the node's filesystem.
- ✗
configMap
Why it's wrong here
A configMap volume mounts existing ConfigMap keys as files, so its content is predefined rather than initially empty. It tempts because it is pod-scoped and disappears with the pod, but the stem's requirement for an empty scratch directory is satisfied by emptyDir instead.
- ✗
hostPath
Why it's wrong here
hostPath mounts a directory from the node's filesystem, so its contents persist beyond the pod and are not initially empty. It tempts because it needs no persistent volume claim, but the stem requires storage tied to the pod lifecycle, which emptyDir supplies.
Go deeper
Related to this question
About these practice questions
One of 726 original CKA 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 by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CKA 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 CKA exam.