SAA-C03 ยท Multi-account guardrails and application security
Amazon Cognito: user pools vs identity pools
User pools for sign-up and sign-in versus identity pools for temporary AWS credentials, social and enterprise identity providers for customer-facing apps.
Key points
- User pool: user directory and OIDC identity provider.
- Sign-up, sign-in, MFA, managed login pages, federation with social or enterprise SAML/OIDC providers.
- Issues JWTs (ID and access tokens) for your app or API.
- Identity pool: swaps a trusted token (user pool, SAML, OIDC, social IdP) for temporary AWS credentials from AWS STS, mapped to IAM roles; limited credentials for guests.
- The two work alone or together.
Source: https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html
Practice questions
Which Amazon Cognito component gives app users temporary AWS credentials?
- A user pool
- An identity pool
- A user pool app client
- The managed login page
Show answer
Answer: B. An identity pool
Identity pools act as a credentials broker and obtain temporary credentials from AWS STS. User pools issue JWTs for your app, not AWS credentials.
Which capabilities belong to Amazon Cognito user pools?
- Multi-factor authentication with TOTP or SMS
- Managed login pages for sign-up and sign-in
- Temporary AWS credentials issued through AWS STS
- Limited AWS credentials for unauthenticated guests
- Federation with SAML 2.0 enterprise identity providers
Show answer
Answer: A. Multi-factor authentication with TOTP or SMS, B. Managed login pages for sign-up and sign-in, E. Federation with SAML 2.0 enterprise identity providers
User pools provide MFA (TOTP, SMS), managed login pages for sign-up and sign-in, and federation with SAML 2.0 or OIDC enterprise providers. Exchanging tokens for STS credentials and guest AWS access are identity pool features.
An Amazon Cognito identity pool only works when it is connected to a Cognito user pool.
Show answer
Answer: False
False. An identity pool can accept tokens directly from social, SAML 2.0 or OIDC providers, or issue guest credentials, with no user pool involved.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
