- Home
- All questions
- Question 645
CKA study material · question 645 of 1000
A StatefulSet should keep its volumes when scaled down but discard them when the whole set is deleted. Which two settings express that? Choose two.
Show the answer
Answer: A. whenScaled: Retain
C. whenDeleted: Delete
persistentVolumeClaimRetentionPolicy carries independent whenScaled and whenDeleted settings, each Delete or Retain, so the two lifecycle events can be treated differently.
Source: StatefulSets (Kubernetes) — PersistentVolumeClaim retention