PrepAway - Latest Free Exam Questions & Answers

Which two actions should you recommend?

You are designing a Windows Azure application.
The application includes processes that communicate by using Windows Communications Foundation (WCF) services.
The WCF services must support streaming.
You need to recommend a host for the processes and a WCF binding.
Which two actions should you recommend?
(Each correct answer presents part of the solution. Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
Host the processes in web roles.

B.
Host the processes in worker roles.

C.
Use NetTcpBinding for the WCF services.

D.
Use WSHttpBinding for the WCF services.

Explanation:
The easiest way to use net.tcp:// port sharing in your Windows Communication Foundation (WCF) application is to expose a service using the NetTcpBinding.

This binding provides a PortSharingEnabled property that controls whether net.tcp:// port sharing is enabled for the service being configured with this binding.

The following procedure shows how to use the NetTcpBinding class to open an endpoint at the Uniform Resource Identifier (URI) net.tcp://localhost/MyService, first in code and then by using configuration elements

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.

One Comment on “Which two actions should you recommend?


Leave a Reply