AZ-104 Question 260
Select 2Your team wants to track real-time performance metrics for their Azure virtual machines, while also monitoring capacity and transaction metrics for their storage accounts. They plan to unify logs and metrics from these resources into a single location for centralized analysis with Azure Monitor Insights. Which two actions must you take to properly configure and interpret monitoring data in Azure Monitor Insights?
- A
Install the Azure Monitor agent on each virtual machine to collect performance counters
- B
Enable Container Insights on the storage account to collect transaction logs
- C
Configure diagnostic settings on the storage account to send metrics and logs to a Log Analytics workspace
- D
Create an alert rule in Azure Monitor for each VM to store data in Azure Monitor Insights
Show answer and explanation
Correct answers: A, C
Explanation
To gather comprehensive metrics and logs from both VMs and storage accounts, you must install the Azure Monitor agent on the VMs and configure diagnostic settings on the storage account to send its logs to a Log Analytics workspace used by Azure Monitor Insights. Container Insights would be relevant for container environments, and merely creating an alert rule would not collect or store data.
- A. Correct.
Installing the Azure Monitor agent on each VM is required for collecting performance counters, such as CPU, memory usage, and disk metrics, which can then be sent to Azure Monitor Insights.
- B. Incorrect.
Container Insights is designed for Kubernetes or container-based environments rather than traditional storage accounts, so it does not apply to standard storage accounts.
- C. Correct.
Configuring diagnostic settings on the storage account and sending these logs to a Log Analytics workspace is necessary for collecting and analyzing storage metrics, including capacity and transaction logs, within Azure Monitor Insights.
- D. Incorrect.
Creating an alert rule does not by itself enable metric or log collection; alerts respond to data that is already gathered or streamed to Azure Monitor Insights.