Developing Solutions for Microsoft Azure — Question 5
You need to investigate the Azure Function app error message in the development environment.
What should you do?
Answer options
- A. Connect Live Metrics Stream from Application Insights to the Azure Function app and filter the metrics.
- B. Create a new Azure Log Analytics workspace and instrument the Azure Function app with Application Insights.
- C. Update the Azure Function app with extension methods from Microsoft.Extensions.Logging to log events by using the log instance.
- D. Add a new diagnostic setting to the Azure Function app to send logs to Log Analytics.
Correct answer: A
Explanation
The correct answer is A because connecting Live Metrics Stream allows real-time monitoring and filtering of metrics, which is essential for troubleshooting errors in the development environment. Option B involves setting up a new workspace, which is unnecessary if live metrics are accessible. Option C, while useful for logging events, does not provide real-time insight into errors. Option D focuses on logging but lacks the immediate feedback provided by Live Metrics Stream.