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

1 Expert Approved Answer
Step: 1 Unlock

The best ways to prevent SQL injection from the given options are C Avoid concatenating user input i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!