KCNA practice question 15 of 25
How does dynamic storage provisioning work?
Full set: 240 questionsDynamic storage provisioning in Kubernetes allows storage volumes to be created on-demand. The process is initiated by a user creating a PersistentVolumeClaim (PVC) object. Within the PVC's specification, the user specifies a storageClassName that corresponds to a pre-configured StorageClass object created by an administrator. The StorageClass defines a provisioner and parameters for creating storage. When the PVC is created, the provisioner automatically creates a corresponding PersistentVolume (PV) and binds it to the PVC, making it available for a Pod to consume.
B. Pods consume storage via a PersistentVolumeClaim, not by directly referencing a StorageClass in their definition.
C. A PersistentVolumeClaim does not include a Pod name; rather, a Pod's definition includes the name of the PVC it wishes to use.
D. This describes static provisioning, where an administrator manually creates a PersistentVolume beforehand, which is then claimed by a PVC.
- Kubernetes Documentation. (n.d.). Dynamic Volume Provisioning. Kubernetes. Retrieved from https://kubernetes.io/docs/concepts/storage/dynamic-provisioning/. The documentation states: "To enable dynamic provisioning, a cluster administrator needs to pre-create one or more StorageClass objects... A user requests dynamically provisioned storage by including a storage class in their PersistentVolumeClaim."
- Kubernetes Documentation. (n.d.). Storage Classes. Kubernetes. Retrieved from https://kubernetes.io/docs/concepts/storage/storage-classes/. Section "The StorageClass Resource" explains that a PVC uses the storageClassName attribute to request a particular class.
Keep practicing
Take the free KCNA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other KCNA practice questions
- Question 1Which of these commands is used to retrieve the documentation and field definitions for a…
- Question 2Kubernetes Secrets are specifically intended to hold confidential dat a. Which API object…
- Question 3What is the practice of bringing financial accountability to the variable spend model of …
- Question 6In Kubernetes, which command is the most efficient way to check the progress of a Deploym…
- Question 7What Kubernetes component handles network communications inside and outside of a cluster,…
- Question 8Kubernetes supports multiple virtual clusters backed by the same physical cluster. These …
