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

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 36–40

  1. 36foundation · easy

    In .NET, which class is the base class for all exceptions?

    Select an answer first
  2. 37foundation · easy

    In ASP.NET Core, which method is used to configure a custom error page for unhandled exceptions?

    Select an answer first
  3. 38expert · medium

    A healthcare application stores patient records. The application has a centralized exception handler that logs exceptions to a file. A recent audit found that some exception logs contain patient names and medical record numbers because they were included in exception messages thrown by the data access layer. The compliance team requires that no protected health information (PHI) be written to logs. You need to modify the exception handling to prevent PHI leakage while still capturing enough information to debug issues. What is the most effective solution?

    Select an answer first
  4. 39foundation · easy

    What is the primary security reason for implementing secure exception handling in a .NET application?

    Select an answer first
  5. 40application · medium

    You are reviewing a C# method that parses user-supplied JSON input. The current code catches all exceptions with a single catch block and logs the exception. You need to differentiate between a malformed JSON payload (which should return a 400 Bad Request) and a database connection failure (which should return a 503 Service Unavailable). What is the most appropriate exception handling 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.