Google Associate Cloud Engineer Question 220
Single answerGoogle Cloud PlatformYour team has just deployed a new version of a web application on Google App Engine and wants to perform a gradual rollout. You decide to split traffic between the new version and the existing one to monitor its performance. How can you adjust the traffic splitting parameters to achieve this?
- A
Use the App Engine Console to set the traffic splitting to IP-based.
- B
Use the gcloud command-line tool to set a manual traffic split with percentage distribution.
- C
Configure the App Engine to use a round-robin DNS setup for traffic distribution.
- D
Utilize Cloud Load Balancing to distribute traffic evenly between versions.
Show answer and explanation
Correct answer: B
Explanation
To perform a gradual rollout between different versions of an application in Google App Engine, you need to adjust the traffic splitting parameters. This can be done using the gcloud command-line tool, which allows you to specify manual traffic splitting by setting percentage distributions between the versions. This method provides fine-grained control over how much traffic each version receives.
- A. Incorrect.
App Engine does not support IP-based traffic splitting. It uses random or cookie-based splitting methods.
- B. Correct.
The gcloud command-line tool can be used to set traffic splitting parameters, including manual splits with specific percentage allocations.
- C. Incorrect.
App Engine does not use round-robin DNS for traffic splitting. It uses built-in methods like random or cookie-based splitting.
- D. Incorrect.
Cloud Load Balancing is not used for traffic splitting between App Engine versions directly. Traffic splitting is managed within App Engine itself.