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
- Question 1Q-DA3710See the answer and solution
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?
- A.Synthetic requests from Azure test locations that record whether the endpoint responds successfully and how long it takes
- B.A trace of every SQL query executed by the API
- C.Automatic scaling of the App Service when response time increases
- D.A snapshot of the API process memory whenever a request fails
- Question 2Q-98CD54See the answer and solution
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?
- 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
- B.Create an alert on the App Service CPU percentage metric with a threshold of 99 percent
- C.Create a log alert that searches application traces for the text "HTTP 500" during a 15-minute window
- D.Create an alert on request count and trigger it whenever the count is below 99 requests
- Question 3Q-4D3608See the answer and solution
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 value
- 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
- Question 4Q-7D49BESee the answer and solution
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?
- A.The response does not satisfy either configured condition; expect status code 204 and remove or change the content match.
- B.Availability tests require HTTP 200, so the endpoint must be changed to return HTTP 200.
- C.The test is successful because any HTTP 2xx response automatically ignores content matching.
- D.The test is failing because availability tests cannot call endpoints that return an empty body.
- Question 5Q-64053ASee the answer and solution
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.
- D.Create a request-failure alert for the application and configure it to evaluate only availability-test requests.
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 freeFree to start · No credit card needed