🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Broken Access Control: all 10 questions

Quiz: Broken Access Control · Question 5 of 10

Why can it be better to return 404 instead of 403 for someone else's record?

Why can it be better to return 404 instead of 403 for someone else's record?

  1. A.404 is faster
  2. B.403 confirms that the record exists
  3. C.Browsers cache 403
  4. D.404 logs the user out
Answer & explanation

Correct answer: 403 confirms that the record exists

A 404 for both "doesn't exist" and "not yours" reveals nothing about other users' records.

Can you get the rest right without peeking?

Take the timed Quiz: Broken Access Control quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →