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?
- A.Create a metric alert on server response time and set the threshold to 10 minutes.
- B.Create a metric alert on availability with an average aggregation, without using the location dimension.
- 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
- 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
- A team wants to detect when its public API becomes unreachable from outside Azure. They create an Application Insights availability test fo…
- An Application Insights URL availability test named Checkout API runs every five minutes. The team must be alerted when the availability of…
- An application has a checkout workflow that requires logging in, adding an item to a cart, and verifying that the total is correct. The wor…
- An Application Insights URL availability test calls an endpoint that returns HTTP 204 with an empty response body. The test is configured t…
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 freeFree to start · No credit card needed