Choose the best description of what a StorageClass does in Kubernetes dynamic provisioning.
Think about what StorageClass controls related to storage.
A StorageClass tells Kubernetes how to create storage volumes dynamically with certain settings like type and performance.
What output will you see after running kubectl get storageclass if there is one default StorageClass named fast-storage?
kubectl get storageclassLook for the default StorageClass and its typical fields.
The output lists StorageClasses with their provisioner, reclaim policy, binding mode, expansion allowance, age, and default marker.
Which option correctly identifies the error in this StorageClass YAML snippet?
apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: fast-storage provisioner: kubernetes.io/aws-ebs parameters: type: gp2 reclaimPolicy: Delete volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: yes
Check the data types for boolean fields in YAML.
In YAML, boolean fields like allowVolumeExpansion must be true or false without quotes. 'yes' as a string is invalid.
A PersistentVolumeClaim (PVC) stays in Pending state even though a StorageClass is specified. What is the most likely cause?
Think about what happens when Kubernetes tries to create a volume dynamically.
If the provisioner for the StorageClass is missing, Kubernetes cannot create the volume, so the PVC stays Pending.
Put these steps in the correct order to dynamically provision storage and use it in a pod.
Think about what must exist before requesting storage and before using it in a pod.
First create StorageClass, then PVC referencing it, then Kubernetes provisions PV, then pod uses PVC.