Study. uk . com
  1. Home
  2. All questions
  3. Question 641

CKA study material · question 641 of 1000

A StatefulSet with three replicas and a volumeClaimTemplate is deleted, with no retention policy configured. What happens to its PersistentVolumeClaims?

  1. They are deleted along with the StatefulSet
  2. They remain, because data safety is preferred over automatic cleanup
  3. They are deleted only if the StorageClass reclaim policy is Delete
  4. They are converted to unbound claims and reused by the next StatefulSet
Show the answer

Answer: B. They remain, because data safety is preferred over automatic cleanup

Deleting or scaling down a StatefulSet does not remove its volumes; keeping the data is treated as more valuable than tidying up, which is why persistentVolumeClaimRetentionPolicy exists to change it.

Source: StatefulSets (Kubernetes) — Limitations

Challenge yourself on this topic → Study as cards