Certified Kubernetes Application Developer (CKAD) · Section 1 · 20% of the exam
Utilize persistent and ephemeral volumes
One of the objectives of the Certified Kubernetes Application Developer (CKAD) exam, in the section “Application Design and Build”. Here is what it covers, the points to remember and a question to try.
What it covers
Container filesystems vanish when a container restarts. This lesson covers ephemeral volumes (emptyDir, configMap, secret, downwardAPI, projected, image volumes, hostPath), and persistent storage through PersistentVolumes, PersistentVolumeClaims and StorageClasses, including access modes, reclaim policies, binding rules and the pitfalls that cause Pending claims.
Points to remember
emptyDirlives with the Pod, survives container restarts and can be memory-backed withmedium: Memory.- configMap, secret, downwardAPI and projected volumes are read-only;
subPathmounts do not receive updates. hostPathties data to a node and is forbidden by baseline and restricted Pod Security Standards.- Image volumes mount an OCI image read-only; stable in v1.36 and require runtime support.
- Pods reference PVCs; a PVC binds one-to-one to a PV of enough capacity, matching access modes and class.
Try a question
A Pod needs (1) scratch space shared between two of its containers, (2) a settings file delivered from the API as read-only data, and (3) a database directory that must survive Pod rescheduling. Which combination of volume types fits?
- A
hostPath,secret,emptyDir - B
persistentVolumeClaim,emptyDir,configMap - C
emptyDir,downwardAPI,hostPath - D
emptyDir,configMap,persistentVolumeClaim
Show the answer
D. Scratch sharing within a Pod is emptyDir, settings delivered from the API as files are a configMap (or a secret for sensitive data), and data that outlives the Pod needs a PVC. hostPath ties data to one node and is a security risk.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Ephemeral and Persistent Volumes teaches this objective (about 45 minutes), and 14 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.