Challenge - 5 Problems
Rollback Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Rollback Deployment to Previous Revision
You have a Kubernetes deployment named
webapp. You run the command to rollback to the previous revision. What is the expected output?Kubernetes
kubectl rollout undo deployment/webappAttempts:
2 left
💡 Hint
Think about what the rollback command does to the deployment state.
✗ Incorrect
The command
kubectl rollout undo deployment/webapp rolls back the deployment to the previous revision and confirms with the message deployment.apps/webapp rolled back.🧠 Conceptual
intermediate2:00remaining
Understanding Rollback Behavior
Which statement correctly describes what happens when you run
kubectl rollout undo deployment/myapp?Attempts:
2 left
💡 Hint
Rollback means going back to a previous working state.
✗ Incorrect
The rollback command reverts the deployment to the last successful rollout revision, restoring the previous pod template and configuration.
❓ Troubleshoot
advanced2:00remaining
Rollback Failure Due to No Previous Revision
You try to rollback a deployment named
api-server but get the error: error: deployment.apps "api-server" has no rollout history. What is the most likely cause?Attempts:
2 left
💡 Hint
Rollback requires a previous revision to revert to.
✗ Incorrect
If the deployment has never been updated, there is no previous revision to rollback to, causing this error.
🔀 Workflow
advanced3:00remaining
Steps to Rollback a Deployment
Arrange the correct sequence of commands to rollback a Kubernetes deployment named
frontend to its previous version and verify the rollback status.Attempts:
2 left
💡 Hint
First rollback, then check status, then inspect details.
✗ Incorrect
The correct order is to rollback first, then check rollout status to confirm success, then get and describe deployment for details.
✅ Best Practice
expert3:00remaining
Best Practice for Safe Rollbacks
Which practice is best to ensure safe and reliable rollbacks of Kubernetes deployments?
Attempts:
2 left
💡 Hint
Safe rollback involves verification and testing before applying changes.
✗ Incorrect
The best practice is to check deployment history and test the previous version in staging before rolling back in production to avoid downtime or errors.