Google Associate Cloud Engineer Question 221
Select 3Google Cloud PlatformYou are managing an application deployed on Google App Engine. You want to gradually roll out a new version of your service while monitoring its performance and limiting the risk. Which of the following steps should you take to adjust the application traffic splitting parameters?
- A
A. Use the App Engine Admin API to set the traffic split policy to 'random'.
- B
B. Update the existing service version with the new code and rely on the automatic roll-out.
- C
C. Configure the traffic split settings via the Google Cloud Console to distribute traffic between the old and new versions.
- D
D. Use the gcloud command-line tool to specify a percentage of traffic to the new version while keeping the rest on the old version.
Show answer and explanation
Correct answers: A, C, D
Explanation
To perform a controlled rollout of a new version on Google App Engine while monitoring performance, you can use the App Engine Admin API or the Google Cloud Console to configure traffic splitting. Alternatively, the gcloud command-line tool allows for precise traffic distribution between versions by specifying percentages. These methods help in limiting risk by gradually shifting traffic to the new version.
- A. Correct.
A. Correct. The App Engine Admin API can be used to set traffic splitting policies, including 'random', which is useful for gradually rolling out new versions.
- B. Incorrect.
B. Incorrect. Simply updating the existing service version does not allow for controlled traffic splitting; it would replace the old version entirely.
- C. Correct.
C. Correct. The Google Cloud Console provides an interface to configure traffic splits between versions, which is crucial for gradual rollouts.
- D. Correct.
D. Correct. The gcloud command-line tool can be used to specify traffic percentages for different versions, allowing precise control over the rollout.