Question 770
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: PersistentVolume pv-ledger contains data that must not be deleted automatically when its claim is released. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
The reclaim policy controls the fate of backing storage after PVC release; Retain requires an explicit cleanup and reuse process. This explains the stated condition. The corresponding action is: Run kubectl patch persistentvolume pv-ledger --type=merge -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' before releasing the claim. The direct acceptance evidence is: Run kubectl get pv pv-ledger -o jsonpath='{.spec.persistentVolumeReclaimPolicy}' and confirm Retain.
Incorrect Answers
This principle describes a separate cause: StorageClasses specify provisioning behavior separately from an individual claim, including binding policy and reclaim defaults. The reported condition is governed by: The reclaim policy controls the fate of backing storage after PVC release; Retain requires an explicit cleanup and reuse process. The two mechanisms should not be conflated.
The offered statement is true for this other mechanism: StatefulSets give stable identities and can generate per-Pod PVCs; a shared Deployment volume would not automatically provide this ownership model. It does not explain the facts described here, which follow from: The reclaim policy controls the fate of backing storage after PVC release; Retain requires an explicit cleanup and reuse process.
This principle describes a separate cause: StorageClass provisioner names must correspond to installed CSI provisioning components; the class object alone cannot create storage. The reported condition is governed by: The reclaim policy controls the fate of backing storage after PVC release; Retain requires an explicit cleanup and reuse process. The two mechanisms should not be conflated.