Challenge - 5 Problems
Deployment Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Check the rollout status of a deployment
You run the command
kubectl rollout status deployment/myapp. What output indicates the deployment has successfully rolled out?Attempts:
2 left
💡 Hint
Look for a message confirming success, not errors or partial updates.
✗ Incorrect
The command kubectl rollout status deployment/myapp shows the current rollout status. The message deployment "myapp" successfully rolled out means the deployment finished updating all pods successfully.
🧠 Conceptual
intermediate1:30remaining
Understanding deployment revision history
What does the command
kubectl rollout history deployment/myapp show?Attempts:
2 left
💡 Hint
Think about what 'history' means in this context.
✗ Incorrect
The kubectl rollout history command lists all previous revisions of a deployment, showing when and why changes were made.
❓ Troubleshoot
advanced2:00remaining
Diagnosing a stuck deployment rollout
You notice a deployment rollout is stuck and not progressing. Which command helps you see detailed rollout status including pod conditions?
Attempts:
2 left
💡 Hint
You want detailed info about the deployment and its pods.
✗ Incorrect
kubectl describe deployment myapp shows detailed info including events and pod status that help diagnose rollout issues.
🔀 Workflow
advanced2:00remaining
Rollback a deployment to a previous revision
You want to rollback the deployment
myapp to revision 2. Which command correctly performs this rollback?Attempts:
2 left
💡 Hint
Check the exact syntax for rollback with revision number.
✗ Incorrect
The correct syntax to rollback to a specific revision is kubectl rollout undo deployment/myapp --to-revision=2.
✅ Best Practice
expert2:30remaining
Best practice for monitoring deployment history in production
Which approach is best to keep track of deployment history and changes in a Kubernetes production environment?
Attempts:
2 left
💡 Hint
Think about combining Kubernetes tools with version control for best tracking.
✗ Incorrect
Combining kubectl rollout history with GitOps practices ensures deployment changes are tracked both in Kubernetes and version control, enabling audit and rollback.