CKA · domain
Storage
The Storage domain covers how Kubernetes provisions, binds, mounts, and reclaims persistent data for workloads. You are tested through hands-on tasks: creating PersistentVolumes and PersistentVolumeClaims, defining StorageClasses with access modes and reclaim policies, attaching volumes to pods, and diagnosing Pending or mount-failure states with kubectl describe and events.
Focused practice
Practice Storage questions
Scored sessions drawing only from this domain — pick a length below.
Start 20-question practice test →What this domain covers
What to know about Storage
Be able to create PVs, PVCs, and StorageClasses, bind them correctly, and mount them in pods. The critical skill is diagnosing why a PVC stays Pending or a volume fails to mount by reading kubectl describe, events, and matching capacity, access modes, and storageClassName.
Creating and binding PersistentVolumeClaims to PersistentVolumes with correct capacity, access modes, and storageClassName
Configuring StorageClasses for dynamic provisioning, reclaimPolicy, volumeBindingMode, and CSI provisioner references
Mounting PVC-backed volumes into pods and troubleshooting MountVolume.SetUp failed or Pending PVC errors
Choosing StatefulSet volumeClaimTemplates for per-pod dedicated storage that scales dynamically
Watch out for
Common Storage exam traps
- ▸Assuming a Pending PVC is always a provisioning failure; often no matching PV exists, storageClassName is wrong, or capacity/access modes do not match.
- ▸Forgetting that a PVC with no storageClassName may be left unbound when no default StorageClass exists or when the field is explicitly empty.
- ▸Editing a bound PVC's capacity or access modes directly instead of resizing through the StorageClass or recreating the claim.
Question index
All Storage questions (84)
Click any question to see the full explanation, or start a practice session above.
Which of the following is a valid command to create a PersistentVolume named 'pv-demo' using a YAML manifest file named 'pv.yaml'?
Easy2A DevOps team needs to deploy a stateful application that requires persistent storage with ReadWriteMany access mode across multiple pods running on different nodes. Which Kubernetes resource should they use to provision the storage?
Medium3Which TWO of the following are required for dynamic provisioning of PersistentVolumes using a StorageClass?
Medium4Which of the following volume types is designed to store sensitive information such as passwords or tokens?
Easy5An administrator needs to expand an existing PersistentVolumeClaim. Which TWO conditions must be met?
Hard6An administrator needs to create a PersistentVolume with 10Gi capacity, ReadWriteOnce access mode, and a reclaim policy of Retain. Which YAML snippet correctly defines this PV?
Easy7Which CSI driver feature must be supported by the driver to allow expanding a PVC while the pod using it is still running?
Hard8Which TWO of the following statements about StorageClass are correct? (Select two.)
Medium9A new StorageClass 'fast' is created with volumeBindingMode: WaitForFirstConsumer. A PVC using this StorageClass is created but no pod consumes it. What is the state of the PVC immediately after creation?
Medium10A StatefulSet named 'web' uses volumeClaimTemplates to create a PVC named 'data' with storage class 'ssd'. The StatefulSet has 3 replicas. After scaling down to 2 replicas, what happens to the PVC of the third pod (web-2)?
Hard11You create a StorageClass with volumeBindingMode: WaitForFirstConsumer. A PVC using this StorageClass is created but remains in 'Pending' state. The PVC expects a node with label 'disktype=ssd'. A suitable node exists. What is the MOST likely reason the PVC is still Pending?
Hard12Which TWO of the following are valid reclaim policies for a PersistentVolume? (Select TWO)
Medium13A developer creates a YAML manifest for a pod that uses a PersistentVolumeClaim. The PVC requests 5Gi of storage but the only available PV has 10Gi. What will happen when the pod is created?
Medium14An administrator runs 'kubectl get pvc' and sees a PVC with status 'Lost'. What does this status indicate?
Medium15A cluster administrator creates a PersistentVolume with the following YAML: apiVersion: v1 kind: PersistentVolume metadata: name: pv-example spec: capacity: storage: 1Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain hostPath: path: /data/pv A user creates a PersistentVolumeClaim requesting 500Mi with access mode ReadWriteOnce and no storage class. The PVC remains in Pending state. What is the most likely cause?
Medium16An administrator applies the following YAML: --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: my-pvc spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi storageClassName: "" --- What does setting storageClassName to an empty string achieve?
Medium17A cluster administrator needs to provide storage to a pod that must read and write files, but the data does not need to persist beyond the pod's lifecycle. Which volume type should be used?
Hard18Which TWO statements about emptyDir volumes are correct?
Medium19A Pod is configured with a volume that uses a ConfigMap. The ConfigMap is updated after the Pod is running. How can the Pod access the updated data without restarting?
Medium20Which TWO of the following are valid reclaim policies for a PersistentVolume?
Medium21A StatefulSet named 'web' uses volumeClaimTemplates to dynamically provision PersistentVolumeClaims for each replica. The cluster runs on AWS with the EBS CSI driver. How many PersistentVolumeClaims will be created if the StatefulSet has 3 replicas and the volumeClaimTemplates specify a single template?
Medium22Which TWO statements about PersistentVolume (PV) reclaim policies are correct?
Medium23What is the default reclaim policy for a PersistentVolume?
Easy24An administrator creates a PersistentVolume named 'pv-nfs' with a reclaim policy of 'Retain'. After a user deletes the PVC bound to this PV, what state does the PV enter?
Medium25A PersistentVolume is created with the following spec: persistentVolumeReclaimPolicy: Retain claimRef: namespace: default name: my-pvc After the PVC 'my-pvc' is deleted, what happens to the PV?
Hard26A pod is configured to use a PersistentVolumeClaim (PVC). The PVC is bound to a PersistentVolume (PV) that uses a cloud disk. The pod fails to start with the error 'MountVolume.SetUp failed for volume ... mount failed: exit status 32'. What is the most likely cause?
Easy27An administrator needs to expand a PersistentVolumeClaim (PVC) that is currently bound to a PersistentVolume (PV). The PV is provisioned by a storage class that supports volume expansion. What must the administrator do to increase the PVC's storage size?
Medium28An application requires a persistent volume that can be shared across multiple Pods running on different nodes, with read-write access from all Pods simultaneously. Which access mode should be specified in the PersistentVolumeClaim?
Medium29A user creates a PersistentVolumeClaim with a storage class 'ssd' that does not exist in the cluster. What will happen when the PVC is created?
Medium30An administrator creates a PersistentVolume with the following YAML: ```yaml apiVersion: v1 kind: PersistentVolume metadata: name: pv-example spec: capacity: storage: 5Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain hostPath: path: /mnt/data ``` Which of the following is true about this PersistentVolume?
Easy31A StorageClass named 'fast-ssd' uses the provisioner 'kubernetes.io/gce-pd' and has volumeBindingMode: WaitForFirstConsumer. A PVC 'my-pvc' requests 100Gi storage from this StorageClass. A pod using the PVC is scheduled to a node in zone 'us-central1-a'. When is the PV provisioned?
Medium32A pod needs to share data between two containers during their lifecycle, but the data does not need to persist after the pod is deleted. Which volume type is most appropriate?
Medium33Which of the following is a required field when defining a PersistentVolume?
Medium34You have a PVC that is bound to a PV with a filesystem volume mode. You want to use the volume as a block device in a pod. What should you do?
Hard35Which TWO of the following are valid access modes for a PersistentVolume in Kubernetes? (Select two.)
Medium36Which of the following volume types provides ephemeral storage that shares the pod's lifecycle and is initially empty?
Medium37A team is designing a storage solution for a Cassandra cluster on Kubernetes. Each pod must have its own dedicated storage, and the cluster must be able to scale up and down dynamically. Which Kubernetes resource should be used to manage the storage?
Medium38You are a cluster administrator managing a production Kubernetes cluster that hosts a stateful application using StatefulSets with PersistentVolumeClaims (PVCs) backed by a cloud provider's persistent disk. A developer reports that a new pod in the StatefulSet is stuck in 'Pending' state. You describe the StatefulSet and see that it has 3 replicas. Two pods are Running, but the third pod (pod-2) is Pending. You check the PVC for pod-2 and see it is 'Pending'. The StorageClass uses 'WaitForFirstConsumer' volume binding mode. The node where pod-2 should run has sufficient resources. Other PVCs in the same namespace bound successfully. What is the most likely cause of the pending PVC and pod?
Easy39Which reclaim policy will cause the underlying storage to be deleted when the associated PersistentVolume is released from a PersistentVolumeClaim?
Easy40Which of the following commands will list all PersistentVolumeClaims in a cluster?
Easy41Which THREE of the following are true about expanding a PersistentVolumeClaim?
Hard42Which access mode allows multiple pods running on different nodes to read from and write to a PersistentVolume at the same time?
Easy43A cluster administrator wants to expand an existing PersistentVolumeClaim (PVC) that is bound to a PersistentVolume (PV) with reclaim policy Delete and storage class 'fast'. The PV was dynamically provisioned. Which condition is required for the PVC expansion to succeed?
Medium44A pod uses a PVC with access mode RWO. The pod is scheduled on node A. You want to schedule another pod on node B that uses the same PVC. What will happen?
Medium45Which THREE statements about PersistentVolumeClaims (PVCs) are correct?
Medium46A DevOps team needs to provide persistent storage to a set of pods that all require read-write access to the same data simultaneously. Which volume type should they use?
Medium47A cluster has a CSI driver installed. A pod using a CSI volume is in CrashLoopBackOff. 'kubectl describe pod' shows: 'failed to mount volume: rpc error: code = DeadlineExceeded desc = context deadline exceeded'. What is the MOST likely cause?
Hard48A pod is unable to start because the PersistentVolumeClaim it references is still in 'Pending' state. What is the most likely cause?
Easy49Which access mode allows multiple pods to read and write to a PersistentVolume simultaneously when all pods are on the same node?
Easy50Which volume type in Kubernetes allows a Pod to share data between its containers, with the data being deleted when the Pod is removed?
Easy51A pod is using a PersistentVolumeClaim (PVC) named 'mypvc' which is bound to a PersistentVolume (PV) with reclaim policy 'Retain'. The pod is deleted and then the PVC is deleted. What happens to the PV?
Medium52A cluster has a PersistentVolumeClaim (PVC) named 'data-claim' bound to a PersistentVolume (PV) with reclaim policy 'Retain'. The PVC is deleted. The PV now shows status 'Released'. What must be done so that the PV can be reused by a new PVC?
Hard53Which resource type is used to define a template for dynamically provisioning PersistentVolumes?
Easy54A CSI driver is installed in the cluster, but a PersistentVolumeClaim using a StorageClass that references this driver remains Pending. The administrator checks the logs of the CSI controller pod and sees no errors. What is a possible cause?
Hard55Which access mode allows a PersistentVolume to be mounted as read-write by multiple pods across different nodes?
Easy56A pod uses a PersistentVolumeClaim named 'claim-log'. The PVC is pending. You run 'kubectl describe pvc claim-log' and see the event: 'waiting for a volume to be created, either by external provisioner or manually'. The StorageClass 'standard' has provisioner: 'kubernetes.io/no-provisioner'. What is the most likely cause?
Medium57A cluster administrator needs to create a PersistentVolume that can be mounted as a block device (not a filesystem) by a Pod. Which field in the PersistentVolume spec must be set to enable this?
Medium58A cluster uses a CSI driver for dynamic provisioning. An administrator creates a StorageClass with 'volumeBindingMode: WaitForFirstConsumer' and a PVC. The pod using the PVC is scheduled to a node. However, the PV is never provisioned. What is the most likely cause?
Hard59Which THREE of the following are characteristics of a StatefulSet's volumeClaimTemplates?
Hard60Which of the following is a valid CSI (Container Storage Interface) driver operation in Kubernetes?
Easy61A developer accidentally runs 'kubectl delete pvc data-claim'. What is the immediate effect on the PersistentVolume pv-data?
Easy62Which THREE statements about StorageClasses are true?
Medium63A cluster administrator is configuring a Pod to use a PersistentVolumeClaim (PVC) that is dynamically provisioned using a StorageClass with volumeBindingMode: WaitForFirstConsumer. The PVC is created before the Pod. When the Pod is created, which node will the PV be provisioned on?
Hard64A cluster administrator manages a PersistentVolume with reclaim policy Retain that was bound to a PersistentVolumeClaim. The application team deletes the PVC, but the administrator later needs to reuse the same underlying storage for a new PVC in the same namespace. After the PVC deletion, the PV shows status Released. Which sequence of actions must the administrator perform to make the PV bindable again?
Hard65An administrator needs to configure dynamic provisioning for persistent volumes using an external CSI driver. Which of the following is the correct approach?
Hard66Which TWO of the following are valid reclaim policies for PersistentVolumes?
Medium67You need to allow a pod to use a specific device from the host node (e.g., /dev/sdb) as a raw block device. Which volume mode should you set in the PVC?
Hard68A cluster administrator creates a StorageClass with the following YAML: apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: fast provisioner: kubernetes.io/aws-ebs parameters: type: gp2 reclaimPolicy: Delete volumeBindingMode: Immediate A developer creates a PVC using this StorageClass. The PVC is created and remains in Pending state. What is the most likely cause?
Medium69You want to dynamically provision storage for a PVC using a StorageClass named 'fast-ssd'. Which field in the PVC YAML specifies the StorageClass?
Medium70A developer wants to mount a ConfigMap as a volume in a pod. However, the pod should only see specific keys from the ConfigMap, not all keys. What is the best approach?
Easy71Which TWO of the following are required fields in a PersistentVolumeClaim spec? (Select TWO)
Medium72A cluster administrator wants to provide storage for an application that requires reading and writing by multiple pods simultaneously. The storage backend is an NFS server that supports multiple writers. Which access mode should be specified in the PersistentVolume?
Medium73An administrator is preparing a StorageClass for a stateful application. The cluster's default StorageClass uses immediate binding, which causes PersistentVolumes to be provisioned before the consuming Pod is scheduled. The administrator wants volumes to be provisioned only after the scheduler has selected a node, so that topology-aware constraints (such as zone-local disks) can be honored. Which change to the StorageClass should the administrator make?
Medium74Refer to the exhibit. A pod is defined with an emptyDir volume using memory medium. The pod is scheduled on a node with 4 GB of RAM. The container writes 3 GB of data to /cache. What will happen?
Hard75A developer creates a PVC with storageClassName: "" (empty string). What does this mean?
Medium76A DevOps team is deploying a stateful application that requires persistent storage with ReadWriteMany access mode across multiple pods running on different nodes in a Kubernetes cluster. Which storage solution should they choose to meet this requirement?
Medium77Which access mode allows multiple pods on different nodes to mount a PersistentVolume as read-write?
Easy78Which THREE of the following are correct about using a hostPath volume in Kubernetes? (Select THREE)
Hard79Which volume type is typically used to share configuration data with a pod as files, where the data is stored in the cluster as a resource?
Easy80A StatefulSet named 'web' uses volumeClaimTemplates to create PVCs for each replica. You scale the StatefulSet from 3 to 5 replicas. What happens to the PVCs?
Medium81What does the 'volumeMode: Block' setting in a PersistentVolume spec indicate?
Easy82A PersistentVolumeClaim named 'my-pvc' is created and remains in 'Pending' state. Which command should the administrator use to investigate the reason?
Easy83Which TWO of the following are valid volumeBindingMode values for a StorageClass?
Medium84Which THREE of the following are true about the interaction between PersistentVolumeClaims and pods?
HardOther domains
All CKA exam domains
Frequently asked questions
- What does the Storage domain cover on the CKA exam?
- Be able to create PVs, PVCs, and StorageClasses, bind them correctly, and mount them in pods. The critical skill is diagnosing why a PVC stays Pending or a volume fails to mount by reading kubectl describe, events, and matching capacity, access modes, and storageClassName.
- How many questions are in this domain?
- This page lists all 84 Storage questions in the CKA question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
- What is the best way to practise this domain?
- Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
- Can I practise only Storage questions?
- Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.