Topic 1 Question 234
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?
Enable MFA on IAM roles, and require IAM users to use role credentials to sign API calls.
Ask the IAM users to log into the AWS Management Console with MFA before making API calls using the CLI.
Restrict the IAM users to use of the console, as MFA is not supported for CLI use.
Require users to use temporary credentials from the get-session token command to sign API calls.
ユーザの投票
コメント(5)
- 👍 3Spike20202023/02/07
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.
👍 3awsguru19982023/02/12- 正解だと思う選択肢: 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.
👍 2Vivec2023/03/10
シャッフルモード