Bird
0
0

You want to rollback a deployment service but only if the current rollout is failing. Which command helps you check the rollout status before deciding to rollback?

hard📝 Application Q9 of 15
Kubernetes - ReplicaSets and Deployments
You want to rollback a deployment service but only if the current rollout is failing. Which command helps you check the rollout status before deciding to rollback?
Akubectl logs deployment/service
Bkubectl get pods -l app=service
Ckubectl describe deployment service
Dkubectl rollout status deployment/service
Step-by-Step Solution
Solution:
  1. Step 1: Identify command to check rollout status

    kubectl rollout status deployment/service shows if the rollout is successful or failing.
  2. Step 2: Understand other commands

    Other commands show pods, deployment details, or logs but not rollout status directly.
  3. Final Answer:

    kubectl rollout status deployment/service -> Option D
  4. Quick Check:

    Check rollout status before rollback with rollout status [OK]
Quick Trick: Check rollout status before rollback with rollout status [OK]
Common Mistakes:
  • Using pod or log commands instead of rollout status
  • Assuming describe shows rollout success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes