Bird
0
0

Given this PersistentVolume YAML snippet, what is the reclaim policy?

medium📝 Predict Output Q4 of 15
Kubernetes - Persistent Storage
Given this PersistentVolume YAML snippet, what is the reclaim policy?
apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-example
spec:
  capacity:
    storage: 5Gi
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: Delete
  hostPath:
    path: /mnt/data
ANone
BRecycle
CRetain
DDelete
Step-by-Step Solution
Solution:
  1. Step 1: Locate reclaim policy field in YAML

    The field persistentVolumeReclaimPolicy is set to Delete.
  2. Step 2: Understand reclaim policy meaning

    Delete means the volume is deleted after release; other options are Retain (keep data) and Recycle (basic cleanup).
  3. Final Answer:

    Delete -> Option D
  4. Quick Check:

    Reclaim policy = Delete [OK]
Quick Trick: Check persistentVolumeReclaimPolicy field for reclaim behavior [OK]
Common Mistakes:
  • Assuming default is Retain without checking
  • Confusing Recycle with Delete
  • Ignoring the reclaim policy field

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes