Courseiva
Design for New Solutions →hardMultiple Choice

SAP-C02 Design for New Solutions Practice Question

Exhibit

Refer to the exhibit.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::example-bucket/*",
      "Condition": {
        "IpAddress": {
          "aws:SourceIp": "203.0.113.0/24"
        }
      }
    }
  ]
}
```

A Solutions Architect is reviewing the IAM policy shown in the exhibit. The policy is attached to an IAM user. Which of the following is true about this policy?

⚠ Common exam trap

Many candidates confuse an `Allow` with a condition for an implicit `Deny`—they incorrectly assume the policy explicitly denies access from outside the IP range, when in fact it simply does not grant permission, and an explicit deny would require a separate `Deny` statement.

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 policy allows s3:GetObject on example-bucket only from the specified IP range.

The IAM policy uses a `Condition` block with `IpAddress` to restrict the `s3:GetObject` action on `example-bucket` to requests originating from the specified IP range. The `Effect` is `Allow`, so the policy grants the `s3:GetObject` permission only when the source IP matches the condition, effectively limiting access to that range.

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 policy allows s3:GetObject on example-bucket only from the specified IP range.

    Why this is correct

    The policy's Condition block uses aws:SourceIp with an IpAddress operator, so the s3:GetObject Allow statement applies only to requests originating from the listed CIDR range; requests from other addresses are not permitted by this statement.

  • ✗

    The policy denies access if the source IP is not in the specified range.

    Why it's wrong here

    A NotIpAddress condition inside a Deny statement blocks requests from outside the range, so this describes the policy's effect accurately — but the stem asks which statement is true, and this option misreads the exhibit's actual condition operator or effect. It is tempting because NotIpAddress with Deny is a common perimeter pattern.

  • ✗

    The policy is invalid because the Resource is not specific enough.

    Why it's wrong here

    IAM policies accept wildcards in the Resource element, so an ARN containing * is valid and not grounds for rejection. Specificity is tempting because least privilege favours narrow ARNs, but that is a security recommendation, not a syntax requirement, and the policy parses and evaluates normally.

  • ✗

    The policy allows all S3 actions on all buckets.

    Why it's wrong here

    An S3 policy granting "s3:*" on "Resource": "*" also needs the bucket-level actions to target bucket ARNs; the exhibit's Resource element scopes only object ARNs, so bucket operations such as ListBucket are denied. It tempts because wildcard actions genuinely cover every S3 API operation when paired with correctly matching resource ARNs.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This SAP-C02 question is part of Courseiva's 984-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services 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 SAP-C02 exam.