AZ-801 practice question 31 of 35

You have an Azure subscription. The subscription contains a virtual machine named Serve1 that run Windows Server. You create a new Log Analytics workspace named Workspace1. You need to collect performance metrics for Server! by using Azure Monitor. What should you do next?

Full set: 281 questions

Domain Monitor and troubleshoot Windows Server environments

Answer options
A: Regenerate the secondary key.
B: Install the Azure Connected Machine agent.
C: Create a data collection rule (DCR). Correct answer
D: Deploy and configure Windows Event Forwarding.
E: Server1 that runs Windows Server.
Correct Answer:
C. Create a data collection rule (DCR).
Explanation

To collect performance metrics from an Azure VM using Azure Monitor, you must define what data to collect and where to send it. This is accomplished by creating a Data Collection Rule (DCR). The DCR specifies the data sources (e.g., Windows performance counters) and the destination, which is the Log Analytics workspace (Workspace1). Associating this DCR with the virtual machine (Server1) enables the Azure Monitor Agent to begin collecting the specified metrics. This is the standard and modern procedure for configuring data collection in Azure Monitor.

Why Incorrect

A. Regenerate the secondary key. This is a security management task for the workspace, not a configuration step for data collection. Keys are used for authentication, but regenerating them is not part of the initial setup.
B. Install the Azure Connected Machine agent. This agent is for managing non-Azure machines (on-premises or other clouds) via Azure Arc. Azure VMs use the Azure Monitor Agent, not the Connected Machine agent, for this purpose.
D. Deploy and configure Windows Event Forwarding. This is a native Windows Server feature for log aggregation and is not the standard method for sending performance data to Azure Monitor's Log Analytics workspace.
E. Server1 that runs Windows Server. This is not a valid action; it is a restatement of the existing environment described in the question.

References

1. Microsoft Learn, "Data collection rules in Azure Monitor." This document states, "A data collection rule (DCR) is a set of instructions that defines how to collect and process telemetry data that's sent to Azure Monitor." It details that DCRs are used to specify data sources like performance counters and destinations like Log Analytics workspaces.

2. Microsoft Learn, "Tutorial: Collect data from an Azure virtual machine with Azure Monitor Agent." Under the "Create a data collection rule" section, the first step after ensuring a Log Analytics workspace exists is to "Create a data collection rule to define the data you want to collect." This confirms that creating a DCR is the next logical step.

3. Microsoft Learn, "Overview of Azure Monitor agents." This document clarifies that the Azure Monitor Agent (AMA) is the recommended agent for data collection and that it "uses data collection rules (DCRs) where you define which data you want to collect from which machines." This directly links the agent's function to the necessity of a DCR.

Scroll to Top