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

Quiz: SQL Injection · Question 8 of 10

Why should the web application's database user not have DROP permission?

Why should the web application's database user not have DROP permission?

  1. A.DROP is slow
  2. B.If an injection slips through, least privilege limits the damage the attacker can do
  3. C.Databases do not support DROP
  4. D.It prevents all SQL injection
Answer & explanation

Correct answer: If an injection slips through, least privilege limits the damage the attacker can do

Least privilege is a defence-in-depth layer, not a replacement for parameters.

Can you get the rest right without peeking?

Take the timed Quiz: SQL Injection quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →