
EC-CouncilCertified Application Security Engineer (Java)
Domain 3Objective 1
Input Validation Approaches and Filtering CASEJAVA Practice Questions (Page 5)
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 21–25
- 21
Why is it important to implement input validation at multiple layers (client-side, server-side, and database) rather than only at one layer?
Select an answer first - 22
A Java application validates a file path input by checking that it starts with '/safe/'. An attacker submits the path '/safe/../etc/passwd' and the application reads the file. What is the most effective fix?
Select an answer first - 23
A Java application validates a file upload by checking the file extension against a whitelist of '.jpg', '.png', and '.gif'. An attacker uploads a file named 'image.jsp%00.png' and the application stores it as 'image.jsp'. What is the most likely reason the validation was bypassed?
Select an answer first - 24
A Java application accepts a 'role' parameter that must be one of 'admin', 'user', or 'guest'. The team is deciding between whitelist and blacklist validation. Which approach is more appropriate and why?
Select an answer first - 25
Which filtering approach is most appropriate when the application expects a numeric ID and any non-digit character should be discarded?
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.