Question 390 of 507
Trust and security with Google CloudmediumMultiple ChoiceObjective-mapped

Cloud Digital Leader Trust and security with Google Cloud Practice Question

This GCDL practice question tests your understanding of trust and security with google cloud. 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.
```
gcloud projects set-iam-policy my-project policy.yaml
```
policy.yaml:
```
{
  "bindings": [
    {
      "role": "roles/compute.admin",
      "members": [
        "user:admin@example.com"
      ],
      "condition": {
        "title": "workstation_ip",
        "expression": "request.host == '203.0.113.1'"
      }
    }
  ]
}
```

Refer to the exhibit. A security engineer applies this IAM policy. What is the effect?

Question 1mediummultiple choice
Full question →

Exhibit

Refer to the exhibit.
```
gcloud projects set-iam-policy my-project policy.yaml
```
policy.yaml:
```
{
  "bindings": [
    {
      "role": "roles/compute.admin",
      "members": [
        "user:admin@example.com"
      ],
      "condition": {
        "title": "workstation_ip",
        "expression": "request.host == '203.0.113.1'"
      }
    }
  ]
}
```

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

Access is allowed only from the IP address 203.0.113.1.

The IAM policy shown in the exhibit includes a condition block that uses the `ipAddress` condition key with the `IpAddress` operator set to `203.0.113.1`. This restricts access to only requests originating from that specific IP address. All other conditions or permissions in the policy are effectively overridden by this explicit allow condition, meaning access is denied from any other IP address.

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.

  • Access is allowed only from the IP address 203.0.113.1.

    Why this is correct

    The condition 'request.host' evaluates the source IP address.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Access is allowed only to resources tagged with 'production'.

    Why it's wrong here

    Resource tags are not used in this condition.

  • Access is allowed only with two-factor authentication.

    Why it's wrong here

    Two-factor authentication is not referenced in the condition.

  • Access is allowed only during business hours.

    Why it's wrong here

    The condition does not include time attributes.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the distinction between a condition that allows only a specific IP versus a condition that allows access only to a specific resource tag or time window, leading candidates to confuse the condition key used (e.g., `ipAddress` vs. `resource.labels`).

Detailed technical explanation

How to think about this question

IAM conditions use the Common Expression Language (CEL) to evaluate attributes like source IP via the `gcp:sourceIp` attribute. The `IpAddress` operator supports CIDR notation, so a single IP like `203.0.113.1` is treated as a /32 mask. Under the hood, the policy engine evaluates the condition before granting access; if the condition fails, the entire allow statement is ignored, effectively denying access from any other IP. This is distinct from a deny rule, which would explicitly block other IPs.

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

Trust and security with Google Cloud — This question tests Trust and security with Google Cloud — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Access is allowed only from the IP address 203.0.113.1. — The IAM policy shown in the exhibit includes a condition block that uses the `ipAddress` condition key with the `IpAddress` operator set to `203.0.113.1`. This restricts access to only requests originating from that specific IP address. All other conditions or permissions in the policy are effectively overridden by this explicit allow condition, meaning access is denied from any other IP address.

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