GCP ACE · Question 26 · Domain 3.3: Deploying Cloud Run and Cloud Functions
You are deploying a container image to Cloud Run. You want to ensure that unauthenticated users cannot access the service. How should you configure the deployment?
Answer options:
Deploy the service with the --allow-unauthenticated flag and handle authentication in your application code.
Deploy the service without the --allow-unauthenticated flag and grant the roles/run.invoker role only to authorized identities.
Configure a VPC firewall rule to block public IP addresses.
Use Cloud Armor to block unauthenticated requests.
50 questions · hints · full answers · grading