CLF-C02 ยท Identity and access management
Protecting the root user
What the root user is, tasks only the root user can perform, and protection steps: MFA, no access keys, strong password, daily work with other identities.
Key points
- Root user: created with the account (email address and password), with complete access to every service and resource.
- Use only when required: closing a standalone account, changing root email or password, restoring an administrator's lost IAM permissions, enabling MFA delete on an S3 bucket.
- Protect with MFA, a strong password, no access keys.
- Daily work: an administrative user in IAM Identity Center or IAM.
Source: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html
Practice questions
What credentials does the AWS account root user sign in with?
- An IAM user name and the account ID
- The email address and password used to create the account
- An access key ID and secret access key
- A permission set assigned in IAM Identity Center
Show answer
Answer: B. The email address and password used to create the account
The root user signs in with the email address and password used to create the account. It is not an IAM user in a group, and access keys are used for programmatic access, not console sign-in.
Which actions are recommended to protect the root user?
- Register an MFA device for the root user
- Create root access keys for use in deployment scripts
- Delete or avoid creating access keys for the root user
- Share the root password with every administrator
- Use the root user for daily console work to save time
Show answer
Answer: A. Register an MFA device for the root user, C. Delete or avoid creating access keys for the root user
Register MFA for the root user and do not keep root access keys; everyday administration belongs to other identities. Sharing root credentials with the team or using root for routine work both raise the risk of full account compromise.
Because the root user has full access, AWS recommends using it for everyday administrative tasks.
Show answer
Answer: False
False. AWS strongly recommends not using the root user for everyday tasks. Create an administrative user, for example in IAM Identity Center, and keep root for the tasks that only it can perform.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
