Question 458 of 500
Ensuring data protectionhardMultiple ChoiceObjective-mapped

Quick Answer

The answer is that Bob can view, create, and delete any object in bucket1. This is correct because an IAM condition applies only to the specific role binding where it is defined, not to other bindings in the same policy. In this scenario, the condition restricting access to the "reports/" prefix is attached solely to the objectViewer role, while Bob’s separate binding grants the roles/storage.objectAdmin role on the entire bucket1 without any condition. On the Google Professional Cloud Security Engineer exam, this tests your understanding that IAM conditions are scoped to individual role bindings, a common trap where candidates assume a condition applies globally across all roles in a policy. The key memory tip is: conditions are sticky to their binding, not to the resource—each role binding stands alone.

PCSE Ensuring data protection Practice Question

This PCSE practice question tests your understanding of ensuring data protection. 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

IAM policy for project my-project:

bindings:
- members:
  - user:alice@example.com
  - serviceAccount:sa-1@my-project.iam.gserviceaccount.com
  role: roles/storage.objectViewer
  condition:
    expression: resource.name.startsWith("projects/_/buckets/bucket1/objects/reports/")
- members:
  - user:bob@example.com
  role: roles/storage.objectAdmin
- members:
  - user:bob@example.com
  role: roles/compute.admin
- members:
  - serviceAccount:sa-1@my-project.iam.gserviceaccount.com
  role: roles/iam.workloadIdentityUser
- members:
  - serviceAccount:my-project@appspot.gserviceaccount.com
  role: roles/storage.objectAdmin

Refer to the exhibit. You are analyzing the IAM policy for a project. You need to ensure that only authenticated users can access objects in bucket1 under the prefix "reports/". Which of the following statements is correct?

Question 1hardmultiple choice
Full question →

Exhibit

IAM policy for project my-project:

bindings:
- members:
  - user:alice@example.com
  - serviceAccount:sa-1@my-project.iam.gserviceaccount.com
  role: roles/storage.objectViewer
  condition:
    expression: resource.name.startsWith("projects/_/buckets/bucket1/objects/reports/")
- members:
  - user:bob@example.com
  role: roles/storage.objectAdmin
- members:
  - user:bob@example.com
  role: roles/compute.admin
- members:
  - serviceAccount:sa-1@my-project.iam.gserviceaccount.com
  role: roles/iam.workloadIdentityUser
- members:
  - serviceAccount:my-project@appspot.gserviceaccount.com
  role: roles/storage.objectAdmin

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

Bob can view, create, and delete any object in bucket1.

Option C is correct because the IAM policy grants Bob the roles/storage.objectAdmin role on the entire bucket1, which includes permissions to view, create, and delete any object in the bucket. The condition restricting access to the "reports/" prefix applies only to the objectViewer role, not to Bob's role. Therefore, Bob has full administrative access to all objects in bucket1 without any prefix restriction.

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 condition on objectViewer also prevents alice from listing objects under reports/.

    Why it's wrong here

    The condition only restricts access to objects, not listing; listing is a different permission (storage.objects.list) which may be granted separately.

  • The service account sa-1 can view objects under reports/ in bucket1.

    Why it's wrong here

    Sa-1 has objectViewer with the condition, so it can only view objects under reports/, but the condition applies to its objectViewer role, not to its other roles.

  • Bob can view, create, and delete any object in bucket1.

    Why this is correct

    Bob has the objectAdmin role at the project level without conditions, granting him full control over all objects in bucket1.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Alice can only view objects under reports/ in bucket1.

    Why it's wrong here

    Alice's objectViewer role is conditioned to only objects under reports/, but bob has objectAdmin at the project level, which gives him full access to all objects, including those under reports/.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that a condition applied to one role binding automatically restricts all other role bindings for the same principal, leading candidates to incorrectly assume that Bob's objectAdmin role is limited by the condition on Alice's objectViewer role.

Detailed technical explanation

How to think about this question

In Google Cloud IAM, roles like roles/storage.objectAdmin include permissions such as storage.objects.create, storage.objects.delete, and storage.objects.update across the entire bucket unless a condition (e.g., resource.name.startsWith) is applied to the role binding. Conditions are evaluated at access time using Common Expression Language (CEL), and they can restrict specific permissions but do not automatically propagate to all roles bound to the same principal. For example, a condition on a custom role might allow writes only to a prefix, but if a broader role like objectAdmin is also granted without a condition, the broader permissions override the restriction for that principal.

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 media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

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

Ensuring data protection — This question tests Ensuring data protection — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Bob can view, create, and delete any object in bucket1. — Option C is correct because the IAM policy grants Bob the roles/storage.objectAdmin role on the entire bucket1, which includes permissions to view, create, and delete any object in the bucket. The condition restricting access to the "reports/" prefix applies only to the objectViewer role, not to Bob's role. Therefore, Bob has full administrative access to all objects in bucket1 without any prefix restriction.

What should I do if I get this PCSE 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 PCSE 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 PCSE 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 PCSE exam.