Quick Decision Rule: When Mobile app users sign in with email/OAuth AND must upload photos directly from the phone to a private S3 bucket using temporary AWS credentials, choose Cognito User Pool for authentication (JWT tokens) paired with a Cognito Identity Pool to exchange tokens for temporary STS IAM credentials.
| Trigger Condition | Mobile app users sign in with email/OAuth AND must upload photos directly from the phone to a private S3 bucket using temporary AWS credentials |
|---|---|
| Recommended Choice | Cognito User Pool for authentication (JWT tokens) paired with a Cognito Identity Pool to exchange tokens for temporary STS IAM credentials |
| Classic Trap | User Pools issue OIDC/JWT tokens for authentication only—they do NOT grant direct AWS IAM credentials to call S3 or DynamoDB without an Identity Pool. |
| Verification | Audited on 2026-11-23 · Guide v1.1 (2026-10-29) |
30-SECOND DECISION TRAP CHECK · SECURITY
A mobile photo app needs user registration/sign-in AND direct uploads from mobile devices to private prefixes in Amazon S3 without routing files through backend EC2 servers. Which TWO Cognito components work together? (Select TWO)
User Pools handle sign-in/authentication while Identity Pools vend temporary least-privilege IAM credentials for direct AWS API access like S3 uploads.
Trap: A Cognito User Pool alone does not issue AWS IAM credentials for calling S3.