Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
EC-Council logo

EC-CouncilCertified Application Security Engineer (Java)

Domain 7Objective 1

Secure Exception/Error Handling CASEJAVA Practice Questions (Page 3)

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 11–15

  1. 11expert · hard · select all that apply

    A Java application's centralized exception handler logs exceptions to a file. The security team is concerned about log tampering and unauthorized access. Which of the following measures are appropriate to protect the logs? (Select all that apply.)

    Select an answer first
  2. 12application · medium

    A developer writes a method that opens a database connection, runs a query, and then closes the connection in a finally block. If the query throws an exception, the finally block closes the connection, but the exception is caught and logged. However, the method returns null to the caller, which then tries to use the null result and throws a NullPointerException. What is the primary flaw in this exception handling?

    Select an answer first
  3. 13foundation · easy

    In a Java web application, which of the following is the most secure way to handle an exception that occurs during user authentication?

    Select an answer first
  4. 14expert · hard

    A Java application's exception handler catches all exceptions and logs them. However, the application is running in a clustered environment, and the logs are written to a local file on each node. The security team wants to correlate exceptions across nodes for incident response. What is the most effective approach?

    Select an answer first
  5. 15application · medium

    A Java web application is being hardened. The current error page shows the exception class name and method names. The requirement is to provide a user-friendly message while retaining detailed diagnostics for support staff. Which implementation best meets this requirement?

    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.