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

EC-CouncilCertified Application Security Engineer (.NET)

Domain 7Objective 2

Defensive Coding Against Information Disclosure CASENET Practice Questions (Page 7)

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 41 practice questions to prepare you well beyond it. (estimate)

41questions here
9free pages
10concepts

Questions 31–35

  1. 31application · medium

    A developer is writing a method that parses user-supplied JSON. If parsing fails, the method should not reveal the internal exception details to the caller. Which implementation is most appropriate?

    Select an answer first
  2. 32application · medium

    A .NET application logs user input during form submissions for debugging. The logs contain email addresses and phone numbers, which are considered personal data. The compliance team requires that this data be masked in logs. Which approach should you take?

    Select an answer first
  3. 33expert · hard

    A security team wants to detect a potential brute-force attack on a login endpoint. The application logs failed login attempts with the username and IP address. The team wants to set up an alert that minimizes false positives while still catching the attack. Which alerting rule is most appropriate?

    Select an answer first
  4. 34foundation · easy

    Which .NET logging framework provides a structured logging API that allows for capturing named properties?

    Select an answer first
  5. 35application · medium

    You are reviewing a .NET application that uses a custom exception class to wrap database errors. The custom exception's Message property includes the full SQL query. When an exception occurs, the application returns the exception's Message to the user. What is the most secure way to handle this?

    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.