Bird
0
0

Which of the following is the correct YAML snippet to set a PersistentVolume reclaim policy to Delete?

easy📝 Configuration Q12 of 15
Kubernetes - Persistent Storage
Which of the following is the correct YAML snippet to set a PersistentVolume reclaim policy to Delete?
ApersistentVolumeReclaimPolicy: Retain
BpersistentVolumeReclaimPolicy: Delete
Cpersistent_volume_reclaim_policy: Delete
DpersistentVolumeReclaimPolicy: delete
Step-by-Step Solution
Solution:
  1. Step 1: Check correct YAML key and value

    The key is persistentVolumeReclaimPolicy, and value is case-sensitive.
  2. Step 2: Identify correct value for Delete

    The value must be exactly Delete with capital D.
  3. Final Answer:

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

    Correct key and capitalized value = A [OK]
Quick Trick: Use exact key 'persistentVolumeReclaimPolicy' and capitalized 'Delete' [OK]
Common Mistakes:
  • Using lowercase 'delete' instead of 'Delete'
  • Using underscore instead of camelCase key
  • Mixing Retain and Delete values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes