🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: JWT and API Security: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What does the signature of a JWT guarantee?
  2. Q2. Why did the forged token in the demo fail?
  3. Q3. How should a server defend against the "alg": "none" attack?
  4. Q4. Which is a good place to store a session token in a browser app to limit XSS theft?
  5. Q5. What HTTP status code means "too many requests" from rate limiting?
  6. Q6. What are the three parts of a JWT, separated by dots?
  7. Q7. Why should a phone number never be placed in a JWT payload?
  8. Q8. What does the exp claim do?
  9. Q9. Compared with server sessions, what is a main weakness of JWTs?
  10. Q10. What does this print? (code)