For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeGCP Associate Cloud Engineer (ACE)GCP Associate Cloud Engineer Practice Exam 1Question 26
    Medium1 markMultiple Choice
    Domain 3.3: Deploying Cloud Run and Cloud FunctionsCloud RunSecurityDomain 3.3

    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:

    A.

    Deploy the service with the --allow-unauthenticated flag and handle authentication in your application code.

    B.

    Deploy the service without the --allow-unauthenticated flag and grant the roles/run.invoker role only to authorized identities.

    C.

    Configure a VPC firewall rule to block public IP addresses.

    D.

    Use Cloud Armor to block unauthenticated requests.

    How to approach this question

    Identify the native IAM role used to control access to Cloud Run services.

    Full Answer

    B.Deploy the service without the --allow-unauthenticated flag and grant the roles/run.invoker role only to authorized identities.✓ Correct
    By default, Cloud Run services are secure and require authentication. You must explicitly grant the `roles/run.invoker` IAM role to users, groups, or service accounts that need to access the service. Using the `--allow-unauthenticated` flag grants this role to `allUsers`, making it public.

    Common mistakes

    Thinking VPC firewall rules apply directly to public Cloud Run endpoints.
    Question 25All questionsQuestion 27

    Practice the full GCP Associate Cloud Engineer Practice Exam 1

    50 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01What is the highest level of the Google Cloud resource hierarchy?EasyQ02You need to enable the Compute Engine API in a new project using the command line. Which command ...EasyQ03You are setting up a new GCP environment. You need to grant a group of developers access to view ...MediumQ04You want to receive an email notification when your GCP spending exceeds $1000 this month. What s...EasyQ05You need to analyze your GCP billing data using complex SQL queries to understand cost trends acr...Medium
    View all 50 questions →