🔥 40% Off Crucial Exams Memberships — Deal ends today!

45 minutes, 0 second remaining!

Certified Ethical Hacker (CEH) Practice Question

While reviewing a legacy Java application, you notice every SQL statement is built by concatenating request parameters into a query string. Management allows only limited source-code changes before the next release. Which single remediation will most effectively eliminate SQL-injection risk without requiring a complete rewrite?

  • Configure the database to return generic error messages instead of detailed stack traces.

  • Insert input-validation JavaScript on the client to filter characters like ' and ; before form submission.

  • Disable HTTP TRACE and TRACK methods on the Apache front-end server.

  • Replace all dynamic queries with parameterized PreparedStatement objects so user data is bound as parameters.

Certified Ethical Hacker (CEH)
Web Application Hacking
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot