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

CKA study material · question 638 of 1000

A StatefulSet named db has replicas scaled from 3 to 1. Which two statements describe what happens? Choose two.

  1. db-2 is terminated before db-1
  2. db-0 is terminated first, since it is the oldest
  3. db-1 is not terminated until db-2 has fully shut down
  4. The two Pods are terminated simultaneously to speed up the scale-down
Show the answer

Answer: A. db-2 is terminated before db-1
C. db-1 is not terminated until db-2 has fully shut down

A StatefulSet removes Pods in reverse ordinal order, and a Pod is not terminated until all of its successors have completely shut down.

Source: StatefulSets (Kubernetes) — Deployment and Scaling Guarantees

Challenge yourself on this topic → Study as cards