Question 15 of 506
Solving business challenges with MLmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is that the service account can only access AI Platform resources whose names start with 'projects/ml-'. This is because the IAM condition uses the `resource.name.startsWith` key, which evaluates the resource name prefix against the specified string, effectively scoping the granted permissions to only those Vertex AI resources—such as models, endpoints, or training jobs—that begin with that exact path. On the Google Professional Machine Learning Engineer exam, this tests your understanding of IAM conditions for resource name patterns, a common scenario where you must restrict access to a subset of resources within a project or across multiple projects. A frequent trap is confusing `startsWith` with `equals` or forgetting that the condition applies to the resource name, not the project ID. Memory tip: think of it as a “prefix passport”—the resource name must show the right ID card at the door.

PMLE Solving business challenges with ML Practice Question

This PMLE practice question tests your understanding of solving business challenges with ml. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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.

Exhibit

Refer to the exhibit.

{
  "bindings": [
    {
      "role": "roles/aiplatform.user",
      "members": ["serviceAccount:ml-sa@my-project.iam.gserviceaccount.com"],
      "condition": {
        "title": "project_prefix",
        "expression": "resource.name.startsWith('projects/ml-')"
      }
    }
  ]
}

Refer to the exhibit. This IAM policy is applied at the project level. What is the effect of the condition?

Question 1mediummultiple choice
Full question →

Exhibit

Refer to the exhibit.

{
  "bindings": [
    {
      "role": "roles/aiplatform.user",
      "members": ["serviceAccount:ml-sa@my-project.iam.gserviceaccount.com"],
      "condition": {
        "title": "project_prefix",
        "expression": "resource.name.startsWith('projects/ml-')"
      }
    }
  ]
}

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

The service account can only access AI Platform resources that start with 'projects/ml-'

Option A is correct because the condition block uses the `resource.name.startsWith` condition key to restrict access to AI Platform resources whose names begin with `projects/ml-`. This means the service account can only interact with AI Platform resources (such as models, jobs, or endpoints) that have a resource name starting with that prefix, effectively scoping the permission to a specific set of projects or resources.

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.

  • The service account can only access AI Platform resources that start with 'projects/ml-'

    Why this is correct

    Condition on resource name limits access to resources with that prefix.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The service account can only be used in projects whose ID starts with 'ml-'

    Why it's wrong here

    The condition is on resource name, not project ID.

  • The role is granted only if the project's name contains 'ml-'

    Why it's wrong here

    Resource name refers to the AI Platform resource, not the project.

  • The condition is ignored because conditions are not supported for service accounts

    Why it's wrong here

    Conditions are supported for any member.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the distinction between resource-level conditions (like `resource.name`) and identity-level conditions (like `principal` or `request.auth`), and candidates mistakenly apply the condition to the service account's project ID instead of the target resource's name.

Detailed technical explanation

How to think about this question

IAM conditions use Common Expression Language (CEL) to evaluate attributes like `resource.name` or `resource.service`. The `startsWith` method performs a prefix match on the full resource name, which for AI Platform follows the pattern `projects/{project-id}/locations/{location}/...`. This allows fine-grained access control, such as allowing a service account to only manage models in a specific project or region, without needing separate roles per project.

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

Solving business challenges with ML — This question tests Solving business challenges with ML — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The service account can only access AI Platform resources that start with 'projects/ml-' — Option A is correct because the condition block uses the `resource.name.startsWith` condition key to restrict access to AI Platform resources whose names begin with `projects/ml-`. This means the service account can only interact with AI Platform resources (such as models, jobs, or endpoints) that have a resource name starting with that prefix, effectively scoping the permission to a specific set of projects or resources.

What should I do if I get this PMLE 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

Keep practising

More PMLE practice questions

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