
EC-CouncilCertified Application Security Engineer (Java)
Domain 7Objective 1
Secure Exception/Error Handling CASEJAVA Practice Questions (Page 7)
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 31–35
- 31
A Java application has a centralized exception handler that logs exceptions and returns a generic error. However, the handler itself can throw an exception if the logging framework fails (e.g., disk full). What is the best way to handle this situation?
Select an answer first - 32
A Java application has a centralized exception handler that returns a generic error response. However, some exceptions are thrown in background threads (e.g., scheduled tasks) and are not caught by the handler, causing the thread to terminate silently. The operations team wants to be alerted to these failures. What is the best approach?
Select an answer first - 33
A Java application uses a custom exception class that includes a field for the user's password when a login fails. The exception is logged and also returned to the client in an error response. Which of the following is the most critical security issue?
Select an answer first - 34
In a try-catch-finally block, what is the purpose of the finally block?
Select an answer first - 35
A Java web application is being developed for a financial institution. The application must provide user-friendly error messages but also comply with audit requirements that mandate detailed logging of all exceptions. The application runs in a clustered environment with multiple nodes. What is the best approach?
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.