Version Testing in App Engine | Google Cloud

Test New Version with 1% of Users | Ace: Associate Cloud Engineer Exam | Google Cloud

Question

You are building a new version of an application hosted in an App Engine environment.

You want to test the new version with 1% of users before you completely switch your application over to the new version.

What should you do?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

The correct answer is C. Deploy a new version as a separate app in App Engine. Then configure App Engine using GCP Console to split traffic between the two apps.

Explanation: To test a new version of an application hosted in an App Engine environment, you can deploy the new version as a separate app in App Engine, and then configure App Engine to split traffic between the two apps. This can be done using the App Engine dashboard in the Google Cloud Platform (GCP) Console.

Here are the steps to follow:

  1. Deploy a new version of the application as a separate app in App Engine. You can do this by creating a new service in the same project and deploying the new version to that service.

  2. Configure traffic splitting between the two apps. In the App Engine dashboard, go to the "Versions" page for the old app and click "Split Traffic". Select the new app as the "Split to" option and set the percentage of traffic you want to send to the new app (in this case, 1%).

  3. Monitor the traffic to the new app. Once traffic splitting is configured, App Engine will automatically send the specified percentage of traffic to the new app. You can monitor the traffic to the new app using the App Engine dashboard and make any necessary changes to the new app before completely switching over to the new version.

Option A and B are incorrect because they suggest using Google Kubernetes Engine and Compute Engine instead of App Engine. While it is possible to split traffic in these environments, it is not the recommended approach for testing new versions of an application in App Engine.

Option D is incorrect because it only allows for splitting traffic between the current version and the newly deployed version, and does not provide the option to test with a specific percentage of traffic.