Monitor and Alerting Solution for Azure App Services

Implementing Website Monitoring and Alerting for Azure App Services

Question

You are developing applications for a company.

You plan to host the applications on Azure App Services.

The company has the following requirements: -> Every five minutes verify that the websites are responsive.

-> Verify that the websites respond within a specified time threshold.

Dependent requests such as images and JavaScript files must load properly.

-> Generate alerts if a website is experiencing issues.

-> If a website fails to load, the system must attempt to reload the site three more times.

You need to implement this process with the least amount of effort.

What should you do?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

D.

You can monitor a recorded sequence of URLs and interactions with a website via multi-step web tests.

Incorrect Answers: A: Selenium is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers.

It provides extensions to emulate user interaction with browsers, a distribution server for scaling browser allocation, and the infrastructure for implementations of the W3C WebDriver specification that lets you write interchangeable code for all major web browsers.

https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-multistep

The company has requirements to ensure that their websites are responsive, load within a specified time threshold, and generate alerts if there are issues. Additionally, the system must attempt to reload the site three more times if it fails to load. To achieve these requirements, we need a monitoring solution that can continuously check the website's availability and performance.

Option A: Creating a Selenium web test and scheduling it as a task from a workstation may be a valid solution, but it is not the most efficient approach. This solution requires setting up and maintaining a workstation, which is not scalable, and it may not generate alerts or retry attempts.

Option B: Setting up a URL ping test to query the home page is a good solution, but it only checks the availability of the website and does not verify that the website is responsive or that dependent requests such as images and JavaScript files load correctly.

Option C: Creating an Azure function to query the home page is a viable solution. Azure functions can be scheduled to run continuously and can generate alerts when the website is experiencing issues. However, it may require additional development effort to ensure that dependent requests load properly and that the system retries failed requests.

Option D: Creating a multi-step web test to query the home page is a more comprehensive solution. Multi-step web tests can simulate user interactions and verify that dependent requests load correctly. Additionally, it can retry failed requests up to three times, generating alerts if the website is experiencing issues.

Option E: Creating a Custom Track Availability Test to query the home page is a similar solution to option D. It can also simulate user interactions and verify that dependent requests load correctly. However, it may require additional configuration to retry failed requests and generate alerts.

Therefore, the best option to implement this process with the least amount of effort is option D, creating a multi-step web test to query the home page. This solution meets all the company's requirements and is scalable and easy to maintain.