exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 129 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 129
Topic #: 1
[All AWS Certified Security - Specialty Questions]

To meet regulatory requirements, a Security Engineer needs to implement an IAM policy that restricts the use of AWS services to the us-east-1 Region.
What policy should the Engineer implement?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B

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
Samoanhulk
Highly Voted 3 years, 7 months ago
Answer is C.
upvoted 39 times
scuzzy2010
3 years, 7 months ago
I agree. Ref : https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_aws_deny-requested-region.html
upvoted 8 times
...
...
tobedeleted
Highly Voted 2 years, 6 months ago
Answer is C. B is Wrong. It's about EC2 instances. Whereas Questions is about ALL AWS Services. A is Wrong. It doesn't Explicitly DENY other Regions. D is Wrong. Because the NotAction element in a statement with "Effect": "Deny" to deny access to all of the listed resources except for the actions specified in the NotAction element.
upvoted 12 times
...
Raphaello
Most Recent 1 year, 3 months ago
Correct answer is C.
upvoted 2 times
...
Raphaello
1 year, 5 months ago
C The ask is not to all everything (*) in us-east-1; on opposite, it is to deny anything that is not requested in us-east-1. Therefore, it is C not A.
upvoted 2 times
...
chen0305_099
1 year, 8 months ago
cccccccccccccccccc
upvoted 1 times
...
mamila
1 year, 9 months ago
C for sure, it is denying any access to AWS services from all regions except us-east-1
upvoted 1 times
...
ITGURU51
2 years ago
A is the correct answer according to the following link: https://aws.amazon.com/blogs/security/easier-way-to-control-access-to-aws-regions-using-iam-policies/
upvoted 1 times
...
sudipta0007
2 years ago
Ans is A . ref : https://aws.amazon.com/blogs/security/easier-way-to-control-access-to-aws-regions-using-iam-policies/
upvoted 1 times
...
Shely
2 years ago
Answer should be A https://www.linkedin.com/pulse/aws-restrict-users-access-services-specific-region-using-xavier
upvoted 1 times
...
matrpro
2 years ago
A is the correct. one. You need and explicit allow to permit the action. C denies all the other regions explicitly but it does not allow NV either -> https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html
upvoted 1 times
...
sp951
2 years, 2 months ago
Its c because it denies all the other regions except us-east-1. you can still allow actions with option b bc there is no explicit deny
upvoted 1 times
...
ep007
2 years, 3 months ago
A is correct . https://aws.amazon.com/blogs/security/easier-way-to-control-access-to-aws-regions-using-iam-policies/
upvoted 1 times
...
awsmonkey
2 years, 5 months ago
A is correct, it will allow only in us-east-1 region. C as it is presented, will not allow anything, because it is still missing an Allow. Create a Role with that policy, see what happens.
upvoted 3 times
luis12345
2 years, 4 months ago
No, its C. By default, you can use any AWS region. If you want to restrict all access to a certain region, you must explicitly deny access in all regions BUT the one you want to allow. With A, i could still be able deploy in other regions
upvoted 1 times
awsmonkey
2 years, 4 months ago
By default, you cannot deploy in any region. It's called an implicit deny.
upvoted 1 times
...
...
Tofu13
1 year, 11 months ago
The question does not ask to give access to any server but to " restrict the use of AWS services to the us-east-1 Region". A allows only us-east-1 Region, but it is possible to create another policy that will allow access to a resource in a different Region. Hence, A is not explicitly restrictive. C is.
upvoted 1 times
Tofu13
1 year, 11 months ago
server -> service
upvoted 1 times
...
...
...
kwch791
2 years, 6 months ago
Answer is C
upvoted 2 times
...
knc
2 years, 7 months ago
Correct Ans: C This is an example of SCP which acts as Guardrails and should be implemented as explicit "Deny". And as it is talking about all aws resources, out of C and D, the answer should C as it is talking about AWS and not only ec2.
upvoted 4 times
...
Root_Access
2 years, 8 months ago
I'd go with C: explicit deny trumps everything else. Imagine you have explicit allow, allowing only one region, if you create more explicit allows, you can get access to more regions. But with an explicit deny, it doesnt matter how many explicit allows you create, new regions will be denied due to the explicit deny you created.
upvoted 3 times
...
cloud_collector
2 years, 9 months ago
Between A and C , I still believe the A is correct. Based on the below process, "no explicit allow" and "explicit deny" will lead to DENY action at the end. https://docs.aws.amazon.com/IAM/latest/UserGuide/images/PolicyEvaluationHorizontal111621.png In the Answer C , it will deny all the request when the destination is not "us-east-1", but not means it will allow the request go through if it go to "us-east-1".
upvoted 3 times
cloud_collector
2 years, 9 months ago
Based on FW ACL settings , if set acl as: # deny a.a.a.a # deny b.b.b.b # deny c.c.c.c if d.d.d.d come, it will also deny the d.d.d.d, because no allow for d.d.d.d be defined.
upvoted 1 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 ...