nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #72

Your company is using HTTPS requests to trigger a public Cloud Run-hosted service accessible at the https://booking-engine-abcdef.a.run.app URL. You need to give developers the ability to test the…

The correct answer is A. Run the gcloud run deploy booking-engine --no-traffic --tag dev command. Use the https://dev--. The --no-traffic flag deploys a new Cloud Run revision without routing any production traffic to it. The --tag dev flag assigns a named tag to that revision, which generates a unique URL in the format https://dev--booking-engine-abcdef.a.run.app. Developers can access this URL…

Submitted by krish.m· Apr 18, 2026Building and implementing CI/CD pipelines for a service

Question

Your company is using HTTPS requests to trigger a public Cloud Run-hosted service accessible at the https://booking-engine-abcdef.a.run.app URL. You need to give developers the ability to test the latest revisions of the service before the service is exposed to customers. What should you do?

Options

  • ARun the gcloud run deploy booking-engine --no-traffic --tag dev command. Use the https://dev--
  • BRun the gcloud run services update-traffic booking-engine --to-revisions LATEST=1 command.
  • CPass the curl -H "Authorization:Bearer $(gcloud auth print-identity-token)" auth token. Use the
  • DGrant the roles/run.invoker role to the developers testing the booking-engine service. Use the

How the community answered

(23 responses)
  • A
    78% (18)
  • B
    4% (1)
  • C
    13% (3)
  • D
    4% (1)

Explanation

The --no-traffic flag deploys a new Cloud Run revision without routing any production traffic to it. The --tag dev flag assigns a named tag to that revision, which generates a unique URL in the format https://dev--booking-engine-abcdef.a.run.app. Developers can access this URL to test the latest revision in isolation without affecting customers. Option B routes all traffic to LATEST immediately, which would expose customers to the untested version. Options C and D do not achieve traffic isolation by revision.

Topics

#Cloud Run#Traffic Management#Deployment Testing#Service Revisions

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice