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

Monitor Metrics and Logs of Azure Linux Virtual Machine

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

To monitor the metrics and logs of a Linux virtual machine in Azure, you should use the Linux Diagnostic Extension (LAD) 3.0.

The Linux Diagnostic Extension (LAD) 3.0 is an Azure VM extension that allows you to collect performance metrics and diagnostic data from your Linux VMs in Azure. With LAD, you can monitor various metrics such as CPU usage, memory usage, disk I/O, and network traffic. LAD also collects logs from the VM, including system logs, application logs, and custom logs.

To use LAD, you need to install the extension on your Linux VM and configure it to collect the desired metrics and logs. You can do this using the Azure portal, Azure PowerShell, Azure CLI, or Azure Resource Manager templates.

Option A, Azure HDInsight, is a fully-managed cloud service that makes it easy to process big data using popular open-source frameworks such as Hadoop, Spark, and Hive. Azure HDInsight is not the appropriate solution for monitoring metrics and logs of a Linux virtual machine.

Option C, the AzurePerformanceDiagnostics extension, is not a valid Azure VM extension.

Option D, Azure Analysis Services, is a fully-managed platform as a service (PaaS) that provides enterprise-grade data modeling and analytics capabilities. Azure Analysis Services is not the appropriate solution for monitoring metrics and logs of a Linux virtual machine.

Therefore, the correct answer is B, Linux Diagnostic Extension (LAD) 3.0.