
EC-CouncilCertified Application Security Engineer (.NET)
Domain 7Objective 2
Defensive Coding Against Information Disclosure 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 41 practice questions to prepare you well beyond it. (estimate)
41questions here
9free pages
10concepts
Questions 36–40
- 36
What is a best practice when using ILogger in ASP.NET Core?
Select an answer first - 37
What is the purpose of monitoring and alerting on error patterns in an application?
Select an answer first - 38
A company must keep application logs for two years for compliance, but the log storage budget is limited. The logs are currently stored in a SIEM that charges per gigabyte per month. The security team wants to retain detailed logs for incident investigation but reduce costs. Which strategy best balances cost and compliance?
Select an answer first - 39
What is the purpose of a custom exception class in .NET?
Select an answer first - 40
Your team is building a new ASP.NET Core API. The operations team requires that all errors be logged in a central location with full stack traces, but the security team insists that log files must not be accessible to unauthorized personnel. Which approach best meets both requirements?
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.