Concept
Authentication methods
The ways people and applications prove who they are to AWS: passwords, MFA, single sign-on and roles.
Root user sign-in
- Who uses it
- The account owner, for a few tasks
- How it works
- Email address and password, plus MFA
IAM user sign-in
- Who uses it
- Special cases inside one account
- How it works
- User name and password, plus MFA. Programs use access keys.
- Who uses it
- Your workforce, across many accounts
- How it works
- One sign-in to the AWS access portal, then choose an account
- Who uses it
- People who already have a company login
- How it works
- Their identity provider confirms who they are, and AWS gives temporary credentials
Cross-account IAM role
- Who uses it
- Users who need to work in another account
- How it works
- Switch to a role in that account and get temporary credentials
| Method | Who uses it | How it works |
|---|---|---|
| Root user sign-in | The account owner, for a few tasks | Email address and password, plus MFA |
| IAM user sign-in | Special cases inside one account | User name and password, plus MFA. Programs use access keys. |
| Your workforce, across many accounts | One sign-in to the AWS access portal, then choose an account | |
| Identity federation | People who already have a company login | Their identity provider confirms who they are, and AWS gives temporary credentials |
| Cross-account IAM role | Users who need to work in another account | Switch to a role in that account and get temporary credentials |
1 / 3
Root user sign-in
- Who uses it
- The account owner, for a few tasks
- How it works
- Email address and password, plus MFA
IAM user sign-in
- Who uses it
- Special cases inside one account
- How it works
- User name and password, plus MFA. Programs use access keys.
| Method | Who uses it | How it works |
|---|---|---|
| Root user sign-in | The account owner, for a few tasks | Email address and password, plus MFA |
| IAM user sign-in | Special cases inside one account | User name and password, plus MFA. Programs use access keys. |
2 / 3
- Who uses it
- Your workforce, across many accounts
- How it works
- One sign-in to the AWS access portal, then choose an account
- Who uses it
- People who already have a company login
- How it works
- Their identity provider confirms who they are, and AWS gives temporary credentials
| Method | Who uses it | How it works |
|---|---|---|
| Your workforce, across many accounts | One sign-in to the AWS access portal, then choose an account | |
| Identity federation | People who already have a company login | Their identity provider confirms who they are, and AWS gives temporary credentials |
3 / 3
Cross-account IAM role
- Who uses it
- Users who need to work in another account
- How it works
- Switch to a role in that account and get temporary credentials
| Method | Who uses it | How it works |
|---|---|---|
| Cross-account IAM role | Users who need to work in another account | Switch to a role in that account and get temporary credentials |
- 1A user in account A asks to switch to a role in account B. The role trusts account A.
- 2AWS returns temporary credentials with the role’s permissions.
- 3The user works in account B, for example in an S3 bucket, until the credentials expire.
Step by step
- 1A user in account A asks to switch to a role in account B. The role trusts account A.
- 2AWS returns temporary credentials with the role’s permissions.
- 3The user works in account B, for example in an S3 bucket, until the credentials expire.
What it is
Authentication answers the question “who are you?”. People sign in with a password, through IAM Identity Center, or through their company’s identity provider. Programs use access keys or, better, temporary credentials from a role.
Multi-factor authentication (MFA) adds a second proof to the password: something you have, such as an authenticator app on a phone or a security key. A stolen password alone is then not enough. AWS supports passkeys and security keys, virtual authenticator apps and hardware tokens. It recommends passkeys and security keys because they resist phishing.
What it is
With a cross-account IAM role, a user in one AWS account can work in another account without a second user there. Account B creates a role that trusts account A. A user from account A switches to that role and receives temporary credentials for account B.
Remember
- MFA = something you know (a password) + something you have (a device).
- MFA devices: passkeys and security keys, authenticator apps, or hardware tokens.
- IAM Identity Center: one sign-in to the AWS access portal, then any assigned account or application.
- Cross-account role: switch roles instead of creating users in every account.
Remember
- Temporary credentials expire on their own, so a leak does less harm.
On the exam
- “Add a second layer of protection to sign-in” points to MFA.
- “Let users in one account access resources in another account” points to a cross-account IAM role.
- “One sign-in for all of the company’s AWS accounts” points to IAM Identity Center.
Do not mix it up with
- Identity federationSign in to AWS with an identity you already have, instead of creating new users in AWS.
AWS IAM Identity CenterOne place to manage your workforce’s sign-in to all your AWS accounts and business applications.
- Access keys, passwords and secretsThe credentials that prove who you are, how to keep them safe, and where applications should store their secrets.