🔥 40% Off Crucial Exams Memberships — Deal ends today!

44 minutes, 54 seconds remaining!

GCP Associate Cloud Engineer Practice Question

Your team is deploying a container on Cloud Run that must publish messages to Pub/Sub. The container code runs unattended and must authenticate without embedding user credentials. Central security mandates that the identity used can be tracked in IAM, rotates automatically, and can be limited to only the Pub/Sub Publisher role. Which identity design best meets these requirements when the container calls the Pub/Sub API?

  • Create a separate Gmail account for the application, enable 2-step verification, generate an OAuth token, and store the token as a secret in Cloud Run.

  • Create a dedicated service account, grant it the Pub/Sub Publisher role, and set it as the runtime service account for the Cloud Run service.

  • Let the Cloud Run service inherit the personal Google account of the engineer who deploys it, since that user already has Editor permissions.

  • Grant the Pub/Sub Publisher role to a Google Group of developers and configure the container to authenticate using the group's email address at runtime.

GCP Associate Cloud Engineer
Configuring access and security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot