
EC-CouncilCertified Application Security Engineer (Java)
Domain 7Objective 1
Secure Exception/Error Handling CASEJAVA Practice Questions (Page 8)
Part of the Secure Coding: Error Handling and Logging domain, which makes up ~11% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~6–9 in this domain), expect 3–5 from this objective — we provide 45 practice questions to prepare you well beyond it. (estimate)
45questions here
9free pages
6concepts
Questions 36–40
- 36
A Java web service returns error responses that include the exception class name, method name, and line number from the stack trace. The security team is concerned about information disclosure. What is the best way to reduce the risk while still allowing developers to debug?
Select an answer first - 37
A Java web application has multiple servlets, each with its own try-catch blocks that render different error pages. Some error pages expose internal class names and file paths. The team wants a consistent, secure error-handling approach. Which solution is most effective?
Select an answer first - 38
A Java web application has a global exception handler that returns a generic error page. However, the application also has a REST API that returns JSON error responses. The security team wants to ensure that neither the web pages nor the API responses leak internal details. What is the best approach?
Select an answer first - 39
Where should detailed exception information be stored in a Java web application?
Select an answer first - 40
Which of the following should be avoided in exception messages that are shown to end users?
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.