PrepAway - Latest Free Exam Questions & Answers

What should you recommend?

You are designing a Windows Azure web application that does not use ASP.NET.
The application requires a standalone Win32 interpreter.
You need to recommend an approach for allowing access to the interpreter.
What should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
Use a web role.
Configure the interpreter as an ISAPI filter.

B.
Use a web role.
Configure a FastCGI handler for the interpreter and set the path to the interpreter.

C.
Use a worker role with an internal endpoint.
Enable native code execution.

D.
Use a worker role with an external endpoint.
Configure a FastCGI handler for the interpreter and set the path to the root.

Explanation:
The Web Role is similar to a Web Application it has aspx pages and code behinds, but can also server anything that uses the http protocol, such as a WCF service using basicHttpBinding. The Web Role is driven by UI the user interacts with a web page or service and this causes some processing to happen. As far as I can tell, the http pipeline is very similar to standard ASP.NET requests. Just think of it as a good old ASP.NET web application.

The Worker Role is similar to a windows service. It starts up and is running all the time. Instead of a timer, it uses a simple while(true) loop and a sleep statement. When it ticks it performs some kind of maintenance work. This is great for background processing.

Webrolle Eine Webrolle ist eine fr die Webanwendungsprogrammierung angepasste Rolle, die von Internetinformationsdiensten und ASP.NET untersttzt wird. Ein Vorteil bei der Verwendung dieses Rollentyps besteht darin, dass Sie die IIS-Konfiguration nicht vornehmen mssen. Diese Rolle wird am besten zum Bereitstellen eines webbasierten Front-End fr den gehosteten Dienst verwendet. Sie ist nicht fr Prozesse mit langer Laufzeit geeignet. Weitere Informationen zu Webrollen finden Sie unter Overview of the Web Role.

Workerrolle Bei einer Workerrolle handelt es sich um eine Rolle, die fr die allgemeine Entwicklung ntzlich ist und Hintergrundprozesse fr eine Webrolle ausfhren kann. Wenn Sie Hintergrundprozesse mit langen oder periodischen Aufgaben ausfhren mssen, sollten Sie diese Rolle verwenden. Weitere Informationen zu Workerrollen finden Sie unter Developing a Background Service.
Windows Azure supports the Internet Information Server (IIS) 7.0 FastCGI module, so that developers may host web roles that call applications written in interpreted languages, such as PHP, or in native code.

To host a web role that runs a FastCGI application, you must:

Set the enableNativeCodeExecution flag in the service definition file. By default this attribute is set to true.

Enable FastCGI in the development environment and in Windows Azure.

Package your desired interpreter with your project.


Leave a Reply