Application Insights – Availability Tests and Alerts · AZ-204: Developing Solutions for Microsoft Azure Monitor and Troubleshoot Azure Solutions

A company wants an alert only when an Application Insights availability test fails from at least two different test locations during the same 10-minu…

Practice question from Application Insights – Availability Tests and Alerts (AZ-204: Developing Solutions for Microsoft Azure Monitor and Troubleshoot Azure Solutions), with the correct answer and a step-by-step solution.

medium · MCQ · Q-64053A

A company wants an alert only when an Application Insights availability test fails from at least two different test locations during the same 10-minute period. Which approach best implements this requirement?

  1. A.Create a metric alert on server response time and set the threshold to 10 minutes.
  2. B.Create a metric alert on availability with an average aggregation, without using the location dimension.
  3. C.Create a scheduled query alert using availabilityResults, count distinct location values for failed results in the last 10 minutes, and alert when the count is at least two.Correct answer
  4. D.Create a request-failure alert for the application and configure it to evaluate only availability-test requests.

Solution

A requirement involving the number of distinct failing test locations is best expressed with a Kusto query over availabilityResults, for example: availabilityResults | where timestamp > ago(10m) and success == false | summarize FailedLocations=dcount(location) | where FailedLocations >= 2. A scheduled query alert can fire when that query returns a row.

More from Application Insights – Availability Tests and Alerts

All of Application Insights – Availability Tests and Alerts

Practise more Monitor and Troubleshoot Azure Solutions

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed