Study. uk . com
  1. Home
  2. All questions
  3. Question 812

CKA study material · question 812 of 1000

An administrator pre-creates a PersistentVolume and writes a claim that omits storageClassName, expecting it to bind. Instead a new volume is provisioned. Why?

  1. Omitting the field invokes the default StorageClass
  2. The claim's capacity did not match the volume exactly
  3. Pre-created volumes must be labelled for manual binding
  4. The claim needed a volumeName rather than a class
Show the answer

Answer: A. Omitting the field invokes the default StorageClass

Leaving storageClassName out is not the same as asking for no class: the default StorageClass is applied. Binding a pre-provisioned volume means setting the field to the empty string.

Source: Persistent Volumes (Kubernetes) — PersistentVolumeClaims › Class

Challenge yourself on this topic → Study as cards