← 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 →- Q1. What does the signature of a JWT guarantee?
- Q2. Why did the forged token in the demo fail?
- Q3. How should a server defend against the "alg": "none" attack?
- Q4. Which is a good place to store a session token in a browser app to limit XSS theft?
- Q5. What HTTP status code means "too many requests" from rate limiting?
- Q6. What are the three parts of a JWT, separated by dots?
- Q7. Why should a phone number never be placed in a JWT payload?
- Q8. What does the exp claim do?
- Q9. Compared with server sessions, what is a main weakness of JWTs?
- Q10. What does this print? (code)