GCP Associate Cloud Engineer Practice Question

Your Cloud Run service "payment-api" runs in the us-central1 region on the fully managed platform. It currently routes 100 % of traffic to revision "payment-api-00009-abc". After deploying a new revision "payment-api-00010-def" with the --no-traffic flag, you decide to start a canary release that sends 15 % of requests to the new revision and keeps the remaining traffic on the existing one. Which gcloud command meets the requirement without causing downtime?

  • gcloud run services update-traffic payment-api --platform managed --region us-central1 --to-revisions payment-api-00010-def=15,payment-api-00009-abc=85

  • gcloud run deploy payment-api --image gcr.io/myproj/payment:v2 --traffic 15 --region us-central1 --platform managed

  • gcloud run services update-traffic payment-api --platform managed --region us-central1 --to-latest --traffic-percent 15

  • gcloud run services update-traffic payment-api --platform managed --region us-central1 --to-revisions payment-api-00010-def=0.15,payment-api-00009-abc=0.85

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot