Easy ReviewSAA-C03
Design Secure Architectures4

Cognito

Sign-up, sign-in and access control for web and mobile app users.

Amazon Cognito is an identity platform for web and mobile apps: a user directory, an authentication server and an authorization service.

User pools and identity pools

Amazon Cognito handles identity for the users of your web and mobile apps: sign-up, sign-in, social and enterprise logins, and access to AWS resources from the app.

How it works

  1. A user pool stores users and signs them in, or federates sign-in to Google, Facebook, SAML or OIDC providers.
  2. The app receives tokens for the signed-in user.
  3. An identity pool exchanges those tokens for temporary AWS credentials, so the app can reach AWS resources directly.

Exam cues

  • If the question says sign-up and sign-in for a web or mobile app, think Amazon Cognito user pools.
  • If the question says app users need temporary access to AWS resources, think Cognito identity pools.

Remember

  • User pools authenticate; identity pools hand out AWS credentials.

Trap: Cognito is for customers of your app, not for your workforce in the AWS console.

From the AWS docs (5)
  • Amazon Cognito is an identity platform for web and mobile apps; it authenticates and authorizes users from its built-in directory, an enterprise directory, or consumer identity providers such as Google and Facebook.
  • A Cognito user pool is a user directory that authenticates and authorizes users to an app or API, and can provide single sign-on with SAML 2.0 and OIDC identity providers.
  • A Cognito identity pool issues AWS credentials so authenticated or guest users can access AWS resources.
  • Identity pool role policies can use the ${cognito-identity.amazonaws.com:sub} policy variable to scope access to each identity, for example to an S3 prefix named after the identity ID.
  • The dynamodb:LeadingKeys condition key matches the partition key of the requested items, so a policy can limit each user to items whose partition key equals their own ID.

Flashcards

tap to flip
Answer

·

All 4 cards as a list

A mobile app needs user sign-up and sign-in, including "Sign in with Google". Which AWS service fits?

Amazon Cognito, with a user pool that supports its own users and social identity providers.

What is the difference between an Amazon Cognito user pool and an identity pool?

  • User pool: a user directory that signs users in to the app
  • Identity pool: gives signed-in or guest users temporary AWS credentials to access AWS resources

Should a company use Amazon Cognito to give its employees access to the AWS Management Console?

No. Cognito is for app users. Employee access to AWS accounts is IAM Identity Center or IAM.

A mobile app needs to let signed-in or guest users access AWS resources. Which Amazon Cognito feature supplies their AWS credentials?

An Amazon Cognito identity pool issues AWS credentials for authenticated or guest users.

You finished every topic of SAA-C03!

Your badge turned gold. Next step: book the exam on AWS. Once you pass, add yourself to Who passed.

Share

Share that you finished this certification

I finished every topic of AWS Certified Solutions Architect - Associate (SAA-C03) on Easy Review. Come study too!