CompTIA A+ Core 2 (220-1102) — Question 219
Which of the following common security vulnerabilities can be mitigated by using put validation?
Answer options
- A. Brute-force attack
- B. Cross-site scripting
- C. SQL injection
- D. Cross-site request forgery
Correct answer: C
Explanation
Input validation is essential in preventing SQL injection attacks by ensuring that only properly formatted data is accepted before it interacts with the database. While it can also help with other vulnerabilities, such as Cross-site scripting and Cross-site request forgery, these require different mitigation strategies. A brute-force attack is primarily countered through strong authentication measures rather than input validation.