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

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

  1. 26foundation · easy

    What is the main benefit of implementing a centralized exception handling mechanism in an ASP.NET application?

    Select an answer first
  2. 27expert · hard

    An ASP.NET MVC application has a custom error page configured for 500 errors. However, when an exception occurs in an AJAX request, the server returns the full HTML of the custom error page, which breaks the client-side JavaScript that expects a JSON response. The team wants to provide a consistent error response for both regular and AJAX requests without leaking details. What should they do?

    Select an answer first
  3. 28application · medium

    A team maintains an ASP.NET MVC application with multiple controllers. Currently, each controller method has its own try-catch block that writes to a different log file and returns different error views. A security audit recommends a consistent, centralized approach to error handling that also prevents sensitive details from reaching users. What should the team implement?

    Select an answer first
  4. 29foundation · easy

    In ASP.NET Core, which component is commonly used to implement centralized exception handling?

    Select an answer first
  5. 30application · medium

    During a code review, a tester triggers an exception in a .NET application and notices that the error page reveals the full stack trace to authenticated users. The team wants to verify that the fix works without affecting the user experience. What is the most effective testing approach?

    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.