Correct Answer: kubectl rollout undo deployment/web-app
The command 'kubectl rollout undo deployment/<name>' rolls back a Deployment to the previous revision....
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.
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.
Which command applies a configuration file named 'app.yaml' to a Kubernetes cluster?
You want to inspect the real-time logs of a running container named 'app-container' within a pod named 'web-pod'. Which kubectl command should you run?
You want to quickly create a YAML template for a deployment named 'nginx' without actually creating the resource in the cluster. Which combination of kubectl flags should you use?
You are debugging a connection issue and want to run a temporary diagnostic container using the 'busybox' image inside the namespace 'staging', interact with its shell, and have the container be automatically deleted as soon as you exit the shell. Which command should you run?