AZ-104 Question 261
Single answerA company is migrating their on-premises environment to Azure and has created multiple Windows and Linux VMs, used Azure Storage accounts to store application data, and configured virtual networks to manage traffic. They want to proactively monitor performance and diagnose potential issues from a centralized location. After enabling Azure Monitor Insights, which of the following actions must be taken to ensure that metrics and logs for all these resources can be viewed in a single pane?
- A
Enable Azure Monitor for all resources at the subscription level with no additional configuration needed
- B
Set up a single Log Analytics workspace, configure diagnostic settings for each resource, and route logs and metrics to that workspace
- C
Install the Azure Diagnostics extension only on Linux VMs; Windows VMs automatically send metrics to Azure Monitor without further configuration
- D
No additional configuration is needed if Resource Health is enabled for each resource group
Show answer and explanation
Correct answer: B
Explanation
To obtain unified visibility into performance metrics and logs for virtual machines, storage accounts, and networks, you must configure diagnostic settings and direct the data to a single Log Analytics workspace. This approach allows Azure Monitor Insights to capture and analyze all telemetry data in one central location.
- A. Incorrect.
While Azure Monitor can be enabled at the subscription level, you still need diagnostic settings and log routing for detailed metrics and logs
- B. Correct.
Setting up a single Log Analytics workspace and configuring diagnostic settings ensures consistent and centralized gathering of metrics and logs for VMs, storage accounts, and networks
- C. Incorrect.
Windows VMs also require diagnostic settings or extensions to be properly configured to collect in-depth telemetry, so this statement is incomplete
- D. Incorrect.
Resource Health focuses on availability status rather than comprehensive performance metrics and logs, so additional diagnostic configuration is still required