Bird
0
0

Which field in a PersistentVolume YAML defines the storage capacity?

easy📝 Conceptual Q2 of 15
Kubernetes - Persistent Storage
Which field in a PersistentVolume YAML defines the storage capacity?
Aspec.capacity.storage
Bmetadata.name
Cspec.accessModes
Dspec.persistentVolumeReclaimPolicy
Step-by-Step Solution
Solution:
  1. Step 1: Identify capacity field in PV spec

    The storage size is specified under spec.capacity.storage in the YAML.
  2. Step 2: Confirm other fields' purposes

    metadata.name is the PV name, accessModes define access type, reclaimPolicy defines cleanup behavior.
  3. Final Answer:

    spec.capacity.storage -> Option A
  4. Quick Check:

    Storage size = spec.capacity.storage [OK]
Quick Trick: Storage size is under spec.capacity.storage [OK]
Common Mistakes:
  • Using metadata.name for capacity
  • Confusing accessModes with capacity
  • Mistaking reclaimPolicy for size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes