az-400 Practice Question 1983

Exam: az-400
Domain: Implement an instrumentation strategy
Topic: Configure monitoring and telemetry
Difficulty: medium
In a scenario where you need to monitor the performance of an Azure Web App and receive alerts when the CPU usage exceeds 80%, which of the following actions should you take to configure this using Application Insights?

Answer Options

A
Create an alert in Azure Security Center based on security events.
B
Set up a custom metric in Application Insights to monitor CPU usage and create an alert based on that metric.
C
Use Azure Log Analytics to query CPU usage and set up an alert based on the results.
D
Configure an alert in Azure Monitor Metrics for the Web App resource.

Correct Answer

B: Set up a custom metric in Application Insights to monitor CPU usage and create an alert based on that metric.

Explanation

The correct answer is B because you can set up custom metrics in Application Insights to monitor CPU usage and create alerts based on these metrics. Option A is incorrect as it pertains to Azure Monitor Metrics instead of Application Insights. Option C is incorrect as it involves setting up an alert in Azure Security Center, which is not relevant for monitoring CPU usage. Option D is incorrect as it refers to setting up an alert in Azure Log Analytics, which is also not the appropriate tool for this specific scenario.

Related Practice Questions