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

EC-CouncilCertified Application Security Engineer (.NET)

Domain 7Objective 1

Secure Exception Handling CASENET Practice Questions (Page 4)

Part of the Secure Coding: Error Handling and Logging domain, which makes up ~12% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~6–10 in this domain), expect 2–3 from this objective — we provide 45 practice questions to prepare you well beyond it. (estimate)

45questions here
9free pages
8concepts

Questions 16–20

  1. 16expert · hard

    An ASP.NET application uses a custom exception class that includes a property for the user's account ID. When an exception is thrown, the global handler logs the exception and displays the exception message on the error page. A penetration test reveals that the account ID appears in the error page. The team needs to fix this without losing the account ID in logs for audit purposes. What is the best solution?

    Select an answer first
  2. 17expert · medium

    An ASP.NET Core application has a custom error handling middleware that logs exceptions and returns a generic response. However, the middleware is registered after the authentication middleware. When an unhandled exception occurs during authentication, the error handling middleware does not catch it, and the default server error page is shown. You need to ensure that all unhandled exceptions, including those from authentication, are handled by the custom middleware. What should you do?

    Select an answer first
  3. 18expert · hard

    A financial application's API returns detailed error messages that include SQL query fragments and internal server paths. The security team wants to eliminate this leakage, but the support team relies on these details to troubleshoot client issues. The application is used by both internal employees and external customers. What is the best approach that balances security and support needs?

    Select an answer first
  4. 19expert · hard · select all that apply

    A team has implemented a centralized exception handler that logs exceptions and returns a generic error page. They want to verify that the handler does not leak sensitive information and that it logs all unhandled exceptions. Which testing techniques are appropriate? (Select all that apply.)

    Select an answer first
  5. 20application · medium

    An ASP.NET application is being updated to handle 404, 500, and 403 errors with custom pages. The team wants to ensure that the custom pages do not reveal whether a resource exists or expose internal paths. What should they do?

    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. “CASENET” is a trademark of its owner, used for identification only.