Microsoft Azure Administrator — Question 2
You have an Azure web app named webapp1.
Users report that they often experience HTTP 500 errors when they connect to webapp1.
You need to provide the developers of webapp1 with real-time access to the connection errors. The solution must provide all the connection error details.
What should you do first?
Answer options
- A. From webapp1, enable Web server logging
- B. From Azure Monitor, create a workbook
- C. From Azure Monitor, create a Service Health alert
- D. From webapp1, turn on Application Logging
Correct answer: D
Explanation
Turning on Application Logging from webapp1 is the best first step because it allows for real-time tracking of connection errors, providing developers with detailed logs necessary for troubleshooting. While enabling Web server logging (Option A) can also capture errors, it does not offer the same level of detail in real-time. Options B and C focus on monitoring and alerting rather than directly addressing the need for immediate error details.