Home »
MCQs »
SQL MCQs »
SQL Injection MCQs
How can we prevent SQL Injection attack?
10. How can we prevent SQL Injection attack?
- We should pre-define the input type, input field and length of the user data to validate the input for the user authentication.
- Access privileges should be restricted for the users
- Administrator accounts should not be used.
- All of the above
Answer: D) All of the above
Explanation:
In order to prevent the SQL Injection attack, we should pre-define the input type, input field, and length of the user data to validate the input for the user authentication. Access privileges should be restricted for the users and administrator accounts should not be used.