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

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 21–25

  1. 21application · medium

    A Java web application's error page currently displays the raw exception message, which sometimes includes file paths and SQL fragments. The security team requires that users see only a generic message, but developers need full details for debugging. Which implementation satisfies both requirements?

    Select an answer first
  2. 22expert · hard

    A Java application's logging configuration writes logs to a shared directory that is also used by other applications. The security team is concerned that logs may be tampered with or accessed by other applications. What is the best way to protect the logs?

    Select an answer first
  3. 23expert · hard · select all that apply

    A Java application's exception handler logs the exception message and stack trace. The application processes credit card payments, and the exception messages sometimes include the full credit card number. The security team requires that credit card data never appear in logs. Which of the following actions are appropriate? (Select all that apply.)

    Select an answer first
  4. 24application · medium

    A Java application's exception handler logs the full stack trace to a file in the application's web root. The log file is accessible via a predictable URL (e.g., /logs/app.log) and contains SQL queries with parameter values, internal IP addresses, and session IDs. Which combination of actions should be taken to secure the logging?

    Select an answer first
  5. 25expert · hard

    A Java application uses a third-party library that throws exceptions with sensitive internal details. The application's exception handler logs the exception and returns a generic error to the user. However, the log file is stored in a location that is accessible to all application users via a shared file system. What is the best way to mitigate this risk?

    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.