Bird
0
0

Which YAML snippet correctly sets the update strategy to Recreate in a Deployment?

easy📝 Configuration Q12 of 15
Kubernetes - ReplicaSets and Deployments
Which YAML snippet correctly sets the update strategy to Recreate in a Deployment?
Astrategy:\n type: RollingUpdate
Bstrategy:\n type: Recreate
CupdateStrategy:\n type: Recreate
DdeploymentStrategy:\n type: Recreate
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct field name for update strategy

    The correct field under Deployment spec is strategy with a nested type.
  2. Step 2: Check correct value for Recreate

    The value must be exactly Recreate to set that strategy.
  3. Final Answer:

    strategy:\n type: Recreate -> Option B
  4. Quick Check:

    strategy.type = Recreate [OK]
Quick Trick: Use 'strategy.type: Recreate' exactly in Deployment spec [OK]
Common Mistakes:
  • Using wrong field names like updateStrategy or deploymentStrategy
  • Setting type to RollingUpdate instead of Recreate
  • Incorrect indentation or YAML syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes