
EC-CouncilCertified Application Security Engineer (.NET)
Domain 7Objective 4
Tracing in .NET CASENET Practice Questions (Page 6)
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 26–30
- 26
A .NET Core service uses DiagnosticSource to emit custom events. The team wants to subscribe to these events and write them to a log file, but only when a specific feature flag is enabled. The service is already using ILogger for general logging. What is the most appropriate way to implement this?
Select an answer first - 27
An ASP.NET application has application-level tracing enabled with localOnly="true". A developer needs to view trace details from a remote machine for troubleshooting. What should they do?
Select an answer first - 28
Which class in .NET provides a simple on/off switch for tracing?
Select an answer first - 29
A .NET application uses a TraceSource with a TextWriterTraceListener writing to a file. The file is growing very large, causing disk space issues. The team wants to limit the file size and keep only recent trace data. What should they do?
Select an answer first - 30
A .NET Framework application currently writes trace output to a single log file. The security team requires that trace messages be written to the Windows Event Log for audit purposes, but only for a specific TraceSource. The application must continue writing to the existing file for all sources. What should you do?
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.