D2: Bearer Tokens & JWT
AWS Associate AWS Certified Developer – Associate exam practice questions · 10 flashcards
Question
What is a bearer token?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Bearer Tokens & JWT practice questions and answers
- What is a bearer token?A token whose possession grants access; sent in Authorization: Bearer <token>.
- What is a JWT?JSON Web Token: header, payload (claims), signature; verifiable without calling the issuer.
- ID token vs access token?ID token: user identity claims for the app. Access token: authorizes API access with scopes.
- Refresh token?Obtains new ID/access tokens without re-login.
- How to validate a JWT?Verify signature with issuer's JWKS public keys, check exp, iss, aud/client_id, token_use.
- API Gateway JWT authorizer?HTTP APIs natively validate JWTs from OIDC/OAuth providers.
- Lambda authorizer?Custom Lambda validates tokens/request params and returns an IAM policy; results can be cached.
- Token-based vs request-based Lambda authorizer?Token: uses a single header token. Request: uses headers, query strings, stage variables, context.
- OAuth 2.0 scopes?Define permitted actions in access tokens; API Gateway can require scopes per method.
- Why keep tokens short-lived?Limits damage if stolen; refresh as needed.