Bird
0
0

Which of the following is the correct syntax to trigger a rollback in a Kubernetes deployment using kubectl?

easy📝 Conceptual Q3 of 15
Microservices - CI/CD for Microservices
Which of the following is the correct syntax to trigger a rollback in a Kubernetes deployment using kubectl?
Akubectl rollout undo deployment/my-app
Bkubectl rollback deployment my-app
Ckubectl revert deployment my-app
Dkubectl deploy rollback my-app
Step-by-Step Solution
Solution:
  1. Step 1: Recall kubectl rollback command

    The correct command to rollback a deployment is 'kubectl rollout undo deployment/'.
  2. Step 2: Identify correct syntax

    Only kubectl rollout undo deployment/my-app matches the exact kubectl syntax for rollback.
  3. Final Answer:

    kubectl rollout undo deployment/my-app -> Option A
  4. Quick Check:

    Kubectl rollback syntax = rollout undo [OK]
Quick Trick: Use 'kubectl rollout undo' to rollback deployments [OK]
Common Mistakes:
  • Using 'rollback' instead of 'rollout undo'
  • Confusing 'revert' with rollback command
  • Incorrect command order or missing slashes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes