🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
HTML MASTER CLASS /// LEARN TAGS /// BUILD STRUCTURE /// SEMANTIC WEB /// HTML MASTER CLASS /// LEARN TAGS ///

The Keys to the Kingdom in Cloud Computing

Learn about The Keys to the Kingdom in this comprehensive Cloud Computing tutorial. Why the Root account is dangerous and how to protect it.

Total XP: 0|💻 cloud XP: 0

Skill Matrix

UNLOCK NODES BY LEARNING NEW TAGS.

Select an unlocked node to view details root

🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

1The God Mode Problem

The AWS Root account is created with the email address used to open the AWS account. Unlike IAM users, the Root user cannot have its permissions restricted by IAM policies. It can close the account, change support plans, and access billing. If it's compromised, your business is compromised.

2The Layered Defense

Security is about layers. A strong password is layer one. MFA is layer two. The principle of least privilege (using IAM instead of Root) is layer three. By combining these, you exponentially reduce your attack surface.

3Step-by-Step Breakdown

The Root Account. The AWS Root account has unrestricted, undeletable access to everything in your account, including billing.

Stop Using Root. The very first thing you should do with a new AWS account is create an Admin IAM user, and stop using Root.

What is MFA?. Multi-Factor Authentication requires something you know (password) AND something you have (a device).

Enabling MFA on Root. You must enable MFA on your root account immediately. It is the single most important security step.

Delete Root Access Keys. Never generate programmatic access keys for the Root account. If they exist, delete them.

Root Best Practice. What is the recommended best practice for the AWS Root user account?

  • Use it for daily admin tasks
  • Enable MFA, create an IAM Admin, and never use Root again
  • Share the password with your team

Enforcing MFA via Policy. You can write IAM policies that deny access to resources unless the user authenticated with MFA.

Hardware vs Virtual. Virtual MFA runs on a phone. Hardware MFA (like a YubiKey) is a physical device and is more secure against phishing.

Account Recovery. If you lose your MFA device, AWS Support requires identity verification (phone, email) to restore root access.

Completion. Your AWS account foundations are now secure.

Pascual Vila

Pascual Vila

Frontend Instructor // Code Syllabus

Common Pitfalls & Errors

The Error //

Leaving the root account without MFA enabled

aws iam enable-mfa-device --user-name root --serial-number <mfa-device-arn> \ --authentication-code1 <code1> --authentication-code2 <code2>

The Solution //

The root user can do anything in the account, including deleting it — a password alone is nowhere near enough protection for that level of access. Enable MFA on root (a hardware key or virtual MFA device) immediately after account creation, before doing anything else.

The Error //

Storing the only MFA device or its backup codes in the same place as the root password

// Store root password and MFA backup codes in separate secure locations, // not the same password manager entry or the same physical safe

The Solution //

If both the root password and the MFA device/backup codes are stored together (e.g. the same password manager entry, the same physical location), compromising one source compromises both factors at once, defeating the purpose of MFA. Keep them in genuinely separate places.

Lesson Glossary

[01]Root User

The identity that is created when you first open an AWS account, possessing unrestricted access.

Code Preview
// Root User context

[02]MFA

Multi-Factor Authentication; requires a second form of verification beyond just a password.

Code Preview
// MFA context

[03]Virtual MFA App

A software application that generates time-based one-time passwords (TOTP).

Code Preview
// Virtual MFA App context

[04]GetSessionToken

An STS API call used to get temporary credentials for users authenticated with MFA.

Code Preview
// GetSessionToken context

Continue Learning