Medium1 markMultiple Choice
Domain 3.3: Deploying Cloud Run and Cloud FunctionsDomain 3.3Cloud RunDeploymentSecurity

GCP ACE · Question 25 · Domain 3.3: Deploying Cloud Run and Cloud Functions

You are deploying a public-facing website using Cloud Run. You have the container image ready in Artifact Registry. You want to ensure that anyone on the internet can access the website without needing to authenticate.

Which flag must you include in your gcloud run deploy command?

Answer options:

A.

--public

B.

--no-auth

C.

--allow-unauthenticated

D.

--ingress=all

How to approach this question

Recall the specific flag used in Cloud Run to bypass IAM authentication for public web services.

Full Answer

C.--allow-unauthenticated✓ Correct
--allow-unauthenticated
By default, Cloud Run services are secured and require IAM authentication to be invoked. To make a service public (like a website), you must use the `--allow-unauthenticated` flag during deployment, which grants the `roles/run.invoker` role to `allUsers`.

Common mistakes

Confusing `--ingress=all` (network level) with `--allow-unauthenticated` (IAM level).

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam