exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 902 discussion

Exam question from Amazon's AWS-SysOps
Question #: 902
Topic #: 1
[All AWS-SysOps Questions]

A company wants to store sensitive data in Amazon S3. The S3 bucket and its contents must be accessible only from the on-premises corporate network.
What should a SysOps administrator do to configure the S3 bucket policy statement?

  • A. Use a Deny effect with a condition based on the aws:sourceVpc key.
  • B. Use a Deny effect with a condition based on the NotIpAddress key.
  • C. Use an Allow effect with a condition based on the IpAddress key.
  • D. Use an Allow effect with a condition based on the s3:LocationConstraint key.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Drey
Highly Voted 2 years, 7 months ago
A. This would only deny a specific vpc. B. This would only deny a specific IP or subnet. D. s3:LocationConstraint would only allow a user for bucket creation on a specified region C. IpAddress under Condition would allow on-premises corporate network by stating it's subnet or IP, thus, the correct answer
upvoted 7 times
wahlbergusa
2 years, 7 months ago
Pay attention to "NotIPAddress" in "B. It would deny everything other than the requests coming from on prem subnet/CIDR. Hence the answer should be B.
upvoted 2 times
Cyril_the_Squirl
2 years, 6 months ago
Correct. The S3 bucket and its contents must be accessible only from the on-premises corporate network.
upvoted 1 times
...
...
sabrthor
2 years, 7 months ago
The answer is B. The contention is between 'implicit deny' vs 'explicit deny', and 'explicit deny' triumphs all in IAM world. By default, all requests are denied which is called 'implicit deny'. By allowing the onpremise IP CIDR in the condition, we have mentioned an 'explicit allow'. An 'explicit allow' can overcome 'implicit deny' which is the case with option C. But putting a 'explicit deny' overwrites all allows. Thus the answer is B. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html
upvoted 7 times
sabrthor
2 years, 7 months ago
Also to add in Option B, it states Deny all IPs unless they fall under X.X.X.X/Y (onpremise IP CIDR), since they are using NotIPAddress Condition.
upvoted 4 times
...
...
...
TroyMcLure
Highly Voted 2 years, 7 months ago
Correct Answer: B
upvoted 6 times
...
albert_kuo
Most Recent 9 months, 2 weeks ago
Selected Answer: C
For this scenario, you want to ensure that only requests originating from the on-premises corporate network are allowed access to the S3 bucket. To achieve this, you can create a bucket policy with an Allow effect and use the IpAddress condition to restrict access to the specified IP address range of the corporate network.
upvoted 1 times
albert_kuo
8 months, 2 weeks ago
Option B (Deny effect with a condition based on the NotIpAddress key) is not recommended because it denies access based on the inverse condition. It's generally better to explicitly allow trusted sources rather than trying to deny all possible sources.
upvoted 1 times
...
...
softarts
1 year, 9 months ago
should be C; Option B: deny ip non-on-premise network != allow ip from on-premise network
upvoted 1 times
...
Cyril_the_Squirl
2 years, 6 months ago
B is Correct.
upvoted 1 times
...
RicardoD
2 years, 7 months ago
B is the answer Use and explicit DENY if not from de desired IP
upvoted 3 times
...
nik351
2 years, 7 months ago
Answer is B
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago