Certified Kubernetes Application Developer (CKAD) Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 50

When associating a pod with a VolumeClaimTemplate, what property must be specified in the object's spec?

volumeTemplate property

persistentVolume property

storageClass property

When associating a pod with a VolumeClaimTemplate, it's essential to specify the storageClass property in the object's specification. The storageClass property determines the type of storage to provision for persistent volumes dynamically. This is crucial for Kubernetes to understand which storage backend to use when creating the persistent volume. The storage class provides a way to define the characteristics of a volume, such as its performance, availability, and other attributes. If this property is not defined, the system may default to a predefined class or may not be able to provision the volume at all, leading to potential issues in accessing storage for the pod. The other options, while they may seem relevant, do not accurately capture the necessary specification needed for associating a pod with a VolumeClaimTemplate. For example, the volumeTemplate property pertains more to defining a specification for a volume itself rather than outlining how to connect a pod to a claim. The persistentVolume property is not directly related to how claims are processed in the context of pods, as it deals with existing volumes rather than the claim process. Lastly, while the claimName may be used to refer to an existing claim, the storageClass is foundational when provisioning new resources.

claimName property

Next

Report this question