Objective 1.3: Design and implement the Windows Azure role life cycle Flashcards
There are three different types of solutions available in Windows Azure:
Virtual Machines, Web Sites, and Cloud Services
There are three types of roles in Windows azure
Web, Worker and Virtual Machines
What do the startup tasks allow to do?
With startup tasks, you can register COM components, install a component, or set registry keys, for example.
For which roles are startup tasks available?
Startup tasks are available only for Web and Worker roles; VM roles cannot manage startup tasks.
What would be a typical startup task?
A typical startup task is a console application or a batch file that
can start one or more Windows PowerShell scripts.
What is the procedure that Windows Azure follows to start a role?
- The instance is marked as Starting. It will no longer receive traffic.
- Startup tasks are executed according to their taskType attribute:
A. Simple tasks are executed synchronously.
B. Background and foreground tasks are started asynchronously. This is in parallel with the tartup task. - The role host process is started and the site is created in IIS.
- The task calls the Microsoft.WindowsAzure.ServiceRuntime.RoleEntryPoint.OnStart
method. - The instance is marked as Ready and traffic is routed to the instance.
- The task calls the Microsoft.WindowsAzure.ServiceRuntime.RoleEntryPoint.Run method.
What occurs if an unhandled error is fired on a startup task?
The task will stop processing and return a non-zero value.
AppCmd.exe is an application that helps you work with which objects?
- AppCmd.exe enables the configuration of virtual sites.
- AppCmd.exe supports the administration of general configuration
sections. - AppCmd.exe manages the support of applications.
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
Correct answers: A, B, D
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.