Google Cloud Professional Cloud Developer — Question 256
You are using Cloud Run to host a global ecommerce web application. Your company’s design team is creating a new color scheme for the web app. You have been tasked with determining whether the new color scheme will increase sales. You want to conduct testing on live production traffic. How should you design the study?
Answer options
- A. Use an external HTTP(S) load balancer to route a predetermined percentage of traffic to two different color schemes of your application. Analyze the results to determine whether there is a statistically significant difference in sales.
- B. Use an external HTTP(S) load balancer to route traffic to the original color scheme while the new deployment is created and tested. After testing is complete, reroute all traffic to the new color scheme. Analyze the results to determine whether there is a statistically significant difference in sales.
- C. Use an external HTTP(S) load balancer to mirror traffic to the new version of your application. Analyze the results to determine whether there is a statistically significant difference in sales.
- D. Enable a feature flag that displays the new color scheme to half of all users. Monitor sales to see whether they increase for this group of users.
Correct answer: A
Explanation
Option A is correct because it allows for a controlled comparison between the two color schemes with live traffic, enabling statistical analysis of the sales impact. Option B only tests the new scheme after the old one, failing to provide real-time comparative data. Option C mirrors traffic but does not involve actual user interaction with the new scheme, making it ineffective for assessing sales. Option D uses a feature flag but lacks the rigorous analysis of traffic distribution necessary for a valid comparison.