About this exam
A professional-level Google Cloud certification that validates the ability to run efficient development operations while balancing service reliability with delivery speed. It covers building an organization around SRE practices, CI/CD pipelines, deployment strategies, observability (logs, metrics and alerts), incident response, and performance and cost optimization.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
You are releasing a new version of a payment API that runs on Cloud Run. Currently 100% of traffic goes to the latest revision. The requirements are: (1) only 5% of requests go to the new version at first; (2) if problems occur, new requests can be sent back to the previous revision without rebuilding or redeploying; (3) no new Cloud Run services or load balancers may be added. Which procedure is most appropriate?
- ACreate the new revision with gcloud run deploy --no-traffic, then assign it 5% with gcloud run services update-traffic
- BRun gcloud run deploy as usual and, if errors rise, redeploy using the previous revision's image
- CDeploy the new version as a separate Cloud Run service and switch the DNS record to the new service
- DDeploy the new revision with --max-instances=1 to limit how much the new version can handle
Show answer and explanation
Answer:A A canary release on Cloud Run means creating a revision that receives no traffic, then setting the split between revisions.
Why it is correct
Deploying with --no-traffic creates the new revision while traffic stays on the old one. Using update-traffic to give the new revision 5% then meets requirement 1. If something goes wrong, update-traffic sends 100% back to the old revision, so new requests go there (in-flight requests complete as usual) with no rebuild or redeploy (requirement 2). Traffic splitting happens inside a single Cloud Run service, so requirement 3 is met as well.
The other options
- ✗ B With 100% of traffic following the latest revision, as it does now, a normal deploy gives the new revision 100%, so you cannot start at 5% (requirement 1), and rolling back requires a redeploy (requirement 2). It suits low-risk changes that do not need a gradual rollout.
- ✗ C Adding a service violates requirement 3. Also, after a DNS change, clients keep using cached answers until their TTLs expire, so neither the switch nor the rollback happens at the share or time you intend. This is the blue/green approach of switching whole environments in front of the service.
- ✗ D --max-instances caps how far the service can scale; it does not set a traffic percentage. The new revision would still receive 100% of traffic on a single instance, and as load grows it would eventually return errors. Use it to cap scaling, for example to protect a downstream database.
Key takeaway
Cloud Run release operations in short: canary → deploy with --no-traffic and set percentages with update-traffic; rollback → update-traffic to send 100% to the old revision; pre-production checks → give a revision its own URL with --tag. Inside a pipeline, Cloud Deploy's canary deployment strategy can do the same.
Try 21 questions like this for free
itmoshi is an unofficial study service and is not affiliated with Google Cloud or any exam provider.