Chapter 2 · AZ-204: Developing Solutions for Microsoft Azure Monitor and Troubleshoot Azure Solutions

Application Insights – Availability Tests and Alerts

20 practice questions · 5 marks weightage

Practice questions

  1. Question 1Q-DA3710

    A team wants to detect when its public API becomes unreachable from outside Azure. They create an Application Insights availability test for the API endpoint. What does this test primarily provide?

    1. A.Synthetic requests from Azure test locations that record whether the endpoint responds successfully and how long it takes
    2. B.A trace of every SQL query executed by the API
    3. C.Automatic scaling of the App Service when response time increases
    4. D.A snapshot of the API process memory whenever a request fails
    See the answer and solution
  2. Question 2Q-98CD54

    An Application Insights URL availability test named Checkout API runs every five minutes. The team must be alerted when the availability of this test falls below 99 percent during a 15-minute period. Which configuration best meets the requirement?

    1. A.Create an Azure Monitor metric alert on the Application Insights availability metric, select the Checkout API test, use Average aggregation, and set the threshold below 99 percent over a 15-minute window
    2. B.Create an alert on the App Service CPU percentage metric with a threshold of 99 percent
    3. C.Create a log alert that searches application traces for the text "HTTP 500" during a 15-minute window
    4. D.Create an alert on request count and trigger it whenever the count is below 99 requests
    See the answer and solution
  3. Question 3Q-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 value
    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
    See the answer and solution
  4. Question 4Q-7D49BE

    An Application Insights URL availability test calls an endpoint that returns HTTP 204 with an empty response body. The test is configured to expect status code 200 and to find the text "Healthy" in the response. Why is the test reported as failed, and how should it be configured?

    1. A.The response does not satisfy either configured condition; expect status code 204 and remove or change the content match.
    2. B.Availability tests require HTTP 200, so the endpoint must be changed to return HTTP 200.
    3. C.The test is successful because any HTTP 2xx response automatically ignores content matching.
    4. D.The test is failing because availability tests cannot call endpoints that return an empty body.
    See the answer and solution
  5. Question 5Q-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.
    4. D.Create a request-failure alert for the application and configure it to evaluate only availability-test requests.
    See the answer and solution

15 more questions on Application Insights – Availability Tests and Alerts

Sign up free to practise the full chapter. Questions you get wrong come back until you've mastered them.

Start practising free

Free to start · No credit card needed