Question 65


1.3.3 Question

Multiple Choices

Which of the following are valid reasons for overriding the Run method? (Choose all that apply.)

  • A. Creating and starting a messaging service that will work in parallel with the Web role to manage queued messages
  • B. Creating an always-running service that periodically makes HTTP calls to other websites to determine their availability
  • C. Managing error handling for the application
  • D. Starting and supporting a logging application for use by the Worker role

Answer:

ABD
Explanation
A. Correct: Creating and running an application in parallel is what the Run method was designed to allow.
B. Correct: The polling service is a good example of an activity in which the Run method enables a process to work independently of the main role.
C. Incorrect: The error handling will be managed in the OnError event and will not involve the overridden Run method.
D. Correct: Creating and running an application in parallel is what the Run method was designed to allow.