Lesson 20 of 30
Praxis's own JWT-vs-sessions lesson already covers how tokens prove who's logged in. Cognito's job is everything upstream and downstream of that: the managed user directory that issues the token, and the bridge that turns 'logged in' into 'allowed to call AWS directly.'
12 min read
Every option explains itself — why the right one is right, and why each wrong one is wrong. Miss one and it comes back later on a spaced-repetition schedule.
Question 1 of 3
A user successfully signs in through a Cognito User Pool and receives a valid ID token. Can their app now call S3 or other AWS services directly using that token?
Hints without spoilers, and a plain explanation of why a wrong answer was wrong — answered only from this lesson. Free account, no card.
Sign up freeWhat interviewers actually ask about this, and what a strong answer has to cover.
A strong answer covers
Likely follow-ups
Cognito is two separate services that are commonly used together and commonly conflated:
That second step is the same temporary-credential model this track's IAM lesson describes for a Lambda execution role — a role's policy defines exactly what the credentials can do — just handed to a browser-side user instead of a compute resource.
A photo app wants users to upload files straight from the browser to S3, without routing every upload through a backend server:
s3:PutObject directly — no backend in the request path at all."Why would you reach for Cognito instead of rolling your own auth?" tests whether a candidate can separate what Cognito actually adds — a managed user directory, hosted UI, and federation — from token mechanics they should already know generically, rather than treating Cognito as a mysterious auth black box.