
EC-CouncilCertified Application Security Engineer (Java)
Domain 7Objective 1
Secure Exception/Error Handling CASEJAVA Practice Questions (Page 1)
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 1–5
- 1
A Java method acquires a database connection and then performs a series of operations. If an exception occurs, the method catches it, logs it, and returns a default value. The connection is not closed. What is the most significant security issue?
Select an answer first - 2
A Java Spring Boot application has multiple controllers, each with its own @ExceptionHandler methods that return different error JSON structures. The security team wants a consistent error format and centralized logging for all unhandled exceptions. Which approach is the most maintainable and secure?
Select an answer first - 3
A Java application's exception handling is being reviewed. The code has multiple catch blocks that each log the exception and then continue execution. The security team is concerned about information disclosure. What is the most important principle to apply?
Select an answer first - 4
A Java application's login module catches authentication failures and logs the exception. The current log entry includes the user's password in plain text because the exception message contains the password. What is the best practice for logging this security event?
Select an answer first - 5
What is a key consideration when logging exception details in a Java application?
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.