Explain it simpler
Amazon Cognito helps apps handle their own customers, not company staff. It has two parts. A user pool is like a membership desk: people sign up, sign in, reset passwords, and get a digital membership card (a token) that proves who they are. An identity pool is like a key exchange window: you show your membership card, and it hands you a temporary key that opens certain AWS storage or database doors directly. Many apps use both: sign in at the membership desk, then trade the card for a temporary key to upload photos. If the app only needs to know who you are and call its own API, the user pool alone is enough.
Amara is the only backend developer at Fernway Trails, a small startup building a hiking app. The product manager's list for the next sprint reads: let hikers sign up with email or their Google account, keep them signed in for weeks, show their profile name in the app, let them upload trail photos straight to storage, and let people without accounts browse public trail maps. Amara opens the Amazon Cognito console and finds two very different things: user pools and identity pools. Which one handles which item on the list, and does she need both?
Amazon Cognito provides identity for your application's end users: the customers of a mobile or web app, not IAM users or your workforce. It has two components with different jobs, and choosing between them is one of the most common DVA-C02 questions. A quick way to frame it: one component authenticates people and returns tokens, the other authorizes access to AWS resources and returns AWS credentials.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.