
Answer-first summary for fast verification
Answer: Deploy the new version with the no-promote flag and split traffic based on cookies.
The correct approach is to deploy the new version using the `--no-promote` flag to prevent it from receiving all traffic initially. After deployment and testing, traffic can be split using cookies to ensure a consistent user experience. This method is more precise than IP-based splitting. Options A and B are incorrect because deploying without the `--no-promote` flag would direct all traffic to the new version immediately. Option C is incorrect because random distribution does not guarantee a consistent user experience.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your team is introducing new functionality and plans to roll it out gradually to monitor for errors, especially since the update includes significant changes to the user interface. You've decided on a canary deployment using traffic splitting, starting with 15% of your users. How should you configure traffic splitting to ensure users have a consistent experience?
A
Deploy the new version and split traffic based on IP or cookie distribution.
B
Utilize the gcloud app deploy command with the distribution flag to both deploy and split traffic simultaneously.
C
Deploy the new version with the no-promote flag and split traffic randomly.
D
Deploy the new version with the no-promote flag and split traffic based on cookies.