Cognito Flashcards

1
Q

What does Amazon Cognito provide?

A

Authentication, authorization, and user management for web and mobile applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a User Pool in Cognito?

A

User pools provide sign-in and provide JSON Web Tokens (JWT). User pools DO NOT grant access to AWS resources.

User pools provide user sign-up, sign-in (customizable web UI), MFA, and user profiles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an Identity Pool in Cognito?

A

Identity Pools offer access to temporary AWS credentials. This supports:
- Unauthenticated identities (guest/anonymous users)
- Federated identities (swap third-party and User Pool JWTs for short term AWS credentials (Roles) to access AWS resources)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can API Gateway accept User Pool tokens or must they be swapped for Identity Pool credentials?

A

API Gateway can accept User Pool tokens directly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you create a Federated Web Identity system using Cognito?

A

Log in to a User Pool using a third party identity provider and receive a JWT. Swap that JWT in an Identity Pool for a Role to access AWS resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why would you use Cognito instead of IAM to create and manage users for your application?

A

IAM has a 5,000 user limit. Cognito can use Federate Web Identity to have infinite users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly