Security

Amazon Cognito

Managed identity service for web and mobile app users providing sign-in and temporary AWS credentials.

How it works

Amazon Cognito supports identity management for web and mobile applications without creating an IAM user for each customer. User Pools provide a directory, sign-up, sign-in, optional MFA, and JWTs. Identity Pools can exchange tokens from configured identity providers for temporary AWS credentials with permissions determined by an IAM role.

When to use it

Choose it when the requirement is to authenticate app users via email, social login, or SAML without creating IAM users.

Real-world example

A running app lets users sign in with Google through Cognito User Pools. After authentication, the app uses Identity Pools to obtain temporary credentials; a configured IAM role lets each user upload images to their own S3 prefix.

Key facts

  • Cognito User Pools provide a user directory with sign-up, sign-in, MFA, and JWT token issuance.
  • Cognito Identity Pools exchange identity tokens for temporary, scoped AWS IAM credentials.
  • Integrates natively with API Gateway for authentication and Application Load Balancers for user verification.

Common pitfall

Do not confuse User Pools with Identity Pools: User Pools authenticate users and issue JWTs, while Identity Pools provide temporary AWS credentials. Actual access depends on the configured IAM role and policies.

Often confused with

IAM users, which are intended for internal human workforce and administrative access rather than application end users.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Keywords you will see in SAA-C03 questions

  • mobile users

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning