Application Insights – Availability Tests and Alerts · AZ-204: Developing Solutions for Microsoft Azure Monitor and Troubleshoot Azure Solutions
An application has a checkout workflow that requires logging in, adding an item to a cart, and verifying that the total is correct. The workflow cann…
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.
hard · MCQ · Q-4D3608
An application has a checkout workflow that requires logging in, adding an item to a cart, and verifying that the total is correct. The workflow cannot be represented by a single unauthenticated URL request. The team wants the workflow to appear as Application Insights availability telemetry and wants alerts when it fails. Which approach should be used?
- A.Create a custom availability test that runs the workflow from a scheduled component, such as an Azure Function, and submit AvailabilityTelemetry with the test name, run location, duration, and success valueCorrect answer
- B.Create a standard URL ping test for the login page and assume that a successful login implies that the cart total is correct
- C.Enable request collection in Application Insights and wait for the platform to replay a previous user checkout automatically
- D.Create an availability alert on the App Service plan's memory metric without instrumenting the workflow
Solution
A multi-step business workflow requires custom synthetic execution. The scheduled component can perform the steps, validate the result, and send an AvailabilityTelemetry item through the Application Insights SDK. The resulting availability data can then be used by an Azure Monitor availability alert. A single URL test and ordinary request collection cannot validate the complete workflow.
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 Insights URL availability test calls an endpoint that returns HTTP 204 with an empty response body. The test is configured t…
- A company wants an alert only when an Application Insights availability test fails from at least two different test locations during the sa…
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