Question 458 of 510
Security EngineeringhardMultiple ChoiceObjective-mapped

Quick Answer

The correct choice is the one identifying that the Allow statement’s IP address condition uses a private IP range, which is ineffective for internet-facing buckets. This is because private IP ranges like 10.0.0.0/8 or 192.168.0.0/16 are non-routable on the public internet; any request from a public IP will fail the condition, effectively denying all external access, but the real S3 bucket policy private IP vulnerability is that the condition cannot be enforced for internet traffic, leaving the bucket either inaccessible or open to misconfiguration. On the CompTIA SecurityX CAS-004 exam, this tests your understanding of AWS IAM policy evaluation logic and the common trap of assuming private IPs provide security for public resources—a classic “security theater” mistake. A helpful memory tip: “Private IPs are for internal networks, not internet gatekeepers—if the bucket faces the web, a private IP condition is just a broken lock.”

CAS-004 Security Engineering Practice Question

This CAS-004 practice question tests your understanding of security engineering. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. 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.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::corporate-data/*",
      "Condition": {
        "IpAddress": {
          "aws:SourceIp": "10.0.0.0/8"
        }
      }
    },
    {
      "Effect": "Deny",
      "Principal": "*",
      "Action": "s3:*",
      "Resource": "arn:aws:s3:::corporate-data/*",
      "Condition": {
        "Bool": {
          "aws:SecureTransport": "false"
        }
      }
    }
  ]
}
```

A security engineer is reviewing an S3 bucket policy for a bucket named 'corporate-data'. The policy is shown. Which of the following describes a vulnerability in this configuration?

Question 1hardmultiple choice
Full question →

Exhibit

Refer to the exhibit.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::corporate-data/*",
      "Condition": {
        "IpAddress": {
          "aws:SourceIp": "10.0.0.0/8"
        }
      }
    },
    {
      "Effect": "Deny",
      "Principal": "*",
      "Action": "s3:*",
      "Resource": "arn:aws:s3:::corporate-data/*",
      "Condition": {
        "Bool": {
          "aws:SecureTransport": "false"
        }
      }
    }
  ]
}
```

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 Allow statement's IP address condition uses a private IP range, which is ineffective for internet-facing buckets

Option C is correct because the Allow statement in the S3 bucket policy restricts access to a private IP address range (e.g., 10.0.0.0/8 or 192.168.0.0/16), which is non-routable on the public internet. Since the bucket is internet-facing, this condition is ineffective—any request from a public IP will fail the condition, effectively denying all external access, but the real vulnerability is that the policy relies on a private IP range that cannot be enforced for internet traffic, leaving the bucket either inaccessible or misconfigured. This misconfiguration can lead to unintended access if the condition is bypassed or if the bucket is intended to be public.

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 Deny statement allows anonymous uploads over HTTP

    Why it's wrong here

    The Deny statement denies all actions when SecureTransport is false.

  • The Deny statement allows any anonymous user to upload objects to the bucket

    Why it's wrong here

    The Deny statement denies all actions, not just uploads.

  • The Allow statement's IP address condition uses a private IP range, which is ineffective for internet-facing buckets

    Why this is correct

    Private IP ranges (10.0.0.0/8) are not source IPs from the internet; thus the condition never matches, making the Allow statement useless.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The Allow statement permits access over insecure HTTP

    Why it's wrong here

    The Allow statement does not specify SecureTransport; it only checks IP. The Deny statement denies insecure transport.

Common exam traps

Common exam trap: answer the scenario, not the keyword

CompTIA often tests the misconception that private IP ranges can be used to restrict access to internet-facing S3 buckets, when in fact S3 only evaluates public source IPs, making such conditions ineffective or overly restrictive.

Detailed technical explanation

How to think about this question

S3 bucket policies use the aws:SourceIp condition key to restrict access based on IP addresses, but private IP ranges (RFC 1918) are not visible to S3 because they are translated by NAT or lost at the internet gateway; S3 only sees the public IP of the request. In a real-world scenario, an administrator might copy a policy from an internal VPC endpoint configuration, mistakenly applying private IP restrictions to a public bucket, which either blocks all legitimate traffic or leaves the bucket open if the condition is removed. The aws:SecureTransport condition is a separate Boolean check that enforces HTTPS, but it does not affect IP-based restrictions.

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 security administrator must allow nursing staff to reach a patient records server while blocking access from the guest Wi-Fi VLAN. After applying an extended ACL, traffic is still blocked from nursing workstations. The ACL was applied outbound instead of inbound on the wrong interface. Questions like this test ACL direction and placement rules.

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 CAS-004 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 CAS-004 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 CAS-004 question test?

Security Engineering — This question tests Security Engineering — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The Allow statement's IP address condition uses a private IP range, which is ineffective for internet-facing buckets — Option C is correct because the Allow statement in the S3 bucket policy restricts access to a private IP address range (e.g., 10.0.0.0/8 or 192.168.0.0/16), which is non-routable on the public internet. Since the bucket is internet-facing, this condition is ineffective—any request from a public IP will fail the condition, effectively denying all external access, but the real vulnerability is that the policy relies on a private IP range that cannot be enforced for internet traffic, leaving the bucket either inaccessible or misconfigured. This misconfiguration can lead to unintended access if the condition is bypassed or if the bucket is intended to be public.

What should I do if I get this CAS-004 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

Same concept, more angles

1 more ways this is tested on CAS-004

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Refer to the exhibit. A cloud security engineer is reviewing an AWS S3 bucket policy. What security issue does the policy contain?

hard
  • A.No server-side encryption is specified
  • B.Public read access is allowed
  • C.No version ID is specified in the resource
  • D.No logging is enabled for the bucket

Why B: The policy allows any principal ('*') to perform s3:GetObject on the bucket, making the bucket publicly readable. This exposes objects to anyone on the internet. No encryption, logging, or versioning issues are indicated by this JSON snippet.

Keep practising

More CAS-004 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 CAS-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 CAS-004 exam.