Google Associate Cloud Engineer Question 224
Select 2Google Cloud PlatformYou are deploying a new version of your application on Google App Engine and want to gradually shift traffic from the old version to the new version to ensure stability. Which of the following steps should you take to adjust the application traffic splitting parameters?
- A
A. Use the Google Cloud Console to update the traffic split settings for your service.
- B
B. Edit the
app.yamlfile to specify the traffic split and deploy the new version. - C
C. Utilize the
gcloud app services set-trafficcommand to adjust the traffic allocation. - D
D. Update the application's source code to include traffic splitting logic.
- E
E. Configure a load balancer to manage traffic distribution between versions.
Show answer and explanation
Correct answers: A, C
Explanation
To adjust application traffic splitting parameters on Google App Engine, you can either use the Google Cloud Console or the gcloud app services set-traffic command. These methods allow you to specify how traffic should be distributed between different versions of your application, ensuring a smooth transition and minimal disruption.
- A. Correct.
A. The Google Cloud Console provides a user-friendly interface to adjust traffic split settings directly for your App Engine service.
- B. Incorrect.
B. The
app.yamlfile is used for configuration settings during deployment, but traffic splitting is managed through the console or gcloud commands, not within this file. - C. Correct.
C. The
gcloud app services set-trafficcommand allows you to programmatically adjust traffic splits between different versions of your application. - D. Incorrect.
D. Traffic splitting should be managed by App Engine settings, not by embedding it within the application's source code.
- E. Incorrect.
E. App Engine handles traffic splitting internally, and it is not necessary to configure an external load balancer specifically for this purpose.