Question: What are the best ways to prevent SQL injection? (Choose two.) A. Avoid SQL statements that take query parameters. B. Log an error anytime a
What are the best ways to prevent SQL injection? (Choose two.)
A. Avoid SQL statements that take query parameters.
B. Log an error anytime a SQL injection attack is successful.
C. Avoid concatenating user input into a query string.
D. Ensure database resources are closed.
E. Always use a PreparedStatement instead of a Statement.
F. Do not use a relational database.
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
The best ways to prevent SQL injection from the given options are C Avoid concatenating user input i... View full answer
Get step-by-step solutions from verified subject matter experts
