Amazon Cognito helps applications authenticate users and, when needed, obtain temporary AWS credentials. The SAA-C03 distinction is simple: User Pools authenticate application users; Identity Pools provide temporary AWS credentials to access AWS resources.
The tell
- User Pools: user directory, sign-up/sign-in, MFA, federation with supported identity providers, and JWT tokens for application/API authentication.
- Identity Pools: exchange supported identity-provider tokens (or allow guest access when configured) for temporary AWS credentials through AWS STS, using IAM roles.
- A web or mobile app can use a User Pool to authenticate users and an Identity Pool when it also needs credentials to access supported AWS services directly.
- API Gateway and other applications can often validate User Pool tokens without an Identity Pool when direct AWS credentials are not required.
Exam traps and limits
Do not assume every Cognito application needs both pools. If the requirement is sign-up/sign-in and JWT-based access to an API, a User Pool may be enough. If the requirement is temporary IAM credentials for direct access to AWS resources, an Identity Pool is the key clue. Identity Pools use IAM roles and temporary credentials; they do not replace least-privilege permissions.
Test yourself
Practice question
A mobile app must let users sign in and then obtain temporary AWS credentials to access an S3 bucket directly. Which Cognito components should the solution use?
- Identity Pool only, with no identity provider
- User Pool only in every case
- A User Pool and an Identity Pool
- AWS IAM users embedded in the app
👉 Click to reveal the answer & explanation
Correct answer: C. The User Pool handles sign-in; the Identity Pool exchanges the authenticated identity for temporary AWS credentials governed by IAM roles. IAM user credentials embedded in an app (D) are unsafe and should not be used.
Related topics
AWS IAM · AWS STS · Amazon API Gateway
Ready for the AWS Solutions Architect Associate (SAA-C03) exam?
Turn what you learned in this topic into exam-ready skills with original, scenario-based practice questions and detailed explanations.
Original practice questions. No dumps. No shortcuts.