Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
Interview Prep
›
Module 6 · Concurrency, OS, ML Interview Topics
›
Security: SQL injection prevention
quiz
101 / 104
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Most common production fix? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz
Question
📝 **Question:** Most common production fix? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
Run user input through a regex sanitiser that strips single-quotes, semicolons, and SQL keywords from the string.
B
Parameterized queries / ORM — driver passes values out-of-band; no string concat ever.
C
Block any request whose body contains SQL keywords — a WAF rule on UNION/DROP/SELECT covers most injection vectors.
D
Encrypt the input client-side with AES — encrypted bytes can't form a valid SQL fragment in the parser.
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…