Bird
0
0

Which YAML field correctly sets the reclaim policy of a PersistentVolume to Retain?

easy📝 Configuration Q3 of 15
Kubernetes - Persistent Storage
Which YAML field correctly sets the reclaim policy of a PersistentVolume to Retain?
Areclaim_policy: Retain
BpersistentVolumeReclaimPolicy: Retain
CpersistentVolumeReclaimPolicy: retain
DpersistentVolumeReclaimPolicy: DELETE
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct YAML field name and value

    The correct field is persistentVolumeReclaimPolicy with capitalized value Retain.
  2. Step 2: Check for syntax and case sensitivity

    YAML keys are case-sensitive; value must be exactly Retain.
  3. Final Answer:

    persistentVolumeReclaimPolicy: Retain -> Option B
  4. Quick Check:

    Correct field and value = persistentVolumeReclaimPolicy: Retain [OK]
Quick Trick: Use exact field name 'persistentVolumeReclaimPolicy' with capitalized value [OK]
Common Mistakes:
  • Using underscore instead of camelCase
  • Using lowercase value 'retain'
  • Using incorrect value like 'DELETE'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes