0
0
Kubernetesdevops~20 mins

Reclaim policies (Retain, Delete) in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Reclaim Policy Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Reclaim Policy Effects on Persistent Volumes

In Kubernetes, what happens to a Persistent Volume (PV) when its Persistent Volume Claim (PVC) is deleted and the PV has a Delete reclaim policy?

AThe PV is deleted along with its underlying storage resource.
BThe PV remains available but is not bound to any PVC.
CThe PV is retained and requires manual cleanup of storage.
DThe PVC deletion is blocked until the PV is manually deleted.
Attempts:
2 left
💡 Hint

Think about what Delete reclaim policy means for storage lifecycle.

🧠 Conceptual
intermediate
2:00remaining
Behavior of Retain Reclaim Policy on Persistent Volumes

What is the behavior of a Persistent Volume (PV) with a Retain reclaim policy after its Persistent Volume Claim (PVC) is deleted?

AThe PVC deletion triggers automatic data backup before PV deletion.
BThe PV and its data are deleted automatically.
CThe PV is immediately available for new PVC binding.
DThe PV remains in Released state and data must be manually cleaned.
Attempts:
2 left
💡 Hint

Consider what manual steps are needed when reclaim policy is Retain.

💻 Command Output
advanced
2:00remaining
Output of PV Status After PVC Deletion with Retain Policy

Given a Persistent Volume with reclaim policy set to Retain, what is the status of the PV after its bound Persistent Volume Claim is deleted?

Kubernetes
kubectl get pv my-pv
ASTATUS: Released
BSTATUS: Available
CSTATUS: Bound
DSTATUS: Terminating
Attempts:
2 left
💡 Hint

Check the PV lifecycle states after PVC deletion with Retain policy.

🔀 Workflow
advanced
3:00remaining
Steps to Reuse a PV with Retain Reclaim Policy

Which sequence correctly describes the steps to reuse a Persistent Volume (PV) that has a Retain reclaim policy after its Persistent Volume Claim (PVC) was deleted?

A3,1,2,4
B1,2,3,4
C1,3,2,4
D2,1,3,4
Attempts:
2 left
💡 Hint

Think about cleaning data before making PV available again.

Troubleshoot
expert
3:00remaining
Troubleshooting PV Not Deleting After PVC Removal

A Persistent Volume (PV) with reclaim policy set to Delete is not deleted after its Persistent Volume Claim (PVC) was removed. What is the most likely cause?

AThe PV status is still Bound to the deleted PVC.
BThe PVC was deleted with --cascade=false flag.
CThe underlying storage resource has a finalizer blocking deletion.
DThe Kubernetes API server is down, preventing PV deletion.
Attempts:
2 left
💡 Hint

Consider what might prevent Kubernetes from deleting storage resources.