exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 77 discussion

Actual exam question from Microsoft's 70-486
Question #: 77
Topic #: 1
[All 70-486 Questions]

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.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference: The Right Way to Handle Azure OnStop Events
http://azure.microsoft.com/blog/2013/01/14/the-right-way-to-handle-azure-onstop-events/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hungry_ape9000
Highly Voted 5 years, 1 month ago
FINAL ANSWER: Yes No Yes
upvoted 5 times
...
mmarinov
Most Recent 4 years, 5 months ago
It should be Yes No No https://azure.microsoft.com/en-us/blog/the-right-way-to-handle-azure-onstop-events/ "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. Remember that once the Stopping event is raised, the LB stops sending requests to the web role, so unless you had a massively under sized (or too few instances of) web role, you should never need more than a few seconds to complete the current requests."
upvoted 1 times
zinza
4 years, 5 months ago
The phrase "Once the current request’s counter drops to zero, OnStop returns, which initiates shutdown." is suggesting that the third answer is in fact YES.
upvoted 2 times
...
...
ifs
4 years, 6 months ago
I was in doubt regarding the third question
upvoted 1 times
...
a10d
4 years, 6 months ago
Yes No No - OnStop does not return immediately, but after pending requests are processed
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...