Soru

Zorluk: KolayConfigure Application Insights Web Tests and Availability Monitoring

You need to set up availability monitoring for a public website using Application Insights. The test must periodically send an HTTP GET request to the homepage, verify that it returns an HTTP 200 OK200\text{ OK} response, and run from multiple global geographic locations. You want to accomplish this with minimal configuration effort and without writing or deploying any custom code. Which monitoring configuration should you use?

  1. Configure a Standard availability test in the Application Insights resource.Cevap
  2. B
    Create a custom console application that calls the TrackAvailability method using the TelemetryClient class, omitting the connection string configuration.
  3. C
    Define an App Service autoscale rule with custom metrics to trigger availability checks when traffic increases.
  4. D
    Implement an Azure API Management policy in the outbound section to redirect ping requests to the homepage.

Cevap

Configure a Standard availability test in the Application Insights resource.
Configuring a Standard availability test allows developers to monitor a single URL endpoint with multi-region testing, custom status codes, and HTTP verbs directly from the Azure portal without any coding or deployment overhead.

Adım Adım Çözüm

1
Identify the requirement to monitor a public HTTP endpoint from multiple locations without code.
Confirming that an out-of-the-box availability test type is required.
Standard availability tests are built-in, codeless tests that check single-page uptime, SSL validation, HTTP verbs, and headers from selected global points.
2
Evaluate the standard test capabilities against the scenario.
A Standard test supports sending a GET request, checking for an HTTP 200 status code, and running across multiple global regions without custom code.
This matches all constraints of the scenario with the minimum administrative effort.

Anahtar Kavram

Application Insights Standard availability tests allow codeless monitoring of public endpoints using HTTP verbs, status code matching, and multi-region testing.
Bu soruyu puanla