HOTSPOT
You develop a new ASP.NET MVC web application. The application is hosted in an Azure Web Role. It
includes the following code. Line numbers are included for reference only.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Explanation:
The Right Way to Handle Azure OnStop Events
http://azure.microsoft.com/blog/2013/01/14/the‐right‐way‐to‐handle‐azure‐onstop‐events/
Didn’t find the second. But the first and the third look good:
“The code above checks the ASP.NET request’s current counter. As long as there are requests, the OnStop method calls Sleep to delay the shutdown. Once the current request’s counter drops to zero, OnStop returns, which initiates shutdown. Should the web server be so busy that the pending requests cannot be completed in 5 minutes, the application is shut down anyway.”
https://azure.microsoft.com/en-gb/blog/the-right-way-to-handle-azure-onstop-events/
For the second
“If an exception occurs within one of the lifecycle methods, Azure will raise the UnhandledException event, and then the process is terminated. After your role has been taken offline, it will be restarted by Azure. When an unhandled exception occurs, the Stopping event is not raised, and the OnStop method is not called.”
source:
https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-role-lifecycle-dotnet
https://azure.microsoft.com/en-us/blog/the-right-way-to-handle-azure-onstop-events/