Hard1 markMultiple Choice
Area II: SecurityApplication SecuritySQL InjectionArea II

CPA · Question 74 · Area II: Security

Which of the following is a 'Preventive' control for 'SQL Injection'?

Answer options:

A.

Web Application Firewall (WAF)

B.

Using Parameterized Queries / Prepared Statements

C.

Database Encryption

D.

Regular Backups

How to approach this question

SQL Injection fix = Parameterized Queries.

Full Answer

B.Using Parameterized Queries / Prepared Statements✓ Correct
Parameterized queries ensure that the database treats user input as data, not executable code, effectively neutralizing SQL injection attacks.

Common mistakes

Relying on WAFs (which can be bypassed) instead of fixing the code.

Practice the full CPA ISC Practice Exam 4

82 questions · hints · full answers · grading

More questions from this exam