Bird
0
0

To ensure pods in a StatefulSet start sequentially and maintain persistent storage for a distributed database, which configuration is essential?

hard📝 Workflow Q8 of 15
Kubernetes - Persistent Storage
To ensure pods in a StatefulSet start sequentially and maintain persistent storage for a distributed database, which configuration is essential?
AUse <code>RollingUpdate</code> strategy with <code>podManagementPolicy</code> set to <code>Parallel</code>
BSet <code>podManagementPolicy</code> to <code>OrderedReady</code> and define <code>volumeClaimTemplates</code>
CDisable <code>volumeClaimTemplates</code> and use emptyDir volumes
DSet replicas to 1 and use a Deployment instead
Step-by-Step Solution
Solution:
  1. Step 1: Understand podManagementPolicy

    OrderedReady ensures pods start and terminate sequentially.
  2. Step 2: Persistent storage

    volumeClaimTemplates provide stable storage per pod.
  3. Step 3: Exclude incorrect options

    Parallel policy does not guarantee order; emptyDir is ephemeral; replicas=1 limits scale.
  4. Final Answer:

    Set podManagementPolicy to OrderedReady and define volumeClaimTemplates -> Option B
  5. Quick Check:

    OrderedReady + volumeClaimTemplates = ordered startup + persistent storage [OK]
Quick Trick: OrderedReady + volumeClaimTemplates = ordered startup + storage [OK]
Common Mistakes:
  • Using Parallel podManagementPolicy for ordered startup
  • Using ephemeral volumes for stateful apps
  • Confusing StatefulSet with Deployment for multiple replicas

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes