IAM Multi-Factor Authentication (MFA)
IAM Multi-Factor Authentication (MFA) is an added layer of account security used to verify users' identities by requiring them to provide two or more factors during the authentication process. MFA is a critical component of an AWS account's security and is especially vital when accessing AWS Management Console or using AWS CLI. Enabling MFA requires users to provide their regular AWS credentials (password and access key) and an additional authentication factor (typically a TOTP-compatible hardware or virtual device). MFA significantly reduces the risk of unauthorized access to your AWS resources, even in situations where user credentials may have been compromised. It is a best practice to enable MFA on all user accounts with management console access and privileged roles.
Guide: AWS IAM Multi-Factor Authentication (MFA)
AWS Identity and Access Management (IAM) multi-factor authentication (MFA) is a security feature that requires users to provide two or more forms of identification to access AWS resources. It combines a 'something you know' factor (like a password) and a 'something you have' factor (like a hardware MFA device).
Why is it Important:
IAM MFA is crucial because it adds an additional layer of security to the AWS Management Console, AWS CLI and AWS API operations. It protects your AWS resources by requiring users to validate their identities via multiple verification methods.
How It Works:
When a user signs in, they first enter their username and password. They're then prompted to enter an authentication code from their configured MFA device. To authenticate successfully, they must provide both the valid password and a valid MFA code.
Exam Tips:
Remember the following when answering questions about IAM MFA in an exam:
- MFA is mandatory for root accounts.
- Virtual MFA devices use software applications to generate MFA codes.
- Hardware MFA devices are available from AWS.
- MFA can be enabled for IAM users and root users.
- By activating MFA delete, you can protect your S3 buckets.
AWS Certified Solutions Architect - IAM Multi-Factor Authentication (MFA) Example Questions
Test your knowledge of IAM Multi-Factor Authentication (MFA)
Question 1
An organization wants IAM users in its account to access a specific S3 bucket only when they authenticate with MFA. You will attach a policy to the IAM users (not the bucket). Which policy condition should you use to enforce this requirement?
Question 2
A company wants to enforce 2-step verification for their AWS Management Console users. How should the IAM administrator set up Multi-Factor Authentication (MFA)?
Question 3
A company wants to use MFA for their AWS Management Console but don't want to invest in hardware MFA devices. Which alternative can the IAM administrator suggest?