
EC-CouncilCertified Application Security Engineer (.NET)
Domain 7Objective 1
Secure Exception Handling CASENET Practice Questions (Page 1)
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 1–5
- 1
A .NET web application processes user-uploaded files. When a file is malformed, the application throws a custom exception that includes the original file name and the user's email address. The current global error handler logs the exception message and displays it directly on the error page. After a security review, the team decides to prevent sensitive data from appearing in the browser while still capturing enough detail for support staff. What should be implemented?
Select an answer first - 2
Which of the following is a common .NET exception type that indicates an attempt to access an element outside the bounds of an array?
Select an answer first - 3
An ASP.NET MVC application currently shows the Yellow Screen of Death with stack traces to all users. The team wants to implement custom error pages that are user-friendly and do not reveal internal details. They also want to ensure that unhandled exceptions are logged centrally. Which combination of steps should they take?
Select an answer first - 4
During penetration testing, an ASP.NET application returned the following error page: 'System.Data.SqlClient.SqlException: Invalid object name 'dbo.Orders'. at MyApp.Data.OrderRepository.GetOrders() in C:\inetpub\wwwroot\MyApp\Data\OrderRepository.cs:line 42.' The team needs to fix this vulnerability while still allowing developers to see full details in the development environment. What is the best approach?
Select an answer first - 5
You are conducting a security review of a .NET application's exception handling. The application uses a global exception handler that logs exceptions and returns a generic error page. However, you find that some controllers have their own try-catch blocks that return exception messages to the client. Which of the following actions should you take to ensure consistent and secure exception handling? (Select all that apply.)
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.