Bird
0
0

You want to rollback your deployment 'backend' to the previous version after a failed update. Which sequence of commands correctly checks the history and rolls back?

hard📝 Workflow Q15 of 15
Kubernetes - ReplicaSets and Deployments
You want to rollback your deployment 'backend' to the previous version after a failed update. Which sequence of commands correctly checks the history and rolls back?
Akubectl rollout history deployment/backend<br>kubectl rollout undo deployment/backend
Bkubectl rollout status deployment/backend<br>kubectl delete deployment/backend
Ckubectl get pods -l app=backend<br>kubectl rollout history deployment/backend
Dkubectl rollout undo deployment/backend<br>kubectl rollout history deployment/backend
Step-by-Step Solution
Solution:
  1. Step 1: Check rollout history

    Use kubectl rollout history deployment/backend to see past versions and confirm rollback target.
  2. Step 2: Rollback to previous version

    Use kubectl rollout undo deployment/backend to revert to the last successful deployment.
  3. Final Answer:

    kubectl rollout history deployment/backend followed by kubectl rollout undo deployment/backend -> Option A
  4. Quick Check:

    History then undo = safe rollback steps [OK]
Quick Trick: Always check history before undoing a rollout [OK]
Common Mistakes:
  • Deleting deployment instead of rolling back
  • Undoing before checking history
  • Confusing status command with rollback

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes