exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 359 discussion

A solutions architect must analyze and update a company's existing IAM policies prior to deploying a new workload. The solutions architect created the following policy:

What is the net effect of this policy?

  • A. Users will be allowed all actions except s3:PutObject if multi-factor authentication (MFA) is enabled.
  • B. Users will be allowed all actions except s3:PutObject if multi-factor authentication (MFA) is not enabled.
  • C. Users will be denied all actions except s3:PutObject if multi-factor authentication (MFA) is enabled.
  • D. Users will be denied all actions except s3:PutObject if multi-factor authentication (MFA) is not enabled.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
dmscountera
Highly Voted 3 years, 11 months ago
D. Users will be denied all actions except s3:PutObject if multi-factor authentication (MFA) is not enabled.
upvoted 86 times
crazyaboutazure
3 years, 10 months ago
key is NotAction here which says all resources but what mentioned against it. So all will be denied except when MFA is disabled
upvoted 2 times
crazyaboutazure
3 years, 10 months ago
And answer is D. similar situation at below link saying The following conditional example denies access to non-IAM actions if the user is not signed in using MFA https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_notaction.html
upvoted 3 times
crazyaboutazure
3 years, 10 months ago
{ "Version": "2012-10-17", "Statement": [{ "Sid": "DenyAllUsersNotUsingMFA", "Effect": "Deny", "NotAction": "iam:*", "Resource": "*", "Condition": {"BoolIfExists": {"aws:MultiFactorAuthPresent": "false"}} }] }
upvoted 2 times
...
...
...
noahsark
3 years, 9 months ago
Notes: Note: "Effect": "Deny" * = All resources NotAction:S3:PutObject = Except S3:PutObject Condition: aws:MultiFactorAuthPresent:false = If MFA is not enabled
upvoted 28 times
...
...
sic6sic
Highly Voted 3 years, 10 months ago
Guys, I think C is the correct answer here. The NoAction element means deny all except s3:PutObject. The condition BoolIfExists: "aws:MultiFactorAuthPresent": "false" deny the action when the user doesn't authenticate using MFA. Source: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_notaction.html https://aws.amazon.com/premiumsupport/knowledge-center/enforce-mfa-other-account-access-bucket
upvoted 14 times
lc76262
3 years, 10 months ago
C is correct, but really unclear way to use Boolean logic. AWS wants to confuse everyone unlike Azure.
upvoted 5 times
Microgen
3 years, 8 months ago
I regret moving from azure to aws
upvoted 3 times
...
...
DT_Exams
3 years, 1 month ago
Unless the answers changed since you wrote this, you chose C but your reasoning is D. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-multifactorauthpresent
upvoted 1 times
...
...
slackbot
Most Recent 2 years, 1 month ago
Selected Answer: C
it's C: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-multifactorauthpresent "Effect" : "Deny", "Condition" : { "BoolIfExists" : { "aws:MultiFactorAuthPresent" : "false" } } This combination of Deny, BoolIfExists, and false denies requests that are not authenticated using MFA. so if MFA is disabled - Put API is denied. D means - everything is denied if MFA is enabled... serioursly? and on a side note - who would allow PutObject without authing them?
upvoted 1 times
...
BECAUSE
2 years, 2 months ago
Selected Answer: D
D is the answer
upvoted 1 times
...
nVizzz
3 years ago
Selected Answer: C
Vote for C, because if multi-factor authentication (MFA) is not enabled you cannot use s3:PutObject.
upvoted 2 times
...
queen101
3 years ago
DDDDDD
upvoted 1 times
...
marklovesaws143
3 years ago
Selected Answer: D
DDDDDDDDDDDDDDDDDDDDDDD
upvoted 1 times
...
slcheng
3 years, 1 month ago
Selected Answer: D
vote for D
upvoted 1 times
...
amy_xie
3 years, 1 month ago
C is correct
upvoted 1 times
...
DriVen
3 years, 4 months ago
D !
upvoted 1 times
...
IrfanHossain
3 years, 6 months ago
Selected Answer: D
D will be correct
upvoted 1 times
...
joe2211
3 years, 7 months ago
Selected Answer: D
"This combination of Deny, BoolIfExists, and false denies requests that are not authenticated using MFA" => ans: D
upvoted 1 times
...
Ammart90
3 years, 8 months ago
the correct is D
upvoted 1 times
...
prex
3 years, 8 months ago
Selected Answer: D
D. Users will be denied all actions except s3:PutObject if multi-factor authentication (MFA) is not enabled.
upvoted 1 times
...
RathanKalluri
3 years, 8 months ago
Selected Answer: C
If MultiFactorAuthPresent is present/enabled but is not used, then deny all expect s3 PUT
upvoted 1 times
...
jd2
3 years, 8 months ago
Selected Answer: D
I believe it's D, because DenyAllUsersNotUsingMFA
upvoted 1 times
jd2
3 years, 8 months ago
NotAction is an advanced policy element that explicitly matches everything except the specified list of actions. Using NotAction can result in a shorter policy by listing only a few actions that should not match, rather than including a long list of actions that will match. When using NotAction, you should keep in mind that actions specified in this element are the only actions in that are limited. This, in turn, means that all of the applicable actions or services that are not listed are allowed if you use the Allow effect.
upvoted 2 times
...
...
soneM
3 years, 8 months ago
Selected Answer: D
the condition false means not enabled
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 ...