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

Quiz: Security and JWT: questions with answers

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

Take the timed quiz + get a certificate →
  1. Q1. A logged-in STUDENT tries to delete a course and is refused. Which status is correct?
  2. Q2. Which statement about a JWT's payload is TRUE?
  3. Q3. Why is CSRF protection disabled in this API?
  4. Q4. How should passwords be stored?
  5. Q5. Where should the enrolling student's identity come from?
  6. Q6. A token's payload is changed by one character in transit. What happens when the API checks it?
  7. Q7. Which part of the request carries the JWT to the Course API?
  8. Q8. Why does a failed login return 401 without saying whether the email exists?
  9. Q9. Why is bcrypt preferred over MD5 or SHA-1 for passwords?
  10. Q10. What does SessionCreationPolicy.STATELESS mean in this API?