单选题You plan to host a Windows Communication Foundation (WCF) service in a Windows Azure worker role.  Custom code is necessary to initialize and configure the service endpoint.   You need to recommend the point at which the application should initialize t

题目
单选题
You plan to host a Windows Communication Foundation (WCF) service in a Windows Azure worker role.  Custom code is necessary to initialize and configure the service endpoint.   You need to recommend the point at which the application should initialize the WCF service.  What should you recommend?()
A

 When Windows Azure initializes the worker role instance.

B

 When the worker role instance receives its first request.

C

 When the worker role instance instantiates the WCF service.

D

 When the worker role instance enters the main execution thread.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are creating an application that consumes a Windows Communication Foundation (WCF) service. The service implements the IService contract. The client application contains the CallbackHandler class, which implements IServiceCallback.You need to ensure that a client proxy is created that can communicate with the service over a duplex channel.Which code segment should you use?()

A.

B.

C.

D.


参考答案:B

第2题:

Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the lTimeService service interface in the TimeService class.You need to configure the service endpoint for HTTP communication. How should you define the service and endpoint tags?()

A.

B.

C.

D.


参考答案:D

第3题:

You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.The Windows Service class will inherit from ServiceBase.You need to ensure that the WCF service starts when the Windows Service is restarted.What should you do in the Windows Service class?()

A.

B.

C.

D.


参考答案:B

第4题:

You are planning to migrate an existing web application to Windows Azure.  The application consists of an ASP.NET web application and a set of native Win32 Windows Services that provide data to the application by using named pipes. The Windows Services cannot be modified.  You need to recommend a strategy for migrating the application to Windows Azure.  What should you recommend?()

  • A、 Define a Windows CommunicationFoundation (WCF) contract for the services.
  • B、 Deploy each Windows Service to a separate worker role.  Deploy the ASP.NET application to a web role.
  • C、 Deploy the application and Windows Services in a Windows Azure VM role.
  • D、 Upload service binaries to a web role by using the Windows Azure Service Management API.

正确答案:B

第5题:

You are designing a Windows Azure application.   The application will include services hosted in different geographic locations.  The service locations may change.   You must minimize the cost of communication between services.  You need to recommend an approach for calling the services.  What should you recommend?()

  • A、 Use the Service Management API.
  • B、 Use Windows Azure Table storage.
  • C、 Use Windows Azure Queue storage.
  • D、 Use the Windows Azure AppFabric Service Bus.

正确答案:D

第6题:

A Windows Communication Foundation (WCF) service is required to log all authorization attempts to the Windows Event Log. You need to configure a behavior and apply it to the service to support this requirement. Which behavior should you configure and apply?()

A. service Authentication Manager

B. service Authorization

C. service Credentials

D. service Security Audit


参考答案:D

第7题:

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?()

  • 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.

正确答案:B,C

第8题:

You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service.Which hosting environment should you choose? ()

A. Microsoft Internet Information Services (IIS) 6.0

B. Windows Process Activation Services (WAS)

C. A Windows Forms application

D. A Windows Service


参考答案:D

第9题:

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?()

  • 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.

正确答案:B

第10题:

You are building a client for a Windows Communication Foundation (WCF) service. You need to create a proxy to consume this service. Which class should you use?()

  • A、ChannelFactory
  • B、 ServiceHost
  • C、ClientRuntime
  • D、CommunicationObject

正确答案:A

更多相关问题