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 6)

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 26–30

  1. 26foundation · easy

    What is the primary benefit of implementing a centralized exception handling mechanism in a Java application?

    Select an answer first
  2. 27expert · hard

    A Java application processes payment transactions. The development team wants to log all exceptions for debugging, but the security team is concerned about PCI DSS compliance and information disclosure. The application runs in a shared hosting environment where log files are accessible to other tenants. What is the best approach?

    Select an answer first
  3. 28application · medium

    A developer is writing a method that parses user input. If the input is invalid, the method throws a custom InvalidInputException with a message that includes the user's input. The exception is caught by a global handler that returns the message to the user. What is the primary security concern?

    Select an answer first
  4. 29expert · hard

    A Java application uses a third-party library that throws checked exceptions. The team has a policy that all exceptions must be logged and the user must receive a generic error. However, the library also throws an Error (not Exception) in rare cases. The current code only catches Exception, so Errors propagate to the container and produce a default error page. What is the most secure and maintainable way to handle this?

    Select an answer first
  5. 30expert · hard

    A Java application's exception handler logs the exception message and stack trace to a log file. The log file is shipped to a centralized SIEM for analysis. The security team requires that no sensitive data (e.g., passwords, credit card numbers) be logged, but developers need enough context to debug. Which approach best balances these requirements?

    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.