Developing ASP.NET MVC Web Applications — Question 143
You are developing an ASP.NET MVC application that will be deployed on local Internet Information Services (IIS) servers and on an Azure Web Role.
You must log events for the application when it is deployed locally and on Azure. You must not deploy additional services.
You need to implement a logging solution.
Which two technologies can you use? Each correct answer presents a complete solution.
Answer options
- A. event log
- B. trace
- C. console
- D. named pipe
Correct answer: A, B
Explanation
The correct answers are 'event log' and 'trace' because both can be used for logging without requiring additional services. The 'console' option is not suitable for production logging in a web application, and 'named pipe' is not typically used for this purpose in ASP.NET applications.