Google Cloud Associate Cloud Engineer — Question 13
You recently deployed a new version of an application to App Engine and then discovered a bug in the release. You need to immediately revert to the prior version of the application. What should you do?
Answer options
- A. Run gcloud app restore.
- B. On the App Engine page of the GCP Console, select the application that needs to be reverted and click Revert.
- C. On the App Engine Versions page of the GCP Console, route 100% of the traffic to the previous version.
- D. Deploy the original version as a separate application. Then go to App Engine settings and split traffic between applications so that the original version serves 100% of the requests.
Correct answer: C
Explanation
The correct answer is C because routing 100% of the traffic to the previous version is the quickest way to revert changes without needing to deploy anything new. Option A is incorrect as there is no 'gcloud app restore' command. Option B does not provide a direct method for traffic routing. Option D complicates the process by requiring a separate deployment and traffic management, which is unnecessary for a quick rollback.