Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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