
EC-CouncilCertified Application Security Engineer (Java)
Domain 3Objective 1
Input Validation Approaches and Filtering CASEJAVA Practice Questions (Page 3)
Part of the Secure Coding: Input Validation domain, which makes up ~9% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~5–7 in this domain), expect 3–4 from this objective — we provide 39 practice questions to prepare you well beyond it. (estimate)
39questions here
8free pages
5concepts
Questions 11–15
- 11
Which layer of validation is considered the most critical and must never be omitted?
Select an answer first - 12
A Java web application allows users to upload a profile picture. The application stores the file on the server and later serves it back to other users. The security team is concerned about the risk of serving malicious content (e.g., HTML or JavaScript) disguised as an image. What filtering technique should be applied?
Select an answer first - 13
A Java web application has a registration form that collects an email address. The front-end uses JavaScript to check the email format, and the server-side Java code also validates the input. The database layer is a SQL database. Which additional layer should be implemented to ensure defense in depth?
Select an answer first - 14
A Java web application accepts a customer ID in the URL path (e.g., /orders/12345). The ID is used directly in a database query. The security team requires that only numeric IDs be accepted, and the application must reject any other input before it reaches the database layer. Which validation approach should the developer implement?
Select an answer first - 15
A Java web application has a legacy module that accepts a 'sortBy' parameter that is directly concatenated into an SQL ORDER BY clause. The valid values are 'name', 'date', and 'price'. The development team wants to fix the SQL injection vulnerability without rewriting the query builder. They also need to support a new sort option 'rating' in the future. What is the best approach?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “CASEJAVA” is a trademark of its owner, used for identification only.