Monitor Metrics and Logs of Azure Linux Virtual Machine | Exam AZ-100

Monitor Metrics and Logs of VM1

Question

You have an Azure subscription named Subscription1.

You deploy a Linux virtual machine named VM1 to Subscription1.

You need to monitor the metrics and the logs of VM1.

What should you use?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

You can use extensions to configure diagnostics on your VMs to collect additional metric data.

The basic host metrics are available, but to see more granular and VM-specific metrics, you need to install the Azure diagnostics extension on the VM. The Azure diagnostics extension allows additional monitoring and diagnostics data to be retrieved from the VM.

https://docs.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-monitoring

The correct answer is A. Linux Diagnostic Extension (LAD) 3.0.

Explanation: When deploying a virtual machine (VM) in Azure, it is important to monitor its performance, as well as any issues that may arise. Azure provides several tools for monitoring VMs, including the Linux Diagnostic Extension (LAD) 3.0.

LAD is a diagnostic extension that can be installed on a Linux VM to collect performance and diagnostics data. It supports several data sources, including performance counters, syslog, and custom logs. LAD can also be used to monitor the health of the VM, including CPU usage, memory usage, and disk I/O.

To install LAD, you can use Azure CLI or Azure PowerShell. Once installed, LAD will start collecting data and sending it to Azure Monitor, where it can be analyzed and visualized. You can also configure alerts based on specific metrics or events.

Azure Analysis Services is a data modeling and analysis service, which is not relevant for monitoring VMs. The AzurePerformanceDiagnostics extension is also not a valid option, as it is not a supported extension for VMs. Azure HDInsight is a cloud-based big data analytics platform, which is also not relevant for monitoring VMs.

In conclusion, if you want to monitor the metrics and logs of a Linux virtual machine in Azure, the best option is to use the Linux Diagnostic Extension (LAD) 3.0.