Easy1 markMultiple Choice

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

You are deploying a new public-facing website using Cloud Run. You want anyone on the internet to be able to access the website without needing to log in.

How should you configure the authentication settings during deployment?

Answer options:

A.

Allow unauthenticated invocations

B.

Require authentication

C.

Set ingress to internal only

D.

Attach a Cloud NAT to the Cloud Run service

How to approach this question

Understand the basic security settings of Cloud Run. To make it public, you must explicitly allow unauthenticated access.

Full Answer

A.Allow unauthenticated invocations✓ Correct
By default, Cloud Run services require IAM authentication to be invoked. To make a Cloud Run service publicly accessible (like a public website), you must configure it to 'Allow unauthenticated invocations'. Behind the scenes, this adds the `allUsers` member to the `roles/run.invoker` IAM role on the service.

Common mistakes

Confusing Ingress settings (network level) with Authentication settings (IAM level).

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam