Courseiva
mediumMultiple Choice

CV0-004 Practice Question: Refer to the exhibit

Exhibit

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

Refer to the exhibit. What is the effect of this bucket policy?

⚠ Common exam trap

Candidates often confuse an Allow-with-Condition policy for a Deny policy — candidates see an IP restriction and assume everything else is blocked, when in fact the policy only grants read access from that range and says nothing about other principals or actions.

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

✓

It allows anyone to read objects in example-bucket only if they come from the specified IP range.

The bucket policy shown grants s3:GetObject (read) permission to Principal '*' (everyone) but wraps it in a Condition that restricts access to requests originating from the specified IP range using the aws:SourceIp condition key. Because the action is GetObject and the condition limits the source addresses, only readers coming from that CIDR block can retrieve objects. This is a classic allow-with-condition policy, not a deny or authentication requirement.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    It requires users to authenticate with AWS IAM before accessing the bucket.

    Why it's wrong here

    A bucket policy grants or denies access to principals directly and does not force IAM authentication; anonymous requests can succeed if the policy allows them. Requiring IAM authentication is the role of IAM policies or blocking public access settings.

  • ✓

    It allows anyone to read objects in example-bucket only if they come from the specified IP range.

    Why this is correct

    The bucket policy's Condition block restricts the Allow effect to requests originating from the named CIDR range, so anonymous read access succeeds only for source addresses inside that range. All other IPs are denied, satisfying the stem's constraint of limiting public reads to a specified network.

  • ✗

    It allows only the specified IP range to write objects.

    Why it's wrong here

    The policy's Action and Resource determine whether writes are permitted; an IP condition in the Principal or Condition restricts who may act, not the operation itself. Write-only restriction would need an explicit s3:PutObject action with no read actions granted.

  • ✗

    It denies all access to the bucket except from the specified IP range.

    Why it's wrong here

    A Deny statement with an IpNotIpAddress condition excludes only that range, leaving all other addresses unaffected unless a separate Allow exists. Denying everything except one range requires an explicit Deny on Principal '*' with that condition.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

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 CV0-004 question is part of Courseiva's 834-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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

This CV0-004 practice question is part of Courseiva's free CompTIA 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 CV0-004 exam.