Google Associate Cloud Engineer Question 222
Select 3Google Cloud PlatformAs a Google Cloud Associate Cloud Engineer, you are tasked with deploying a new version of a web application on Google App Engine. You want to gradually shift traffic from the current version to the new version to minimize risk. Which of the following steps should you take to configure traffic splitting parameters effectively?
- A
A) Use the Google Cloud Console to configure traffic splitting by specifying the percentage of traffic for each version.
- B
B) Use the gcloud command-line tool to set up traffic splitting by IP address.
- C
C) Modify the app.yaml file to include traffic splitting parameters directly.
- D
D) Use the Google Cloud Console to deploy the new version and set up traffic splitting by cookie.
- E
E) Use the gcloud command-line tool to allocate traffic using the 'gcloud app services set-traffic' command.
Show answer and explanation
Correct answers: A, D, E
Explanation
Traffic splitting in Google App Engine allows you to direct user traffic to different versions of your application in a controlled manner. This can be done using the Google Cloud Console or the gcloud command-line tool. Supported methods include splitting by percentage and by cookie, allowing you to test new versions before fully rolling them out. The 'gcloud app services set-traffic' command is specifically designed for setting up traffic splitting, making it a crucial tool for this task.
- A. Correct.
A) This is a correct option as the Google Cloud Console allows you to specify traffic splitting by percentage.
- B. Incorrect.
B) Traffic splitting by IP address is not supported directly via gcloud command-line tool, making this an incorrect option.
- C. Incorrect.
C) The app.yaml file is used for configuration of app-specific settings but does not directly support traffic splitting parameters, making this option incorrect.
- D. Correct.
D) This is a correct option as the Google Cloud Console allows you to set up traffic splitting by cookie, which is a supported method.
- E. Correct.
E) This is a correct option as the 'gcloud app services set-traffic' command is used to configure traffic splitting for different versions.