Study. uk . com
  1. Home
  2. All questions
  3. 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.

  1. whenScaled: Retain
  2. whenScaled: Delete
  3. whenDeleted: Delete
  4. whenDeleted: Retain
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

Challenge yourself on this topic → Study as cards