Medium1 markMultiple Choice
AWS SAP-C02 · Question 58 · Domain 1.2: Security Controls
A company requires that all IAM users authenticate using Multi-Factor Authentication (MFA) before they can access any AWS APIs via the CLI. How can the Solutions Architect enforce this requirement globally across the AWS account?
A company requires that all IAM users authenticate using Multi-Factor Authentication (MFA) before they can access any AWS APIs via the CLI. How can the Solutions Architect enforce this requirement globally across the AWS account?
Answer options:
A.
Enable MFA in the AWS Management Console for all users.
B.
Attach an IAM policy to all users that denies all actions unless the aws:MultiFactorAuthPresent condition key is true.
C.
Use AWS Config to delete IAM users who do not have MFA enabled.
D.
Configure AWS IAM Identity Center (AWS SSO) to require MFA.
How to approach this question
Identify the IAM condition key for MFA.
Full Answer
B.Attach an IAM policy to all users that denies all actions unless the aws:MultiFactorAuthPresent condition key is true.✓ Correct
To enforce MFA for API/CLI access for IAM users, you must use an IAM policy with the `aws:MultiFactorAuthPresent` condition key set to `true`. Users must then use `sts:GetSessionToken` with their MFA code to get temporary credentials.
Common mistakes
Assuming enabling MFA in the console automatically protects the CLI.
Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7
75 questions · hints · full answers · grading
More questions from this exam
Q01A global enterprise is designing a multi-region network architecture connecting 50 AWS accounts a...HardQ02A company is migrating its hybrid network to AWS. They have two 10 Gbps AWS Direct Connect connec...HardQ03An enterprise has 100 AWS accounts in AWS Organizations. The security team mandates that all Amaz...MediumQ04A financial company requires that all EBS volumes, S3 buckets, and RDS databases be encrypted usi...EasyQ05An enterprise is designing a disaster recovery strategy for a critical application running on Ama...Hard
Expert