KCNA · Question #47
How does dynamic storage provisioning work?
The correct answer is A. A user requests dynamically provisioned storage by including an existing storage class in their. Dynamic storage provisioning in Kubernetes occurs when a user requests storage via a PersistentVolumeClaim (PVC) that references an existing StorageClass, which then automatically provisions a PersistentVolume (PV).
Question
How does dynamic storage provisioning work?
Options
- AA user requests dynamically provisioned storage by including an existing storage class in their
- BAn administrator creates a storage class and includes it in their pod YAML definition file without
- CA pod requests dynamically provisioned storage by including a storage class and the pod name in
- DAn administrator creates a PersistentVolume and includes the name of the PersistentVolume in
How the community answered
(24 responses)- A88% (21)
- C4% (1)
- D8% (2)
Why each option
Dynamic storage provisioning in Kubernetes occurs when a user requests storage via a PersistentVolumeClaim (PVC) that references an existing StorageClass, which then automatically provisions a PersistentVolume (PV).
When a user creates a PersistentVolumeClaim (PVC) and specifies an existing `StorageClass` in its definition, Kubernetes' dynamic provisioner, driven by the `StorageClass`, automatically provisions a new PersistentVolume (PV) that satisfies the PVC's requirements, eliminating the need for manual PV creation by an administrator.
An administrator creates a `StorageClass`, but it is the *user* who references it in a PVC, not an administrator including it directly in a pod YAML definition without a PVC.
A pod requests dynamically provisioned storage indirectly through a PersistentVolumeClaim (PVC), not by directly including a StorageClass and the pod name in its definition.
An administrator creating a PersistentVolume and then including the name of that specific PersistentVolume in a PersistentVolumeClaim describes *static* provisioning, not dynamic provisioning.
Concept tested: Kubernetes dynamic storage provisioning
Source: https://kubernetes.io/docs/concepts/storage/dynamic-provisioning/
Topics
Community Discussion
No community discussion yet for this question.