Question 87 of 500

PCDOE Practice Question: Bootstrapping a Google Cloud organization for DevOps

This PCDOE practice question tests your understanding of bootstrapping a google cloud organization for devops. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A Cloud Build pipeline that deploys a container to Cloud Run fails with the error: `Missing required permission run.routes.invoke`. The Cloud Build service account has the 'Cloud Run Invoker' role. Which TWO additional steps should be taken?

Question 1hardmulti select
Review the full routing breakdown →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Ensure the service account has the `iam.serviceAccounts.actAs` permission on the Cloud Run runtime service account.

Option A is correct because the Cloud Build service account needs the `iam.serviceAccounts.actAs` permission on the Cloud Run runtime service account (the service account that Cloud Run uses to run the container). Without this permission, Cloud Build cannot impersonate the runtime service account to deploy the container, even if it has the Cloud Run Invoker role. The `run.routes.invoke` error occurs because the deployment process requires the ability to invoke the route, which is tied to the runtime service account's permissions.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Ensure the service account has the `iam.serviceAccounts.actAs` permission on the Cloud Run runtime service account.

    Why this is correct

    Required to deploy revisions because the service account acts as the runtime SA.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Enable the Cloud Run API in the project.

    Why it's wrong here

    The API must already be enabled for the pipeline to run.

  • Grant the 'Cloud Run Developer' role to the service account.

    Why this is correct

    Developer role includes `run.services.update` and `run.services.create`.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use a different service account for deployment.

    Why it's wrong here

    Not a resolution; the current SA needs proper permissions.

  • Add the `run.routes.invoke` permission to a custom role.

    Why it's wrong here

    The Invoker role already includes `run.routes.invoke`; the error is misleading but missing other permissions.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that granting the `run.routes.invoke` permission directly to the Cloud Build service account (via a custom role) will fix the error, when in fact the error arises because the runtime service account lacks the permission and the Cloud Build service account cannot impersonate it without the `actAs` permission.

Detailed technical explanation

How to think about this question

Under the hood, Cloud Build deploys to Cloud Run by calling the Cloud Run Admin API, which requires the Cloud Build service account to have the `iam.serviceAccounts.actAs` permission on the runtime service account (typically the Compute Engine default service account). This permission allows Cloud Build to generate a short-lived access token for the runtime service account, which then invokes the `run.routes.invoke` permission during deployment. In a real-world scenario, if the runtime service account has been customized with minimal permissions, the `actAs` grant is essential to avoid this error, especially in multi-service architectures where different Cloud Run services use different runtime service accounts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PCDOE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PCDOE practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PCDOE question test?

Bootstrapping a Google Cloud organization for DevOps — This question tests Bootstrapping a Google Cloud organization for DevOps — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Ensure the service account has the `iam.serviceAccounts.actAs` permission on the Cloud Run runtime service account. — Option A is correct because the Cloud Build service account needs the `iam.serviceAccounts.actAs` permission on the Cloud Run runtime service account (the service account that Cloud Run uses to run the container). Without this permission, Cloud Build cannot impersonate the runtime service account to deploy the container, even if it has the Cloud Run Invoker role. The `run.routes.invoke` error occurs because the deployment process requires the ability to invoke the route, which is tied to the runtime service account's permissions.

What should I do if I get this PCDOE question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This PCDOE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCDOE exam.