exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 234 discussion

A company has mandated the use of multi-factor authentication (MFA) for all IAM users, and requires users to make all API calls using the CLI. However, users are not prompted to enter MFA tokens, and are able to run CLI commands without MFA. In an attempt to enforce MFA, the company attached an IAM policy to all users that denies API calls that have not been authenticated with MFA.

What additional step must be taken to ensure that API calls are authenticated using MFA?

  • A. Enable MFA on IAM roles, and require IAM users to use role credentials to sign API calls.
  • B. Ask the IAM users to log into the AWS Management Console with MFA before making API calls using the CLI.
  • C. Restrict the IAM users to use of the console, as MFA is not supported for CLI use.
  • D. Require users to use temporary credentials from the get-session token command to sign API calls.
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
awsguru1998
Highly Voted 2 years, 2 months ago
D. Require users to use temporary credentials from the get-session token command to sign API calls. In order to enforce MFA for API calls using the CLI, the company needs to require users to use temporary credentials obtained from the get-session-token command. This command will prompt the user to enter their MFA token, and will return temporary security credentials that include an MFA token. The user can then use these temporary credentials to sign API calls, which will ensure that the calls are authenticated using MFA. The temporary credentials will automatically expire after a set duration, ensuring that access is limited and secure.
upvoted 5 times
...
10cc6ba
Most Recent 9 months, 3 weeks ago
Selected Answer: D
D only
upvoted 1 times
...
Christina666
1 year, 9 months ago
Selected Answer: D
Using the temporary security credentials that the call returns, IAM users can then make programmatic calls to API operations that require MFA authentication. An incorrect MFA code causes the API to return an access denied erro
upvoted 3 times
...
Creature
1 year, 10 months ago
Selected Answer: D
Concur with D and I'll reference this document - https://docs.aws.amazon.com/cli/latest/reference/sts/get-session-token.html
upvoted 1 times
...
Gomer
2 years ago
Selected Answer: D
See my other response for justification for "D". I still wonder a little about "A". Not my field of expertise here, but I do know they do know they sometimes change syntax subtly to create a trick question.
upvoted 1 times
...
Gomer
2 years ago
I hope answer is "D" and this isn't a trick question. The actual API/CLI calls are GetSessionToken and "get-session-token", NOT "get-session" token (no 2nd dash) Real world examples: https://sts.amazonaws.com/?Version=2011-06-15&Action=GetSessionToken&... aws sts get-session-token --serial-number arn-of-the-mfa-device --token-code code-from-token...
upvoted 1 times
...
Vivec
2 years, 1 month ago
Selected Answer: D
The most appropriate step to ensure that API calls are authenticated using MFA is to require users to use temporary credentials from the get-session token command to sign API calls. This is because the get-session token command returns temporary security credentials consisting of an access key ID, a secret access key, and a session token that are valid only for a limited period of time. These credentials can be used to make API calls with MFA authentication.
upvoted 2 times
...
Spike2020
2 years, 2 months ago
Answer D: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_configure-api-require.html
upvoted 3 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