Engagement Management

Which remediation best prevents SQL injection through a web application's login form?

Show the answer

Correct answerD. Parameterized queries

AWhy not this: Key rotation limits exposure of cryptographic keys and has no effect on injected input.

BWhy not this: Segmentation limits network reach but does not stop injection through the application itself.

CWhy not this: MFA adds a login factor but does not stop malicious input from altering the database query.

DWhy this is right: Parameters are bound as data, so injected SQL syntax is never executed as part of the query.

Parameterized queries keep user input as data, so it cannot change the SQL statement's structure. Multifactor authentication protects against stolen credentials but does not stop injected input from altering the query.