Question 17 of 500

Quick Answer

The correct answer is that the user can list objects because the condition is satisfied. This outcome hinges on how IAM conditions with IP address range work: the policy grants `storage.objects.list` to `user@example.com` with a condition requiring the request originate from within the `10.0.0.0/8` CIDR block, and the user’s IP `10.1.1.1` falls squarely inside that range, so the condition evaluates to true. On the Google Professional Cloud Security Engineer exam, this tests your ability to read a policy’s `condition` block and match a given IP against the specified CIDR—a common trap is forgetting that conditions are ANDed with the permission, so even if the user is valid, a mismatched IP denies access. A reliable memory tip is “CIDR check before access”: always verify the IP falls within the condition’s range, not just the user’s identity.

PCSE Practice Question: Configuring access within a cloud solution environment

This PCSE practice question tests your understanding of configuring access within a cloud solution environment. 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

{
  "bindings": [
    {
      "role": "roles/storage.admin",
      "members": ["user:admin@example.com"]
    },
    {
      "role": "roles/storage.objectViewer",
      "members": ["user:user@example.com"],
      "condition": {
        "title": "ip_restriction",
        "expression": "source.ip in ['10.0.0.0/8']"
      }
    }
  ]
}

Refer to the exhibit. An organization has the above IAM policy on a project. The user user@example.com is trying to view a list of objects in a bucket from IP address 10.1.1.1. What will be the result?

Question 1hardmultiple choice
Full question →

Exhibit

{
  "bindings": [
    {
      "role": "roles/storage.admin",
      "members": ["user:admin@example.com"]
    },
    {
      "role": "roles/storage.objectViewer",
      "members": ["user:user@example.com"],
      "condition": {
        "title": "ip_restriction",
        "expression": "source.ip in ['10.0.0.0/8']"
      }
    }
  ]
}

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 user can list objects because the condition is satisfied.

Option D is correct because the IAM policy grants the `storage.objects.list` permission to `user@example.com` with a condition that requires the request to come from an IP address within the `10.0.0.0/8` range. Since the user is accessing from `10.1.1.1`, which falls within that CIDR block, the condition evaluates to true, allowing the list operation.

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 user cannot list objects because the condition is evaluated as false.

    Why it's wrong here

    The condition is true for the given IP.

  • The user cannot list objects because IAM conditions do not support IP-based restrictions.

    Why it's wrong here

    IAM conditions do support source.ip attribute.

  • The user can list objects because they have inherited roles/storage.admin permissions from the admin.

    Why it's wrong here

    IAM policies do not inherit across users; only the listed members receive the roles.

  • The user can list objects because the condition is satisfied.

    Why this is correct

    The source IP is in the allowed range, so the role is granted.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that IAM conditions cannot restrict by IP address, or that a condition that appears to be a deny will automatically block access, when in fact the condition must be evaluated against the actual request context.

Detailed technical explanation

How to think about this question

IAM conditions in Google Cloud use the `gcp:sourceIp` condition key to restrict access based on the requester's IP address, evaluated against CIDR notation. The condition `gcp:sourceIp` supports both IPv4 and IPv6 ranges, and the evaluation is performed at the time of the API request, using the source IP of the HTTP request. This allows fine-grained access control, such as allowing list operations only from corporate VPN ranges.

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?

Configuring access within a cloud solution environment — This question tests Configuring access within a cloud solution environment — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The user can list objects because the condition is satisfied. — Option D is correct because the IAM policy grants the `storage.objects.list` permission to `user@example.com` with a condition that requires the request to come from an IP address within the `10.0.0.0/8` range. Since the user is accessing from `10.1.1.1`, which falls within that CIDR block, the condition evaluates to true, allowing the list operation.

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

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.