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…
Question
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)- A78% (18)
- B4% (1)
- C13% (3)
- D4% (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
Community Discussion
No community discussion yet for this question.