
EC-CouncilCertified Application Security Engineer (.NET)
Domain 7Objective 4
Tracing in .NET CASENET Practice Questions (Page 5)
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 48 practice questions to prepare you well beyond it. (estimate)
48questions here
10free pages
9concepts
Questions 21–25
- 21
A .NET Framework application uses a custom TraceListener that writes to a network share. The network share becomes unavailable, and the listener throws an exception. The application is configured with <trace autoflush="true"/>. What is the impact on the application?
Select an answer first - 22
An ASP.NET application has application-level tracing enabled. Developers want to view trace details for a specific request that occurred 10 minutes ago. The application is hosted on a single server. What should they do?
Select an answer first - 23
A .NET Framework application writes trace messages that include the user's email address and the full SQL query text. The compliance team requires that this sensitive data not appear in trace logs. The application uses a TraceSource with a custom listener that formats messages. What is the most effective way to prevent sensitive data from being logged?
Select an answer first - 24
In .NET, what is the primary purpose of tracing compared to logging?
Select an answer first - 25
A .NET application has multiple TraceSources, each with its own listeners. The team wants to ensure that a specific set of messages (e.g., all messages from the 'Security' source) are written to a separate file, while all other sources write to the default file. They also want to be able to change the set of sources that go to the separate file without recompiling. What is the best 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.