All quizzes
Free quiz · 20 questions in the bank

JWT quiz

Test your JWT knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What does the JWT signature actually protect against?

Questions in this quiz
  1. What does the JWT signature actually protect against?
  2. What is the difference between JWS (JSON Web Signature) and JWE (JSON Web Encryption)?
  3. Why is it important to explicitly verify the `alg` field before trusting a JWT, rather than blindly using whatever algorithm the token itself claims?
  4. What is the `exp` claim used for?
  5. Where should a JWT be stored client-side in a browser-based web app, and what is the security trade-off?
  6. Why is putting a long-lived, highly-privileged JWT (e.g. one lasting 30 days) directly in client-side storage generally considered riskier than a short-lived one?
  7. What does the JWT header typically contain?
  8. Why can a JWT's size become a practical concern compared to a traditional opaque session ID cookie?
  9. What does "audience" (`aud`) and "issuer" (`iss`) claims let a verifier check?
  10. What is the difference between the `HS256` and `RS256` signing algorithms?
  11. What is a key challenge with revoking a JWT before its natural expiration (e.g. on logout or a compromised account)?
  12. What is the main architectural benefit of JWTs for authenticating stateless/distributed APIs, versus traditional server-side sessions?
Gaps to close?
Read the curated JWT notes — core concepts, patterns, interview prep.
JWT notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web