How do you rollback a Kubernetes Deployment named 'web-app' to the directly preceding revision?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: kubectl rollout undo deployment/web-app

The command 'kubectl rollout undo deployment/<name>' rolls back a Deployment to the previous revision....

Real Exam ScenarioKubernetes CLI

How do you rollback a Kubernetes Deployment named 'web-app' to the directly preceding revision?

✓ Correct Answer & ExplanationKubernetes CLI

Correct Answer

kubectl rollout undo deployment/web-app

Why This Answer Is Correct

The command 'kubectl rollout undo deployment/<name>' rolls back a Deployment to the previous revision.

📚 What This Question Tests

This question evaluates your knowledge of Kubernetes CLI — a core concept tested in cloud certification exams. Understanding Kubernetes CLI is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.