Question 661 of 986
How to Describe an S3 Bucket Policy Effect
Exhibit
Refer to the exhibit.
```
{
"policy": {
"effect": "Deny",
"action": ["s3:GetObject"],
"resource": "arn:aws:s3:::data-bucket/*",
"condition": {
"IpAddress": {
"aws:SourceIp": "192.0.2.0/24"
}
}
}
}
```A data analyst is reviewing a data lake access policy that controls access to a data lake. The analyst wants to communicate that the current policy restricts data downloads to a specific IP range. Which of the following best describes the policy's effect?
Quick Answer
The correct answer is that the policy restricts data downloads to a specific IP range. This is achieved through an S3 bucket policy that includes a condition key like `aws:SourceIp` paired with a CIDR block, which explicitly limits the `s3:GetObject` action to requests originating only from that authorized network range. On the CompTIA Data+ DA0-001 exam, this tests your ability to interpret policy statements and understand how conditions enforce access control, a common scenario when securing a data lake. A frequent trap is confusing an allow policy with a deny policy—remember that a condition restricting IPs is an explicit allow only for those addresses, not a blanket block. For a quick memory tip, think "SourceIp locks the download spot"—the source IP condition pinpoints exactly where data can be pulled from.
⚠ Common exam trap
Candidates often confuse the policy's effect with a blanket denial (Option B) or misinterpret the restriction as applying to uploads (Option D), when the policy specifically targets downloads and allows them only from a defined IP range.
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 restricts data downloads to a specific IP range.
The access policy explicitly restricts data downloads to a specific IP range by using a condition in the policy statement, such as a source IP address with a CIDR block. This means only requests originating from IP addresses within that range are allowed to perform the download action, effectively limiting downloads to authorized network locations.
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 all users to download data.
Why it's wrong here
The effect is Deny, not Allow.
- ✗
The policy denies data downloads to all users.
Why it's wrong here
It denies except for the specified IP range.
- ✓
The policy restricts data downloads to a specific IP range.
Why this is correct
The Deny with condition effectively allows only that IP range.
- ✗
The policy allows data uploads from a specific IP range.
Why it's wrong here
The action is GetObject (download), not PutObject (upload).
Visual reference
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 →
Same concept, more angles
2 more ways this is tested on DA0-002
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. A data analyst encounters the above error log when trying to connect to a database. The analyst needs to explain the issue to the database administrator. Which of the following correctly describes the problem?
medium- ✓ A.The database connection pool has reached its maximum limit.
- B.The database table is corrupted.
- C.The database server is out of disk space.
- D.The database authentication credentials are invalid.
Why A: In this scenario of a database connection failure, the most likely cause is that the connection pool has reached its maximum limit. This means all available connections are in use, preventing new connections. The other options are less common causes for such connection issues.
Variation 2. Refer to the exhibit. A data analyst is unable to access the dataset during weekends. Based on the policy, what is the most likely reason?
easy- A.The analyst's role is not in the list
- B.The policy is misconfigured
- C.The access condition requires being on the internal network
- ✓ D.The condition restricts access to business hours only
Why D: The policy explicitly includes a condition that restricts access to business hours only (e.g., Monday–Friday, 9 AM–5 PM). Since the analyst is attempting to access the dataset during a weekend, the condition denies access regardless of the analyst's role or network location. This is a common attribute-based access control (ABAC) rule where time-based conditions are evaluated before granting permissions.
Last reviewed: Jun 11, 2026
This DA0-002 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 DA0-002 exam.
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.
Sign in to join the discussion.