D-ECS-DS-23 · Question #167
Based on the following bucket policy configured on an ECS cluster, what can user1 do?
The correct answer is D. user1 can read any object that is contained in bucket1 from anywhere except from IP range. Option D is correct because the bucket policy grants user1 read-only access (e.g., GetObject) and uses an IP condition to deny access from the 10.56.81.0/24 range - meaning user1 can read from any IP except that subnet. Why the distractors are wrong: A & B are wrong because the…
Question
Based on the following bucket policy configured on an ECS cluster, what can user1 do?
Options
- Auser1 can modify any object that is contained in bucket1 from anywhere except from IP range
- Buser1 can modify any object that is contained in bucket1 only from IP range 10.56.81.0/24
- Cuser1 can read any object that is contained in bucket1 only from IP range 10.56.81.0/24
- Duser1 can read any object that is contained in bucket1 from anywhere except from IP range
How the community answered
(31 responses)- A3% (1)
- B10% (3)
- C19% (6)
- D68% (21)
Explanation
Option D is correct because the bucket policy grants user1 read-only access (e.g., GetObject) and uses an IP condition to deny access from the 10.56.81.0/24 range - meaning user1 can read from any IP except that subnet.
Why the distractors are wrong:
- A & B are wrong because the policy grants read permissions (like
GetObject), not write/modify permissions (likePutObjectorDeleteObject) - no modification capability exists. - C is wrong about the direction of the IP restriction: the IP range
10.56.81.0/24is the excluded range, not the only allowed range. C and B both flip the logic of the condition.
Memory tip: When you see an IP-based deny condition in a bucket policy, think of it as a blocklist - everything is allowed except the listed range. If the condition were an allow-only, it would be an allowlist (only that range works). The word "except" in the answer is your signal that a Deny or NotIpAddress condition is in play.
Topics
Community Discussion
No community discussion yet for this question.