exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 306 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 306
Topic #: 1
[All Professional Cloud Developer Questions]

You need to deploy a new feature into production on Cloud Run. Your company’s SRE team mandates gradual deployments to avoid large downtimes caused by code change errors. You want to configure this deployment with minimal effort. What should you do?

  • A. Configure the application’s frontend load balancer to toggle between the new and old revisions.
  • B. Configure the application code to send a small percentage of users to the newly deployed revision.
  • C. Deploy the feature with “Serve this revision immediately” unchecked, and configure the new revision to serve a small percentage of traffic. Check for errors, and increase traffic to the revision as appropriate.
  • D. Deploy the feature with “Serve this revision immediately” checked. Check for errors, roll back to the previous revision, and repeat the process until you have verified that the deployment is bug-free.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Pime13
4 weeks, 1 day ago
Selected Answer: C
https://cloud.google.com/run/docs/rollouts-rollbacks-traffic-migration#gradual In the Google Cloud console, go to Cloud Run: Go to Cloud Run Select a service in the services list. Click Deploy New Revision. Fill out the deploy form as needed, but make sure the checkbox labelled Serve this revision immediately is UNCHECKED. Click Deploy. Click Manage Traffic. The new revision is listed but with a 0 percentage set: it is currently not serving any traffic. In the form: Set it to the desired percentage, for example, 5. Note that the currently serving version's percentage is automatically reduced by that same amount. Click Save. Repeat these Manage Traffic steps but with changed percentages, increasing the percentage as needed for the new revision. You do not need to redeploy to change the traffic percentages.
upvoted 1 times
...
yokoyan
4 months ago
Selected Answer: C
https://cloud.google.com/run/docs/rollouts-rollbacks-traffic-migration?hl=ja#gradual
upvoted 1 times
...
anshad666
10 months ago
Selected Answer: C
By deploying the new feature with “Serve this revision immediately” unchecked, you can control how much traffic the new revision receives without fully switching over to it. Configuring a small percentage of traffic to go to the new revision allows for gradual testing in production with real users, minimizing the risk of downtime or large-scale errors. If no issues are encountered, you can gradually increase the traffic to the new revision until it fully replaces the old one.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...