az-104 Practice Question 1753

Exam: az-104
Domain: Monitor and maintain Azure resources
Topic: Monitor resources by using Azure Monitor
Difficulty: medium
A developer at Contoso Ltd is experiencing slow response times from an Azure App Service. They suspect that the issue might be related to the underlying virtual machine size. Which action should they take to investigate and potentially resolve the issue using Azure Monitor?

Answer Options

A
Write a custom script to monitor the App Service performance and adjust the virtual machine size accordingly.
B
Create a KQL query in Azure Monitor to investigate the performance metrics of the App Service and determine if the virtual machine size is the cause of the slow response times.
C
Use Azure Security Center to check for security vulnerabilities that might be causing the slow response times.
D
Deploy a third-party performance monitoring tool to the App Service to gather more detailed performance data.

Correct Answer

B: Create a KQL query in Azure Monitor to investigate the performance metrics of the App Service and determine if the virtual machine size is the cause of the slow response times.

Explanation

The correct answer is B because they should use Azure Monitor to create a KQL query to investigate the performance metrics of the App Service. Option A is incorrect as it suggests using a custom script, which is not necessary for this task. Option C is incorrect as it mentions Azure Security Center, which focuses on security assessments rather than performance monitoring. Option D is incorrect as it suggests using a third-party tool, which is not recommended for Azure environments.