Google ACE Practice Question: Ensuring Successful Operation of a Cloud Solution
You have updated a deployment in GKE, but the new pods are crashing. You want to revert to the previous working version. What should you do?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
kubectl rollout undo deployment/my-app
kubectl rollout undo reverts to the previous revision.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
kubectl rollout status deployment/my-app
Why it's wrong here
This command only queries the current status of the rollout, such as whether it is complete, pending, or still progressing. It does not modify the Deployment's pod template, image, or any revision state. Therefore, it cannot revert the faulty update and would leave the new pods in their failing state.
- ✓
kubectl rollout undo deployment/my-app
Why this is correct
This command reverts the Deployment to the previous revision by rolling back to the last good ReplicaSet. The Deployment controller will scale down the current ReplicaSet and scale up the old one, restoring the previous container image and configuration. This is the correct, built-in way to undo a bad deployment while maintaining availability.
- ✗
kubectl scale deployment/my-app --replicas=0
Why it's wrong here
Scaling to zero pods stops all running instances but leaves the Deployment's desired pod template unchanged, still referencing the faulty image. When you scale back up, identical broken pods will be created again, so this does not solve the problem. It is merely a temporary outage, not a rollback.
- ✗
kubectl delete deployment/my-app and recreate
Why it's wrong here
Deleting the Deployment removes the Deployment object, its ReplicaSets, and all associated pods, requiring manual recreation from a manifest. This causes unnecessary downtime and does not automatically restore the previous working revision; if the same faulty image is used, the issue persists. A rollback is safer and faster.
Go deeper
Related to this question
About these practice questions
Courseiva writes every ACE question from scratch — 769 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.