Google Cloud Professional Cloud Developer — Question 139
Before promoting your new application code to production, you want to conduct testing across a variety of different users. Although this plan is risky, you want to test the new version of the application with production users and you want to control which users are forwarded to the new version of the application based on their operating system. If bugs are discovered in the new version, you want to roll back the newly deployed version of the application as quickly as possible.
What should you do?
Answer options
- A. Deploy your application on Cloud Run. Use traffic splitting to direct a subset of user traffic to the new version based on the revision tag.
- B. Deploy your application on Google Kubernetes Engine with Anthos Service Mesh. Use traffic splitting to direct a subset of user traffic to the new version based on the user-agent header.
- C. Deploy your application on App Engine. Use traffic splitting to direct a subset of user traffic to the new version based on the IP address.
- D. Deploy your application on Compute Engine. Use Traffic Director to direct a subset of user traffic to the new version based on predefined weights.
Correct answer: B
Explanation
The correct answer is B because using Google Kubernetes Engine with Anthos Service Mesh allows you to leverage the user-agent header for targeted traffic splitting based on the operating system. The other options either do not provide the necessary granularity for OS-based traffic control (A, C, D) or do not utilize the most suitable platform for such a requirement.