🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Authentication, Sessions and JWT: all 10 questions

Quiz: Authentication, Sessions and JWT · Question 9 of 10

GET /api/results/1043 returns a result that belongs to a different student. What check is missing?

GET /api/results/1043 returns a result that belongs to a different student. What check is missing?

  1. A.Password hashing
  2. B.HTTPS
  3. C.An ownership check that the resource belongs to the logged-in user
  4. D.A larger JWT
Answer & explanation

Correct answer: An ownership check that the resource belongs to the logged-in user

Being logged in is not enough; each resource must be checked against the current user.

Can you get the rest right without peeking?

Take the timed Quiz: Authentication, Sessions and JWT quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →