单选题You have an existing Windows Communication Foundation (WCF) service that exposes a service contract over HTTP. You need to expose that contract over HTTP and TCP. What should you do?()A Add a net.tcp base address to the host.B Add an endpoint configure

题目
单选题
You have an existing Windows Communication Foundation (WCF) service that exposes a service contract over HTTP. You need to expose that contract over HTTP and TCP. What should you do?()
A

Add a net.tcp base address to the host.

B

Add an endpoint configured with a netTcpBinding.

C

Add an endpoint behavior named netTcpBehavior to the existing endpoint.

D

Add a binding configuration to the existing endpoint named netTcpBinding.


相似考题
更多“You have an existing Windows Communication Foundation (WCF)”相关问题
  • 第1题:

    You are developing a Windows Communication Foundation (WCF) service.You must record all available information for the first 1,000 messages processed, even if they are malformed.You need to configure the message logging section of the configuration file.Which configuration segment should you use? ()

    A.

    B.

    C.

    D.


    参考答案:A

  • 第2题:

    You want to debug the Windows Communication Foundation (WCF) client and server interaction through message and application tracing.You need to correlate traces generated on the client and the server. Which XML segment should you add to the system.diagnostics configuration element in the client and server application configuration file?()

    A.

    B.

    C.

    D.


    参考答案:A

  • 第3题:

    You are using Windows Communication Foundation (WCF) to create a service. You need to implement a custom message-level security binding element. Which binding element should you use?()

    A. Transport Security Binding Element

    B. Https Transport Binding Element

    C. Ssl Stream Secunty Binding Element

    D. Windows Stream Security Binding Element


    参考答案:A

  • 第4题:

    You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()

    A. NetTcpContextBinding

    B. BasicHttpContextBinding

    C. NetTcpBinding

    D. NetMsmqBinding


    参考答案:B

  • 第5题:

    You have an existing Windows Communication Foundation (WCF) Web service. The Web service is not responding to messages larger than 64 KB. You need to ensure that the Web service can accept messages larger than 64 KB without generating errors. What should you do?()

    A. Increase the value of maxReceivedMessageSize on the endpoint binding.

    B. Increase the value of maxRequestLength on the httpRuntime element.

    C. Increase the value of maxBufferSize on the endpoint binding.

    D. Increase the value of maxBufferPoolSize on the endpoint binding.


    参考答案:A

  • 第6题:

    Your Windows Communication Foundation (WCF) client application uses HTTP to communicate with the service.You need to enable message logging and include all security information such as tokens and nonces in logged messages.What should you do?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第7题:

    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

  • 第8题:

    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

  • 第9题:

    A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.You must ensure that the client application can interact with the WCF service. What should you do?()

    • A、On the OperationContractAttribute, set the AsyncPattern property value to true.
    • B、On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.
    • C、On the client, create a proxy derived from DuplexClientBase<TChannel >.
    • D、On the client, use GetCallbackChannel<T >.

    正确答案:C

  • 第10题:

    单选题
    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


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    You have an existing Windows Communication Foundation (WCF) service that exposes a service contract over HTTP. You need to expose that contract over HTTP and TCP. What should you do?()
    A

    Add a net.tcp base address to the host.

    B

    Add an endpoint configured with a netTcpBinding.

    C

    Add an endpoint behavior named netTcpBehavior to the existing endpoint.

    D

    Add a binding configuration to the existing endpoint named netTcpBinding.


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()
    A

    NetTcpContextBinding

    B

    BasicHttpContextBinding

    C

    NetTcpBinding

    D

    NetMsmqBinding


    正确答案: C
    解析: 暂无解析

  • 第13题:

    Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders. The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay. You need to ensure that the service is configured to process multiple orders in one transaction. What should you do? ()

    A. Useservice behavior and set the maxConcurrentCalls attribute.

    B. Useendpoint behavior and set the maxBatchSize attribute.

    C. Useendpoint behavior and set the maxPendingReceives attribute.

    D. Useendpoint behavior.


    参考答案:B

  • 第14题:

    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

  • 第15题:

    A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.You need to implement a client that logs these notifications. Which class should you use?()

    A. AnnouncementService

    B. AnnouncementClient

    C. DiscoveryClient

    D. HttpListener


    参考答案:A

  • 第16题:

    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

  • 第17题:

    You have an existing Windows Communication Foundation (WCF) service. You need to ensure that other services are notified when the service is started.What should you do?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第18题:

    You are debugging a Windows Communication Foundation (WCF) service. The service uses signed and encrypted messages.You need to configure logging so that you can read the contents of the messages. What should you do?()

    • A、Set maxSizeMessagesToLog to 10
    • B、Set logMessageAtServiceLevel to true.
    • C、Set maxMessagesToLog to 10.
    • D、Set logMessageAtTransportLevel to true.

    正确答案:B

  • 第19题:

    A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.You need to implement a client that logs these notifications. Which class should you use?()

    • A、AnnouncementService
    • B、AnnouncementClient
    • C、DiscoveryClient
    • D、HttpListener

    正确答案:A

  • 第20题:

    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.

    正确答案:A

  • 第21题:

    You are using Windows Communication Foundation (WCF) to create a service. You need to implement a custom message-level security binding element. Which binding element should you use?()

    • A、Transport Security Binding Element
    • B、Https Transport Binding Element
    • C、Ssl Stream Secunty Binding Element
    • D、Windows Stream Security Binding Element

    正确答案:A

  • 第22题:

    单选题
    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
    解析: 暂无解析

  • 第23题:

    单选题
    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.


    正确答案: A
    解析: 暂无解析

  • 第24题:

    单选题
    You are using Windows Communication Foundation (WCF) to create a service. You need to implement a custom message-level security binding element. Which binding element should you use?()
    A

    Transport Security Binding Element

    B

    Https Transport Binding Element

    C

    Ssl Stream Secunty Binding Element

    D

    Windows Stream Security Binding Element


    正确答案: B
    解析: 暂无解析