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?

  1. 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
  2. B.Create a standard URL ping test for the login page and assume that a successful login implies that the cart total is correct
  3. C.Enable request collection in Application Insights and wait for the platform to replay a previous user checkout automatically
  4. 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

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