Bird
0
0

You want to deploy a StatefulSet with 3 replicas but require pods to start in parallel instead of sequentially. Which field should you modify to achieve this?

hard📝 Best Practice Q15 of 15
Kubernetes - Persistent Storage
You want to deploy a StatefulSet with 3 replicas but require pods to start in parallel instead of sequentially. Which field should you modify to achieve this?
ASet <code>serviceName</code> to empty string.
BSet <code>replicaCount: 3</code> in the pod template.
CSet <code>podManagementPolicy: Parallel</code> in the StatefulSet spec.
DSet <code>updateStrategy: RollingUpdate</code> in the StatefulSet spec.
Step-by-Step Solution
Solution:
  1. Step 1: Understand podManagementPolicy in StatefulSets

    By default, StatefulSets create pods sequentially. Setting podManagementPolicy to Parallel allows parallel pod creation.
  2. Step 2: Identify correct field to change

    Changing podManagementPolicy to Parallel in the spec enables parallel pod startup.
  3. Final Answer:

    Set podManagementPolicy: Parallel in the StatefulSet spec. -> Option C
  4. Quick Check:

    podManagementPolicy controls pod start order [OK]
Quick Trick: Use podManagementPolicy: Parallel to start pods together [OK]
Common Mistakes:
  • Changing replicaCount instead of podManagementPolicy
  • Confusing updateStrategy with pod start order
  • Removing serviceName breaks network identity

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes