Multiple choice technology security

Out of the following which one can be considered as a possible solutions for SQL injection vulnerability?

  1. Data Validation

  2. Secure Cookies

  3. Encryption

  4. Comprehensive exception handling

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Data validation (option A) helps prevent SQL injection by ensuring inputs conform to expected patterns before being used in queries. Secure cookies (B) protect session tokens, not query integrity. Encryption (C) protects data at rest, not injection. Exception handling (D) manages errors but doesn't prevent injection.