PROFESSIONAL-CLOUD-DEVELOPER · Question #374
PROFESSIONAL-CLOUD-DEVELOPER Question #374: Real Exam Question with Answer & Explanation
The correct answer is D: Use traffic splitting to have a small percentage of users test out new features on the new revision. Traffic splitting in Cloud Run allows you to route a specific percentage of users to a new revision of your service, making it possible to test the new version with real traffic while minimizing the risk of downtime. This gradual rollout approach helps you monitor performance and
Question
You have an application running on Cloud Run that receives a large volume of traffic. You need to deploy a new version of the application. You want your deployment process to minimize the risk of downtime while following Google-recommended practices. What should you do?
Options
- AUse Cloud Run emulator to test changes locally before deploying the new version of the
- BUse Cloud Build to create a pipeline, and configure a test stage before the deployment stage.
- CUse Cloud Load Balancing to route a percentage of production traffic to a separate Cloud Run
- DUse traffic splitting to have a small percentage of users test out new features on the new revision
Explanation
Traffic splitting in Cloud Run allows you to route a specific percentage of users to a new revision of your service, making it possible to test the new version with real traffic while minimizing the risk of downtime. This gradual rollout approach helps you monitor performance and user experience, and if issues arise, you can easily adjust the traffic split or revert to the previous version. This aligns with Google-recommended practices for safe, low-risk deployments in Cloud Run. Options like testing locally with a Cloud Run emulator or deploying after passing tests in a pipeline are useful for initial testing but do not provide the gradual, controlled release approach that traffic splitting offers. Using Cloud Load Balancing is not necessary here, as Cloud Run has built-in traffic splitting capabilities designed for this purpose.
Topics
Community Discussion
No community discussion yet for this question.