Question 304 of 500
Deploying and implementing a cloud solutionhardMultiple ChoiceObjective-mapped

Quick Answer

The answer is `roles/run.admin` and `roles/iam.serviceAccountUser` on the Cloud Run runtime service account. This is required because deploying to Cloud Run involves two distinct actions: the Cloud Build service account needs `roles/run.admin` to create or update the Cloud Run service itself, but it must also impersonate the runtime service account—the identity under which the Cloud Run service will run—to attach that identity to the deployment. Without `roles/iam.serviceAccountUser` on that runtime service account, the impersonation fails, causing a permission denied error even with full admin rights. On the Google Associate Cloud Engineer exam, this tests your understanding that Cloud Run deployments are a two-step permission chain, not just a single role. A common trap is assuming `roles/run.admin` alone is sufficient, or confusing the Cloud Build service account with the runtime service account. Remember the mnemonic: "Admin to deploy, User to impersonate."

Google ACE Deploying and implementing a cloud solution Practice Question

This ACE practice question tests your understanding of deploying and implementing a cloud solution. 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 builds a container image and pushes it to Artifact Registry. The next step needs to deploy the image to Cloud Run. The pipeline runs as the Cloud Build service account. What minimum permission does the Cloud Build SA need for the deployment step?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "minimum / minimize"

    Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

Question 1hardmultiple choice
Full question →

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

`roles/run.admin` and `roles/iam.serviceAccountUser` on the Cloud Run runtime service account.

The Cloud Build service account needs `roles/run.admin` to deploy services to Cloud Run, but it also requires `roles/iam.serviceAccountUser` on the Cloud Run runtime service account (the identity the Cloud Run service runs as) because the deployment step impersonates that runtime service account to create or update the service. Without the `iam.serviceAccountUser` permission, the deployment fails with a permission denied error, even if the Cloud Build SA has full Cloud Run admin rights.

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.

  • `roles/run.admin` only.

    Why it's wrong here

    run.admin grants Cloud Run management permissions but does not include `iam.serviceAccounts.actAs`, which is required to specify the runtime service account.

  • `roles/run.admin` and `roles/iam.serviceAccountUser` on the Cloud Run runtime service account.

    Why this is correct

    run.admin manages Cloud Run services. iam.serviceAccountUser (which grants `iam.serviceAccounts.actAs`) allows the Cloud Build SA to configure which SA Cloud Run runs as — both are required.

    Clue confirmation

    The clue word "minimum / minimize" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • `roles/owner` to ensure all necessary permissions are covered.

    Why it's wrong here

    Owner violates least privilege. The specific permissions needed are well-defined; granting owner is unnecessary and insecure.

  • `roles/cloudbuild.builds.editor` on the Cloud Run project.

    Why it's wrong here

    This role grants Cloud Build management permissions, not Cloud Run deployment permissions.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the nuance that deploying to Cloud Run requires not just Cloud Run permissions but also the ability to impersonate the runtime service account, leading candidates to incorrectly choose `roles/run.admin` alone.

Detailed technical explanation

How to think about this question

Under the hood, when Cloud Build deploys to Cloud Run, it uses the Cloud Run Admin API to create or update the service, which requires `run.services.create` and `run.services.update` (covered by `roles/run.admin`). However, the API call also needs to set the runtime service account identity via the `spec.template.spec.serviceAccountName` field, which triggers an IAM check for `iam.serviceAccounts.actAs` on that runtime service account — this is granted by `roles/iam.serviceAccountUser`. In real-world scenarios, if the runtime service account is in a different project, the `iam.serviceAccountUser` permission must be granted cross-project, which is a common oversight.

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 ACE 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 ACE 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 ACE question test?

Deploying and implementing a cloud solution — This question tests Deploying and implementing a cloud solution — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: `roles/run.admin` and `roles/iam.serviceAccountUser` on the Cloud Run runtime service account. — The Cloud Build service account needs `roles/run.admin` to deploy services to Cloud Run, but it also requires `roles/iam.serviceAccountUser` on the Cloud Run runtime service account (the identity the Cloud Run service runs as) because the deployment step impersonates that runtime service account to create or update the service. Without the `iam.serviceAccountUser` permission, the deployment fails with a permission denied error, even if the Cloud Build SA has full Cloud Run admin rights.

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

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

Are there clue words in this question I should notice?

Yes — watch for: "minimum / minimize". Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

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 ACE 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 ACE exam.