
EC-CouncilCertified Application Security Engineer (Java)
Domain 3Objective 2
Secure Coding Practices for Input Validation in Java CASEJAVA Practice Questions (Page 6)
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 35 practice questions to prepare you well beyond it. (estimate)
35questions here
7free pages
6concepts
Questions 26–30
- 26
In input validation, what is the key difference between whitelist and blacklist approaches?
Select an answer first - 27
A Java web application has a search feature that accepts a 'q' parameter. The search is performed against a database using a LIKE query. The team wants to prevent SQL injection while allowing users to search for any text. Which approach is most appropriate?
Select an answer first - 28
When validating input that will be embedded in HTML output, what is the primary security concern?
Select an answer first - 29
A Java application accepts a username from a registration form. The business rule states that usernames must be 3–20 characters long and contain only letters, digits, and underscores. The security team wants to ensure that the validation is robust and cannot be bypassed by Unicode lookalikes or encoded input. Which validation approach should be used?
Select an answer first - 30
A Java web application uses a custom validation framework. The team wants to ensure that validation errors are handled consistently and do not leak internal details. Which approach is best?
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.