
Answer-first summary for fast verification
Answer: Deploy the new version with the `no-promote` flag and split traffic using cookies.
The correct approach is to deploy the new version using the `no-promote` flag to prevent it from receiving all traffic immediately. 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. Option C is incorrect because random distribution does not guarantee a consistent user experience.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your team is planning to introduce new functionality gradually to monitor for errors, which 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 for simultaneous deployment and traffic splitting.
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 using cookies.
No comments yet.