Objective 1.3: Design and implement the Windows Azure role life cycle Flashcards

1
Q

There are three different types of solutions available in Windows Azure:

A

Virtual Machines, Web Sites, and Cloud Services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

There are three types of roles in Windows azure

A

Web, Worker and Virtual Machines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do the startup tasks allow to do?

A

With startup tasks, you can register COM components, install a component, or set registry keys, for example.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

For which roles are startup tasks available?

A

Startup tasks are available only for Web and Worker roles; VM roles cannot manage startup tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What would be a typical startup task?

A

A typical startup task is a console application or a batch file that
can start one or more Windows PowerShell scripts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the procedure that Windows Azure follows to start a role?

A
  1. The instance is marked as Starting. It will no longer receive traffic.
  2. 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.
  3. The role host process is started and the site is created in IIS.
  4. The task calls the Microsoft.WindowsAzure.ServiceRuntime.RoleEntryPoint.OnStart
    method.
  5. The instance is marked as Ready and traffic is routed to the instance.
  6. The task calls the Microsoft.WindowsAzure.ServiceRuntime.RoleEntryPoint.Run method.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What occurs if an unhandled error is fired on a startup task?

A

The task will stop processing and return a non-zero value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

AppCmd.exe is an application that helps you work with which objects?

A
  • AppCmd.exe enables the configuration of virtual sites.
  • AppCmd.exe supports the administration of general configuration
    sections.
  • AppCmd.exe manages the support of applications.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly