
EC-CouncilCertified Application Security Engineer (Java)
Domain 3Objective 1
Input Validation Approaches and Filtering CASEJAVA Practice Questions (Page 4)
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 16–20
- 16
Which statement correctly differentiates whitelist validation from blacklist validation?
Select an answer first - 17
A Java application accepts a 'redirectUrl' parameter that is used to redirect users after login. The security team wants to prevent open redirects. They are considering two approaches: (A) whitelist validation that only allows URLs starting with 'https://example.com/', and (B) blacklist validation that rejects URLs containing '//' or 'http:'. Which approach is more secure and why?
Select an answer first - 18
A Java application accepts a color preference from a dropdown menu that contains a fixed set of values: red, green, blue. The server-side code currently trusts the client-side selection and stores it in the database. What is the most secure way to validate this input?
Select an answer first - 19
A Java web application accepts a 'comment' field that is later rendered as HTML. The team wants to sanitize the input to prevent XSS. Which filtering technique is most appropriate?
Select an answer first - 20
Which attack is most likely to succeed if an application fails to canonicalize user input before validation?
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.