Comparison lab
IAM vs IAM Identity Center vs Amazon Cognito
IAM grants AWS permissions, Identity Center signs in the workforce, Cognito signs in customers.
Picture the difference
Workload permissions → IAM role | Employee sign-in → IAM Identity Center portal | Customer sign-in → Cognito user pool
| Option | What it does | Exam clue | When not to use it |
|---|---|---|---|
| AWS Identity and Access Management (IAM) | Core AWS authorization service for managing identities, roles, and policies controlling access to AWS resources. | roles, policies, least privilege, explicit deny, temporary credentials | Do not create long-lived keys for a workload that can assume a role or treat a policy as a sign-in system for consumer app users. |
| AWS IAM Identity Center | Central workforce access service for AWS accounts and supported applications. | workforce, single sign-on, permission sets, identity provider, access portal | Do not use it as the customer identity system for a public mobile app or as a replacement for workload roles. |
| Amazon Cognito | Managed identity features for signing users into web and mobile applications and granting applications scoped AWS access. | user pools, identity pools, application users, tokens, federation | For employees signing into many AWS accounts, use workforce access management rather than creating a consumer user pool. |
Decision tree
- Grant a user or workload AWS resource permissions using policies and roles AWS Identity and Access Management (IAM)
- Give employees federated access to multiple AWS accounts using permission sets AWS IAM Identity Center
- Add sign-up and sign-in for users of a web or mobile application Amazon Cognito
If none of these clues fit, check the exact requirement before choosing.