Which technique helps prevent SQL Injection attacks?

2025

Which technique helps prevent SQL Injection attacks?

Answer: C. Validating and sanitizing user inputsCorrect answer: Validating and sanitizing user inputs. Among the given choices, validating and sanitizing user input is the protective technique. In real…

  1. A.

    Running SQL queries in a loop

  2. B.

    Giving admin rights to all users

  3. C.

    Validating and sanitizing user inputs

  4. D.

    Using simple and open SQL queries

  5. E.

    Disabling the login screen

Attempted by 22 students.

Show answer & explanation

Correct answer: C

Correct answer: Validating and sanitizing user inputs.

Among the given choices, validating and sanitizing user input is the protective technique. In real systems, parameterized queries/prepared statements are the stronger standard control, but input validation and sanitization still help reduce injection risk.

Explore the full course: Niacl Ao It Specialist

Loading lesson…