New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud Developer Exam - Topic 11 Question 62 Discussion

Actual exam question for Google's Professional Cloud Developer exam
Question #: 62
Topic #: 11
[All Professional Cloud Developer Questions]

You work for an organization that manages an ecommerce site. Your application is deployed behind a global HTTP(S) load balancer. You need to test a new product recommendation algorithm. You plan to use A/B testing to determine the new algorithm's effect on sales in a randomized way. How should you test this feature?

Show Suggested Answer Hide Answer
Suggested Answer: A

https://cloud.google.com/load-balancing/docs/https/traffic-management-global#traffic_actions_weight-based_traffic_splitting

Deploying a new version of an existing production service generally incurs some risk. Even if your tests pass in staging, you probably don't want to subject 100% of your users to the new version immediately. With traffic management, you can define percentage-based traffic splits across multiple backend services.

For example, you can send 95% of the traffic to the previous version of your service and 5% to the new version of your service. After you've validated that the new production version works as expected, you can gradually shift the percentages until 100% of the traffic reaches the new version of your service. Traffic splitting is typically used for deploying new versions, A/B testing, service migration, and similar processes.

https://cloud.google.com/traffic-director/docs/advanced-traffic-management#weight-based_traffic_splitting_for_safer_deployments

https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on-gke#split_the_traffic_2

https://cloud.google.com/load-balancing/docs/https/traffic-management-global#traffic_actions_weight-based_traffic_splitting


Contribute your Thoughts:

0/2000 characters
Lili
4 months ago
Not sure about that, isn't mirroring traffic just for debugging?
upvoted 0 times
...
Ronnie
4 months ago
I think option C could work too, but not as effective as A.
upvoted 0 times
...
Sanda
4 months ago
Wait, can you really test with just one instance? Sounds risky.
upvoted 0 times
...
Vincent
4 months ago
Totally agree, option A makes the most sense.
upvoted 0 times
...
Jolanda
4 months ago
A/B testing is best with split traffic!
upvoted 0 times
...
Mary
5 months ago
I think HTTP header-based routing could work, but it seems more complicated than just splitting traffic. I wonder if it’s the best choice for A/B testing.
upvoted 0 times
...
Lawana
5 months ago
I feel like mirroring traffic could be useful for testing, but it might not give a clear picture of how the new algorithm affects sales directly.
upvoted 0 times
...
Ming
5 months ago
I'm not entirely sure, but enabling the feature flag on just one instance seems risky. What if that instance has issues?
upvoted 0 times
...
Deonna
5 months ago
I remember discussing A/B testing in class, and I think splitting traffic using weights is a common approach. It allows for a fair comparison, right?
upvoted 0 times
...
Denny
5 months ago
Hmm, this is a tricky one. I'm not totally sure what the "sphere of experience" concept is getting at. I'll have to think about the different options and see if I can figure out which one best fits the description.
upvoted 0 times
...
Earleen
5 months ago
Hmm, this seems like a tricky one. I'll need to think carefully about the different factors involved in log sizing for the Cortex Data Lake.
upvoted 0 times
...
Launa
5 months ago
Okay, let me think this through step-by-step. Bubba bought a call and a put, and the put expired while the call was closed at intrinsic value. I think I can work this out.
upvoted 0 times
...
Percy
5 months ago
Wait, I'm a little confused. Does the question mean that the refrigerant can freeze the skin and muscles immediately, or is it talking about a longer exposure time? I need to re-read this carefully.
upvoted 0 times
...

Save Cancel