CompTIA Security+ (SY0-501) — Question 416

A security analyst identified an SQL injection attack.
Which of the following is the FIRST step in remediating the vulnerability?

Answer options

Correct answer: C

Explanation

The first step in addressing an SQL injection vulnerability is to implement input validations, which ensures that only properly formatted data is accepted. While stored procedures, error handling, and a WAF can enhance security, they should be secondary steps that follow the fundamental practice of validating inputs.