Show answerHide answer
Correct answer: A Create an Azure Application Insights availability test and alert
Explanation
Explanation:This scenario requires monitoring the availability of a global web app by performing regular synthetic tests (URL pings) from specific geographic regions and alerting on failure. The key requirements are multi-geo URL ping tests and minimizing development time. The solution must be a managed service requiring no custom code.
Correct Option:
A. Create an Azure Application Insights availability test and alert
Application Insights provides a built-in availability test feature (also called URL ping test or standard test).
It allows you to create a test that requests a URL from multiple global test locations at a defined frequency (as low as every 5 minutes).
You can select specific regions as test sources. It automatically detects failures and can trigger alerts via Azure Monitor, requiring zero development effort.
Incorrect Option:
B. Create an Azure Service Health alert for the specific regions:
Service Health tracks the status of Azure services and platform issues (e.g., outages). It does not monitor the availability or performance of your specific application endpoint from different geographies.
C. Create an Azure Monitor Availability metric and alert:
Azure Monitor itself does not have a native "Availability metric" for web apps that performs external multi-region ping tests. The platform metrics for App Service (like HTTP 5xx errors) measure internal server errors, not end-to-end availability from global client perspectives.
D. Write an Azure function and deploy the function to the specific regions:
While technically possible, this involves significant development time (writing, deploying, and maintaining code in multiple regions) and building a custom alerting mechanism. This violates the requirement to minimize development effort.
Reference:
Microsoft Learn - "Monitor availability and responsiveness of any website". This documentation details how to set up Application Insights availability tests to test your application from multiple points around the world and configure alerts, meeting all specified requirements.