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?
Click on the arrows to vote for the correct answer
A. B. C. D.D.
https://medium.com/google-cloud/app-engine-project-cleanup-9647296e796aThe correct answer for the given question is C. On the App Engine Versions page of the GCP Console, route 100% of the traffic to the previous version.
Explanation:
When deploying an application on App Engine, it's possible to have multiple versions of the same application running simultaneously. App Engine provides a feature called Traffic Splitting which allows you to control the amount of traffic sent to each version of the application.
In case of a faulty deployment, the quickest way to revert to a previous version is to route 100% of the traffic to the previous version using the Traffic Splitting feature. This can be done using the following steps:
By doing this, all incoming traffic will be directed to the previous version of the application until the issue with the current version is resolved.
Option A, "Run gcloud app restore", is not a valid command and does not revert an App Engine deployment to a previous version.
Option B, "On the App Engine page of the GCP Console, select the application that needs to be reverted and click Revert", is not a valid action. The App Engine page on the GCP Console does not have a "Revert" button.
Option 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", is not the best solution in this scenario as it requires deploying a new application instead of simply reverting to the previous version.