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 7Question 25
    Easy1 markMultiple Choice
    Domain 3.3: Deploying and implementing Cloud Run and Cloud FunctionsCloud RungcloudDeploymentServerless

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

    You have a container image stored in Artifact Registry at us-central1-docker.pkg.dev/my-project/my-repo/my-app:latest. You want to deploy this image to Cloud Run so that it can receive HTTPS requests from the public internet.

    Which gcloud command should you use?

    Answer options:

    A.

    gcloud compute instances create-with-container --container-image us-central1-docker.pkg.dev/my-project/my-repo/my-app:latest

    B.

    gcloud run deploy --image us-central1-docker.pkg.dev/my-project/my-repo/my-app:latest --allow-unauthenticated

    C.

    gcloud functions deploy --source us-central1-docker.pkg.dev/my-project/my-repo/my-app:latest

    D.

    gcloud app deploy us-central1-docker.pkg.dev/my-project/my-repo/my-app:latest

    How to approach this question

    Identify the command group for Cloud Run and the flag required to make it public.

    Full Answer

    B.gcloud run deploy --image us-central1-docker.pkg.dev/my-project/my-repo/my-app:latest --allow-unauthenticated✓ Correct
    gcloud run deploy --image us-central1-docker.pkg.dev/my-project/my-repo/my-app:latest --allow-unauthenticated
    The `gcloud run deploy` command is used to deploy container images to Cloud Run. Because the requirement states it must receive requests from the public internet, you must include the `--allow-unauthenticated` flag, which grants the `roles/run.invoker` role to `allUsers`.

    Common mistakes

    Forgetting the `--allow-unauthenticated` flag, which would result in the service returning a 403 Forbidden error to public users.
    Question 24All questionsQuestion 26

    Practice the full GCP Associate Cloud Engineer Practice Exam 7

    50 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01You are starting a new initiative and need to create a new Google Cloud project using the Cloud S...EasyQ02Your company is migrating to Google Cloud and wants to manage user identities centrally. They cur...MediumQ03You have just created a new Google Cloud project and want to deploy a containerized application u...MediumQ04Your finance team wants to perform complex SQL queries on your Google Cloud billing data to analy...MediumQ05You are managing a development project in Google Cloud. You want to ensure that you are notified ...Easy
    View all 50 questions →