Lesson 9 of 36 · see all lessons
  1. Start here: cloud concepts (domain 1, 24%)

    1. 1. Start here: the exam, the plan and what you already know
    2. 2. What the cloud is: benefits, service models and deployment models
    3. 3. AWS global infrastructure: Regions, Availability Zones and edge locations
    4. 4. Cloud economics: what you pay for on-premises vs in the cloud
    5. 5. The AWS Well-Architected Framework: six pillars
    6. 6. Moving to AWS: the Cloud Adoption Framework and migration strategies
  2. Security and identity (domain 2, 30%)

    1. 7. The shared responsibility model: who secures what
    2. 8. IAM basics: users, groups, roles and policies
    3. 9. Protecting the root user, MFA and credentials
    4. 10. Identity at scale: IAM Identity Center, federation and cross-account access
    5. 11. Encryption and keys: protecting data at rest and in transit
    6. 12. Threat protection: Shield, WAF, GuardDuty, Inspector and Security Hub
  3. Governance, ways of working and compute (domains 2 and 3)

    1. 13. Logging, auditing and compliance: CloudWatch, CloudTrail, Config and Artifact
    2. 14. Governing many accounts: Organizations, Control Tower and Service Catalog
    3. 15. Ways to use AWS: console, CLI, SDKs and infrastructure as code
    4. 16. Amazon EC2: virtual servers and instance types
    5. 17. Elasticity: Auto Scaling and Elastic Load Balancing
    6. 18. Containers and serverless: ECS, EKS, Fargate, Lambda and more
  4. Storage, databases and networking (domain 3, 34%)

    1. 19. Block and file storage: EBS, instance store, EFS and FSx
    2. 20. Amazon S3: buckets, storage classes and lifecycle policies
    3. 21. Hybrid storage, backup and disaster recovery
    4. 22. Databases: RDS, Aurora, DynamoDB, ElastiCache and more
    5. 23. Networking: VPCs, subnets, gateways and security layers
    6. 24. Connecting and delivering: Route 53, CloudFront, VPN and Direct Connect
  5. Analytics, AI, integration and more (domain 3)

    1. 25. Analytics services: Athena, Glue, Kinesis, Redshift and Quick
    2. 26. AI and machine learning services: SageMaker AI, Lex, Rekognition and Amazon Q
    3. 27. App integration and business apps: SQS, SNS, EventBridge, Connect and SES
    4. 28. Developer tools, end-user computing, Amplify and IoT
  6. Billing, pricing and support, then exam practice (domain 4, 12%)

    1. 29. Pricing models: On-Demand, Savings Plans, Reserved, Spot and Dedicated
    2. 30. Billing and cost tools: Budgets, Cost Explorer, Pricing Calculator and tags
    3. 31. AWS Support plans, Trusted Advisor and where to get help
    4. 32. Final review and exam day: every decision on one page
    5. 33. Mock exam 1
    6. 34. Mock exam 2 Exam Pack · $12
  7. Extra practice: mock exams 3 and 4

    1. 35. Mock exam 3 Exam Pack · $12
    2. 36. Mock exam 4 Exam Pack · $12
See the leaderboard

17 min

Protecting the root user, MFA and credentials

Lock down the root user, require MFA, set password policies and store secrets and keys properly.

By the end of this lesson you can

  • Name the tasks that only the root user can do
  • Protect the root user with MFA and no access keys
  • Choose an MFA type and set an IAM password policy
  • Pick AWS Secrets Manager or Parameter Store for an app's secrets

From earlier lessons · 1 of 2

An application on Amazon EC2 needs to write to an Amazon S3 bucket. What should give it access?

Pick one answer.

From earlier lessons · 2 of 2

A user's group policy allows ec2:TerminateInstances. Another policy attached to the user denies it. Can the user terminate instances?

Pick one answer.

The owner of Cedar Lane Books opened its AWS account years ago with her personal email address. That sign-in can do anything in the account. Its password is on a sticky note in the back office. A developer once made access keys for it and pasted them into a script. One leaked key, and every system Cedar Lane Books runs is exposed.

[3]

The root user

Exam depth: know it cold.

The root user is the first sign-in of every AWS account. It is the email address and password used to create the account. It has complete access to every service and resource in that account, and IAM policies in the account can't limit it.

That power makes it the most valuable target in the account. AWS's advice is plain. Don't use root for everyday work. Create an administrative user, for example in AWS IAM Identity Center, and work as that user. Sign in as root only for the few tasks that need it.

[75][82][84]

Tasks only the root user can do

Exam depth: know it cold.

This is AWS's current list, checked against the IAM User Guide.

  • Account: change the account's email address, root password or root access keys (for a standalone account). Close the account, or reopen one you closed.
  • Locked-out admins: restore IAM permissions when the only administrator removed their own.
  • Billing: turn on IAM access to the Billing and Cost Management console. View certain tax invoices.
  • AWS GovCloud (US): sign up for it.
  • Amazon EC2: register as a seller in the Reserved Instance Marketplace.
  • Amazon S3: turn on MFA delete for a bucket. Edit or delete a bucket policy that denies all principals, locking everyone out.
  • Amazon SQS: edit or delete a queue policy that denies all principals.

[84]

[84][90]

Which task requires signing in as the AWS account root user?

Pick one answer.

[84]

Protecting the root user

Exam depth: know it cold.

  • Turn on MFA. Multi-factor authentication (MFA) asks for a second proof, such as a code from your phone, after the password. AWS now requires MFA for the root user of every account type. You must register it within 14 days of your first sign-in attempt.
  • No root access keys. Access keys let programs act as root. Don't create them, and delete any that exist.
  • A strong, unique password, kept in a password manager.
  • A group email address owned by the business, not one person's inbox.
  • Daily work as an admin user, not as root.
  • Monitor root sign-ins, so any use raises an alert.

[82][83]

Put in order

Put Cedar Lane Books' move off the root user in order. Each step needs the one before it.

Drag, or focus an item and press Space, move with the arrow keys, then Space to drop.

  1. Use the admin user for daily work; keep root for root-only tasks
  2. Create an administrative user in IAM Identity Center
  3. Register an MFA device for the root user
  4. Sign out of root and sign in as the new admin user
  5. Sign in to the console as the root user

[82]

Exam depth: recognize it.

Companies with many accounts group them in AWS Organizations, which lesson 14 covers. There, you can centrally manage root access. The management account, which runs the organization, can remove the root password, access keys and MFA from the other accounts. New accounts start with no root credentials. A few root-only fixes, such as fixing a bucket policy that denies everyone, can then be done centrally.

[84]

A company has just created a new AWS account. Which TWO actions should it take first to protect the root user? Pick the option that lists both.

Pick one answer.

[82]

Root user: can do anything in the account. Its password: on a sticky note by the till. Picture: Retro pixel art, 16-bit video game style, bright palette.

MFA types

Exam depth: recognize it.

AWS supports three MFA types, for the root user and for IAM users.

TypeWhat it isPhishing-resistant?
Passkeys and security keys.FIDO-standard sign-in: a physical key you plug in or tap, or a passkey synced through a password manager.Yes, and AWS recommends them.
Virtual authenticator app.A phone app that shows a six-digit code that keeps changing.No.
Hardware TOTP token.A small device that shows a six-digit code. TOTP means time-based one-time password.No.

Each root user or IAM user can register up to eight MFA devices. Register more than one, so a lost phone doesn't lock you out.

[80]

A company wants the MFA type that best resists phishing for its administrators. Which MFA type should it choose?

Pick one answer.

[80]

IAM password policies

Exam depth: recognize it.

A password policy sets the rules for IAM users' console passwords across the account. Without a custom one, the default applies: at least 8 characters, three of four character types, and no expiry.

A custom policy can set:

  • Minimum length, from 6 to 128 characters.
  • Character types: uppercase, lowercase, numbers, symbols.
  • Expiry, from 1 to 1,095 days.
  • No reuse of the last 1 to 24 passwords.
  • Whether users may change their own password, and whether an admin must reset an expired one.

It can't lock users out after failed sign-ins, so pair it with MFA.

[81]

Access keys

Exam depth: know it cold.

Access keys let programs call AWS: the AWS Command Line Interface (CLI), the SDKs (code libraries) and the API. A key has two parts: an access key ID and a secret access key. You see the secret only once, when you create it.

Access keys are long-term credentials, so treat them like passwords:

  • Never put them in code or in files you share.
  • Rotate them, meaning replace them with new ones, for example when someone leaves. Each user can have two keys, so you can switch with no gap.
  • Better still, avoid them. Roles and other temporary credentials expire on their own, so there is nothing long-lived to leak.

[85][86][158]

[81]

Which credential goes whereRoot user: password + MFA, no keysAdmin user: daily work, MFAIAM user: password, maybe access keysRole: temporary credentialsSecrets Manager: DB passwords, API keysParameter Store: config valuesLocked away; used only forroot-only tasksApps use a role to fetchsecrets at run time

[82][87][158]

AWS Secrets Manager vs Parameter Store

Exam depth: know it cold.

Apps need passwords and settings, and hard-coding them in source code is a leak waiting to happen. AWS has two places to keep them.

AWS Secrets ManagerAWS Systems Manager Parameter Store
Built for.Secrets: database passwords, API keys, OAuth tokens.Configuration: settings, IDs, URLs, licence keys.
Automatic rotation.Yes, on a schedule.No.
Encryption.Always, with AWS KMS.Optional, with the SecureString type.
Cost.Per secret per month, plus API calls.Standard tier free; advanced tier billed.

Decision rule: a secret that must rotate automatically goes in Secrets Manager. Plain configuration, or the cheapest store, goes in Parameter Store.

[87][88][89]

Rendering diagram…
Credentials go to Secrets Manager. Plain configuration goes to Parameter Store.

[87]

Cedar Lane Books' website connects to its Amazon RDS database with a password. Security wants the password out of the code and changed automatically every 30 days. Which AWS service meets these requirements?

Pick one answer.

[87][89]

Exam-style practice

A company wants to turn on MFA delete for an Amazon S3 bucket that holds financial records. Who can turn on this setting?

Pick one answer.

[84]

A developer needs a central place to keep application settings such as endpoint URLs and environment names. Nothing needs rotating. Which option is the MOST cost-effective?

Pick one answer.

[87][88]

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 17

[80][81][82][84][87][89][90][158]

Worth keeping

  1. Root has complete access: MFA on, no access keys, and use it only for root-only tasks.
  2. Root-only: change root email or password, close the account, restore admin access, MFA delete on S3.
  3. Passkeys and security keys are the most phishing-resistant MFA type.
  4. Access keys are long-term: keep them out of code, rotate them, and prefer roles.
  5. Rotating secrets go in Secrets Manager; plain configuration goes in Parameter Store.

On the job

Cedar Lane Books moves the root email to a shared IT inbox and registers two security keys. The owner keeps one in the office safe. The script's root keys are deleted, and the database password moves into Secrets Manager.

For finance and project staff, the root user explains an odd rule. Some changes, such as closing an account, need a person with root access, not just admin rights. Plan who holds the root credentials before you need them.

[82]

Cedar Lane Books is about to open a separate AWS account for its European shop. Next lesson: how staff sign in once and reach every account, without a new IAM user in each.

Leaderboard

Loading…

50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (15)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [3]AWS: CLF-C02 Content Domain 2: Security and Compliance
  2. [75]AWS: How AWS enforcement code logic evaluates requests to allow or deny access
  3. [77]AWS: Use an IAM role to grant permissions to applications running on Amazon EC2 instances
  4. [80]AWS: AWS Multi-factor authentication in IAM
  5. [81]AWS: Set an account password policy for IAM users
  6. [82]AWS: Root user best practices for your AWS account
  7. [83]AWS: Multi-factor authentication for AWS account root user
  8. [84]AWS: AWS account root user
  9. [85]AWS: Temporary security credentials in IAM
  10. [86]AWS: Update access keys
  11. [87]AWS: AWS Systems Manager Parameter Store
  12. [88]AWS: Choosing parameter tiers in Parameter Store
  13. [89]AWS: What is AWS Secrets Manager?
  14. [90]AWS: Change AWS Support Plans
  15. [158]AWS: Manage access keys for IAM users