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

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 11–15

  1. 11application · medium

    A .NET Core API catches exceptions and logs them using a third-party logging library. The current logging call includes the exception object, the request body, and the user's claims. A security review finds that the logs contain plaintext passwords from the request body. What is the most secure way to log exceptions without losing diagnostic value?

    Select an answer first
  2. 12foundation · easy

    What is a recommended practice for logging exceptions securely?

    Select an answer first
  3. 13application · medium

    An ASP.NET Core application is deployed behind a load balancer. When an unhandled exception occurs, the default developer exception page is shown to users, revealing stack traces. You need to ensure that production users see a friendly error page while developers can still see detailed errors when accessing the site from the development environment. What is the recommended configuration?

    Select an answer first
  4. 14application · medium

    A .NET web service returns exception messages directly in the HTTP response body. A penetration test revealed that the messages include SQL query fragments and internal IP addresses. The business requires that clients receive meaningful error codes (e.g., 400, 404, 500) but no internal details. What is the primary security principle that is being violated?

    Select an answer first
  5. 15application · medium

    A .NET application's login page throws an exception when the database is unreachable. The current error page displays the full exception details, including the database connection string. The security team wants to reduce the risk of information disclosure while still allowing the support team to diagnose the issue. What is the most appropriate action?

    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.