AWS Cloud Practitioner · Security and Compliance · easy

A cloud administrator creates a new AWS account. What are the recommended immediate security steps for the AWS account root user?

Published · Last updated · checked before publication — how we verify questions

Options

  • AShare the root password with all developers so they can troubleshoot permissions
  • BEnable MFA on root, delete root access keys, and use IAM roles dailyCorrect answer
  • CEmbed root access keys inside the company's public GitHub build scripts
  • DDisable password complexity rules so automated scripts can sign in as root

Answer: B. Enable MFA on root, delete root access keys, and use IAM roles daily

The root user has unrestricted access to everything in an AWS account and cannot be limited by IAM policies, so protecting it is the first task after account creation. The recommended steps are to enable multi-factor authentication on the root user, delete any root access keys (or never create them), and then do daily work with an IAM role, IAM user, or IAM Identity Center identity that follows least privilege. The root user is reserved for the small set of tasks that only it can perform, such as changing the account's support plan or closing the account. The common trap is to treat the root user as a convenient administrator. Programmatic access with long-term root keys is especially risky, because a leaked key gives an attacker complete control of the account. Option B matches the AWS shared responsibility guidance: you secure the credentials and access you manage.

Why the other options are wrong

  • A. Share the root password with all developers so they can troubleshoot permissions — This describes sharing the root password among many people. It removes individual accountability, since actions cannot be traced to a person, and it breaks least privilege by giving everyone unlimited access. Developers should get scoped IAM permissions instead.
  • C. Embed root access keys inside the company's public GitHub build scripts — This describes exposing root access keys in a public repository. Anyone who finds the keys gets full control of the account, and automated scanners find leaked keys quickly. It is the opposite of the advice to delete root access keys.
  • D. Disable password complexity rules so automated scripts can sign in as root — This describes weakening the password policy so scripts can sign in as root. Scripts should never use root; they should use IAM roles with temporary credentials. Weaker passwords also make the most powerful identity easier to compromise.

All Security and Compliance questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.