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 225 discussion

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

An AWS account administrator created an IAM group and applied the following managed policy to require that each individual user authenticate using multi-factor authentication:

After implementing the policy, the administrator receives reports that users are unable to perform Amazon EC2 commands using the AWS CLI.
What should the administrator do to resolve this problem while still enforcing multi-factor authentication?

  • A. Change the value of aws:MultiFactorAuthPresent to true.
  • B. Instruct users to run the aws sts get-session-token CLI command and pass the multi-factor authentication --serial-number and --token-code parameters. Use these resulting values to make API/CLI calls.
  • C. Implement federated API/CLI access using SAML 2.0, then configure the identity provider to enforce multi-factor authentication.
  • D. Create a role and enforce multi-factor authentication in the role trust policy. Instruct users to run the sts assume-role CLI command and pass --serial-number and --token-code parameters. Store the resulting values in environment variables. Add sts:AssumeRole to NotAction in the policy.
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
halfway
Highly Voted 3 years, 7 months ago
B https://aws.amazon.com/premiumsupport/knowledge-center/authenticate-mfa-cli/
upvoted 15 times
...
DahMac
Highly Voted 3 years, 6 months ago
Only B is designed to work with CLI and keep MFA. Add this to your credentials $ aws sts get-session-token --serial-number arn-of-the-mfa-device --token-code code-from- token and an example of a CLI MFA call after updating your credentials $ aws s3 ls --profile mfa
upvoted 8 times
...
pal40sg
Most Recent 1 year, 11 months ago
Selected Answer: B
Agree with B
upvoted 1 times
...
jishrajesh
2 years, 4 months ago
B is correct
upvoted 1 times
...
sapien45
2 years, 9 months ago
Selected Answer: B
great link
upvoted 1 times
...
ShortRound
2 years, 11 months ago
Selected Answer: B
the link to the doc is right. B
upvoted 1 times
...
Reki__6
3 years ago
I think it is D
upvoted 1 times
...
Radhaghosh
3 years, 3 months ago
Answer is B get-session-token [--duration-seconds <value>] [--serial-number <value>] [--token-code <value>] [--cli-input-json <value>] [--generate-cli-skeleton <value>]
upvoted 1 times
...
sanjaym
3 years, 6 months ago
B 100%
upvoted 4 times
...
cldy
3 years, 7 months ago
B. - correct.
upvoted 4 times
...
DayQuil
3 years, 7 months ago
Answer: B
upvoted 7 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