
EC-CouncilCertified Application Security Engineer (Java)
Domain 3Objective 2
Secure Coding Practices for Input Validation in Java 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 35 practice questions to prepare you well beyond it. (estimate)
35questions here
7free pages
6concepts
Questions 11–15
- 11
A development team is integrating input validation into their CI/CD pipeline. They want to ensure that all new code follows secure coding standards. Which practice should they adopt?
Select an answer first - 12
A Java web application displays user comments on a public page. The development team wants to prevent stored XSS. Which input validation strategy is most effective?
Select an answer first - 13
Why is context-specific validation important for inputs used in SQL queries?
Select an answer first - 14
A Java application allows users to upload profile pictures. The file name is used to store the file on the server. The security team is concerned about path traversal attacks. Which validation should be applied to the file name before storing it?
Select an answer first - 15
A Java application allows users to download files by specifying a filename in the URL. The files are stored in a directory called '/var/data'. Which of the following is the most secure way to prevent path traversal?
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.