Skip to content
Sharp

OWASP Vulnerabilities · interview question

Why do teams use parameterized queries in production code?

Multiple choiceMediumchapter-17-curatedpremiumowasp-vulnerabilitiessql-injection
Choose one answer
Answer and explanation

Correct answer

C. They prevent SQL injection

Why

Parameterized queries, or PreparedStatements, prevent SQL injection by treating input values as data, not executable code. This ensures that malicious input is not executed as part of SQL commands.

Test yourself on OWASP Vulnerabilities

A free test with instant, explained results. No account needed.

Start free test
All OWASP Vulnerabilities questions →