Kubernetes and Cloud Native Associate (KCNA) free question 7 / 10 · Domain 2: Container Orchestration
A PersistentVolume with reclaimPolicy Retain was used by a PVC, and you deleted the PVC. You then created a new PVC with the same requirements, but it does not bind to this PV. Which explanation matches the Kubernetes documentation?
- With Retain the PV is deleted together with the PVC, so no PV is left to bind to
- With Retain the contents are erased and the PV returns to Available, so wait for that to finish
- A record of the Pod that used the PV remains, and in-use protection is holding up the binding
- The PV is Released and still holds the earlier data, so it needs manual reclamation
Show the answer and explanation
Answer: D
Why this is correct
The Persistent Volumes page describes the Retain reclaim policy as allowing manual reclamation of the resource. When the PersistentVolumeClaim is deleted, the PersistentVolume still exists and the volume is considered released. But it is not yet available for another claim because the previous claimant's data remains on the volume, so a new PVC does not bind to it. An administrator can reclaim the volume manually by deleting the PersistentVolume, cleaning up the data on the associated storage asset, and then deleting that asset, or by reusing it by creating a new PersistentVolume for it. Delete and the old Recycle policy behave differently, and the protection of storage objects in use does not play a role once the claim is gone.
Why the other options are wrong
"With Retain the PV is deleted together with the PVC, so no PV is left to bind to" … Deleting the PV object together with the PVC is the Delete policy. With Retain, the page says the PersistentVolume still exists after the claim is deleted.
"With Retain the contents are erased and the PV returns to Available, so wait for that to finish" … Erasing the contents and making the volume available again is not what Retain does; it allows manual reclamation. A basic scrub was the job of the deprecated Recycle policy.
"A record of the Pod that used the PV remains, and in-use protection is holding up the binding" … Storage Object in Use Protection keeps a PVC in active use by a Pod, and a PV bound to a PVC, from being removed. It is not what keeps a Released PV from binding again.
Released is not Available
Retain keeps the PV and its data after the claim is deleted. An administrator must clean it up before it can serve a new claim.