Home › Certifications › CKA › Storage
30 multiple-choice questions and 14 flashcards on Storage, about 10% of the CKA bank. Every one carries a written rationale.
Storage is one of 6 chapters in CoStudy's CKA — Certified Kubernetes Administrator bank, and it holds 30 of the bank's 300 multiple-choice questions — roughly 10% of the total. That proportion is not arbitrary: chapters follow the certifying body's published exam outline, and the number of questions in each is set by that domain's published weight, so the share of your practice time this chapter takes matches the share of the real exam it accounts for.
Studying by chapter is worth doing once you have a diagnostic score. A single overall percentage tells you whether you are close; it does not tell you which domain is dragging. Working a weak chapter in isolation, and re-testing it in isolation, is the fastest way to move a score that has stalled — and it is why the mock exams in CoStudy report by domain rather than as one number.
10 questions drawn from this chapter, with the full rationale shown — the controlling principle behind the right answer, and why each wrong option tempts and fails.
A StatefulSet with volumeClaimTemplates is scaled from 3 replicas down to 1. What happens to the claims created for the removed pods, by default?
Answer: B — They are retained, and scaling back up reattaches the same volumes to the same ordinals
B) Correct — the StatefulSet controller deliberately leaves per-ordinal claims in place, so data is preserved and a later scale-up rebinds each pod to its original volume. A) describes what the optional persistentVolumeClaimRetentionPolicy can be configured to do, but it is not the default. C) confuses PVC lifecycle with the PV phase and misstates who sets reclaim policy. D) invents capacity consolidation that no controller performs.
How do a PersistentVolume and a PersistentVolumeClaim differ?
Answer: D — The PersistentVolume is the storage resource; the claim is a namespaced request for it
D is the answer: the PV is cluster-scoped supply, created by an administrator or by a StorageClass provisioner, and the PVC is namespaced demand that binds to a PV matching its size, access modes and class. The pod then mounts the claim. B and C simply invert the two roles, which is the usual mistake. A ignores that they bind to each other, and E confuses the API objects with the CSI driver pods that implement them.
Which statement about generic ephemeral volumes is MOST accurate?
Answer: A — They are provisioned through a storage class and deleted with the pod that declared them
A) Correct — a generic ephemeral volume gets a claim template inline in the pod, so it benefits from dynamic provisioning and CSI features while sharing the pod's lifecycle. B) confuses it with emptyDir's memory medium option and ignores the provisioning path. C) reverses the defining property, which is that the volume is removed with the pod. D) describes the ordinary persistentVolumeClaim volume source, the alternative this feature exists to avoid.
A PVC is Pending. PV exists with matching size and StorageClass. Most common reason?
Answer: C — accessModes differ, such as a RWO volume against a RWX claim
C is right: binding requires storageClassName, capacity and accessModes all to be compatible, and a ReadWriteOnce volume against a ReadWriteMany claim is the classic mismatch. A invents a policy negotiation that does not exist. B would break far more than one claim. D is wrong because binding happens independently of any pod.
Mounting a ConfigMap as a volume vs as env vars: when the ConfigMap is updated, behavior?
Answer: C — Mounted files refresh after the kubelet sync; env vars do not
C is right: the kubelet re-projects volume contents after its sync period, while env values are resolved once at container start. A and B each generalise one half of the behaviour to both. D reverses the two, which is the trap the item is built around; note subPath mounts also do not refresh.
Which Kubernetes feature provides storage that survives pod restarts and rescheduling?
Answer: B — PersistentVolume plus PersistentVolumeClaim, provisioned dynamically by a StorageClass
B is the answer: the PV is the storage resource, the PVC is the namespaced request, and a StorageClass can provision the PV on demand through a CSI driver. Reclaim policy Retain or Delete governs what happens when the claim goes away. A and E are pod-scoped scratch space. C tempts because the data outlives the pod on that one node, but it does not follow the pod elsewhere. D is lost on every restart.
Which access mode means a volume can be mounted read-write by exactly one POD (not just one node)?
Answer: C — ReadWriteOncePod (RWOP)
RWO = one node. RWOP = one pod (stronger, prevents two pods on the same node from mounting). ROX/RWX allow multiple. Subtle direction-of-scope trick.
Which statement BEST describes what an access mode of ReadWriteOnce actually constrains?
Answer: A — The volume may be mounted read-write by pods on a single node at a time
A) Correct — RWO is a node-level constraint, so multiple pods on that same node can share it read-write. B) is the widely held misconception, and it describes ReadWriteOncePod, the mode added precisely to provide that stricter single-pod guarantee. C) blends RWO with ReadOnlyMany semantics that no single mode provides. D) inverts the scope, allowing one pod on every node, which is closer to a many-node mode.
A PVC bound to a dynamically provisioned volume is deleted, and the StorageClass reclaim policy is Delete. What is the outcome?
Answer: C — The PV and the underlying storage asset are both removed, and the data is not recoverable
C) Correct — Delete is the default for most dynamic provisioners and tears down the backend asset along with the PV object, which is why production classes are often switched to Retain. A) describes the Recycle-style reuse that was removed from Kubernetes. B) describes Retain, the alternative policy. D) invents a safety block that does not exist and misuses the Failed phase, which signals a reclaim error.
Dynamically provisioned PV uses which field on the PVC to pick a StorageClass?
Answer: B — storageClassName, which names the class the provisioner uses
B is right: storageClassName on the claim selects the class, and the matching provisioner then creates the PV; setting it to an empty string disables dynamic provisioning. A binds statically to an existing PV. C is a field of the StorageClass, not the claim. D describes the deprecated beta annotation, superseded by the spec field.
4 cards from the 14 in this chapter.
What is the difference between volumeBindingMode Immediate and WaitForFirstConsumer?
Immediate provisions and binds the volume as soon as the PVC is created, which can place it in a zone where the pod cannot be scheduled. WaitForFirstConsumer delays provisioning until a pod using the claim is scheduled, so the volume is created with the pod's node and zone constraints in mind.
Volume types?
emptyDir, hostPath, nfs, cloud volumes (awsEBS, azureDisk, gcePD), persistentVolumeClaim, configMap, secret.
What are the PersistentVolume phases and what does each mean?
Available: free and not yet bound • Bound: matched to a PVC • Released: the claim is deleted but the volume has not been reclaimed • Failed: automatic reclamation failed. A PVC itself is Pending until bound, then Bound.
What do the reclaim policies Delete and Retain do when a PVC is deleted?
Delete removes the PersistentVolume and the underlying storage asset. Retain keeps both; the PV goes to Released and an administrator must clean and recycle or manually recreate it before the storage can be reused.
These are a sample. The full Storage chapter runs 44 items with per-chapter progress tracking, on the web and in the iOS app.