Sub topic 2
Choosing an MFA Factor for the Root User
Assume the AWS account already exists and you can sign in to the AWS Management Console. You also need access to the root email address and a command line with AWS CLI credentials.
Choose a factor
Multi-factor authentication (MFA) requires a second proof of identity after a password. For the root user, choose a factor you can protect and recover safely.
| Factor | Best fit | Main consideration |
|---|---|---|
| Passkey | A device with a password manager or biometric unlock | Keep a recovery method available |
| Security key | Strong hardware-based protection | Buy and register a backup key |
| Authenticator app | A phone that can generate one-time codes | Protect the phone and store recovery details |
A passkey or security key usually gives stronger phishing resistance than a code from an authenticator app. Whichever option you choose, register a backup factor and store it separately.
Turn on MFA for the root user
Sign in to the console as the root user by choosing Root user on the sign-in page. Open the account menu, choose Security credentials, and find Multi-factor authentication (MFA). Add your passkey, security key, or authenticator app, then complete the verification prompts.
The root user is a special identity. It is not an IAM user and cannot be restricted by an IAM policy. MFA therefore protects an identity with exceptionally broad authority.
Avoid root access keys
Do not create long-term access keys for the root user. A leaked root key can control the entire account without a console MFA prompt. Use a separate identity for command-line and automation work.
Check the account summary:
aws iam get-account-summary \
--query 'SummaryMap.{RootMFA:AccountMFAEnabled,RootAccessKeys:AccountAccessKeysPresent}'Aim for RootMFA: 1 and RootAccessKeys: 0.
Use root only when required
Use root for account-level tasks that require it, such as changing certain account settings, closing the account, or recovering access. For normal administration, create a separate administrator identity, preferably through AWS IAM Identity Center. Assign administrator permissions temporarily when needed, then replace them with narrower permissions as your workload becomes clear.
Verify which identity the CLI is using:
aws sts get-caller-identityExercise
Why should daily AWS administration use a separate identity instead of the root user?
Show answer
A separate identity can use MFA, temporary credentials, audit trails, and narrower permissions without exposing the unrestricted root identity.