Software Development Security

Which secure coding practice keeps user-supplied input from being interpreted as SQL commands?

Show the answer

Correct answerD. Parameterized queries

AWhy not this: Obfuscation makes code harder to read but does not stop injected input from being executed.

BWhy not this: Timeouts limit how long a session stays valid and do not affect query construction.

CWhy not this: Hashing protects stored credentials and has no effect on how input reaches the database.

DWhy this is right: The query structure is fixed and values are bound separately, so input cannot change the SQL logic.

Parameterized queries send the SQL structure and the user values separately, so input is always handled as data. Hashing protects stored passwords but does not affect how queries are parsed.