PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 19 of 25
[Building and implementing CI/CD pipelines for a service] You are building and deploying a microservice on Cloud Run for your organization Your service is used by many applications internally You are deploying a new release, and you need to test the new version extensively in the staging and production environments You must minimize user and developer impact. What should you do?
Full set: 205 questionsThis approach provides the highest level of safety and control. Deploying the new version as a new revision with a specific tag (e.g., new-release) allows it to be tested in isolation via its unique tag-based URL without affecting any production traffic. Once the staging tests pass, this exact, validated revision can be gradually rolled out to production by slowly shifting traffic. This method ensures the new version is thoroughly vetted before any end-users are exposed, minimizing impact as required.
A. This option exposes 1% of traffic to the new version immediately, before any isolated testing can occur, which introduces unnecessary risk.
B. Splitting traffic 50/50 is a high-risk strategy that exposes a large user base to a potentially unstable version, violating the "minimize user impact" requirement.
D. Creating and destroying entire environments for a single service update is overly complex and inefficient. Cloud Run's native revision and traffic-splitting features are designed for this purpose.
1. Google Cloud Documentation, "Testing and rolling out new revisions". It states, "By default, when you deploy a new revision, it replaces the previous revision and starts serving all traffic... You can change this behavior by deploying a new revision without diverting traffic to it." It also describes using tags: "Tags provide a stable URL for a specific revision."
2. Google Cloud Documentation, "Rollbacks, gradual rollouts, and traffic migration". This page details the process: "You can gradually roll out a new revision... You can also use this feature to split traffic between two revisions." This confirms that deploying a revision, testing it, and then gradually migrating traffic is the recommended pattern.
Keep practicing
Take the free PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice questions
- Question 1[Building and implementing CI/CD pipelines for a service] You need to enforce several con…
- Question 2You deployed an application into a large Standard Google Kubernetes Engine (GKE) cluster.…
- Question 3You are responding to a high-priority incident where a critical, user-facing payment serv…
- Question 4[Applying Site Reliability Engineering (SRE) principles to a service] You support a user-…
- Question 5You are deploying an application that needs to access sensitive information. You need to …
- Question 6[Building and implementing CI/CD pipelines for a service] You are building an application…
