Bird
0
0

Given this StorageClass YAML:

medium📝 Command Output Q4 of 15
Kubernetes - Persistent Storage
Given this StorageClass YAML:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: slow-storage
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
volumeBindingMode: Immediate

What will be the reclaim policy of volumes created by this StorageClass?
ADelete
BRecycle
CNone
DRetain
Step-by-Step Solution
Solution:
  1. Step 1: Identify reclaimPolicy field

    The YAML sets reclaimPolicy to 'Retain'.
  2. Step 2: Understand reclaimPolicy effect

    Volumes with 'Retain' policy are kept after PVC deletion, not deleted automatically.
  3. Final Answer:

    Retain -> Option D
  4. Quick Check:

    reclaimPolicy = Retain [OK]
Quick Trick: reclaimPolicy controls volume deletion after PVC removal [OK]
Common Mistakes:
  • Assuming default is Delete
  • Confusing Recycle with Retain
  • Ignoring reclaimPolicy field

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes