单选题A Windows Communication Foundation (WCF) client uses the following service contract.(Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IService 03 { 04 [OperationContract] 05 string Operation1( ); 06 [OperationCont

题目
单选题
A Windows Communication Foundation (WCF) client uses the following service contract.(Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IService 03 { 04 [OperationContract] 05 string Operation1( ); 06 [OperationContract] 07 string Operation2( ); 08 } You need to ensure that all calls to Operation1 and Operation2 from the client are encrypted and signed. What should you do?()
A

Set the ProtectionLevel property in line 01 to EncryptAndSign.

B

Set the ProtectionLevel property in line 04 and line 06 to Sign.

C

Add a SecurityCriticalAttribute ror each operation.

D

Add a SecunitySafeCriticalAttribute for each operation.


相似考题
更多“A Windows Communication Foundation (WCF) client uses the fol”相关问题
  • 第1题:

    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

  • 第2题:

    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

  • 第3题:

    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

  • 第4题:

    A Windows Communication Foundation (WCF) service implements the following contract. [ServiceContract] public interface IHelloService { [OperationContract(WebGet(UriTemplate="hello?name={name}"))]

    A.

    B.

    C.

    D.


    参考答案:B

  • 第5题:

    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. For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!
    • C、 On the client, create a proxy derived from DuplexClientBase(Of TChannel).
    • D、 On the client, use GetCallbackChannel(Of T).

    正确答案:C

  • 第6题:

    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

  • 第7题:

    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

  • 第8题:

    A Windows Communication Foundation (WCF) service interacts with the database of a workflow engine. Data access authorization is managed by the database, which raises security exceptions if a user is unauthorized to access it.You need to ensure that the application transmits the exceptions raised by the database to the client that is calling the service.Which behavior should you configure and apply to the service?()

    • A、routing
    • B、service Debug
    • C、service Security Audit
    • D、workflow Unhandled Exception

    正确答案:B

  • 第9题:

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

  • 第10题:

    单选题
    You are developing a Windows Communication Foundation (WCF) service. Client applications require reliable sessions to access the service.Users report that they receive ServerTooBusyException errors when their client application tries to establish a session. You need to ensure that the service can handle a minimum of 30 client connection requests. Which ReliableSessionBindingElement property should you configure?()
    A

    MaxRetryCount

    B

    MaxTransferWindowSize

    C

    MaxPendingChannels

    D

    InactivityTimeout


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

  • 第11题:

    单选题
    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. For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!

    C

     On the client, create a proxy derived from DuplexClientBase(Of TChannel).

    D

     On the client, use GetCallbackChannel(Of T).


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

  • 第12题:

    单选题
    You are developing a client application that consumes a Windows Communication Foundation (WCF) service. The operation contract is as follows. [OperationContract] [FaultContract(typeof(SalesFault))] string GetSales(string saleId);() The service configuration file contains the following line in the serviceBehaviors section. A divide-by-zero exception is not being handled by the service. You need to ensure that the exception is caught in the client application. Which type of exception should the client catch?()
    A

    TimeoutException

    B

    FaultException

    C

    DivideByZeroException

    D

    FaultException<SalesFault>


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

  • 第13题:

    A Windows Communication Foundation (WCF) service only accepts messages that are signed and encrypted. A client application is not receiving expected responses from the service. You need to enable logging to verify that the messages from the client are signed and encrypted. You also need to see what each message looks like before the message body is deserialized into a NET object. What should you do?()

    A.

    B.

    C.

    D.


    参考答案:C

  • 第14题:

    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

  • 第15题:

    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

  • 第16题:

    A Windows Communication Foundation (WCF) service uses the following service contract. [ServiceContract] public interface IService{ [OperationContract] string Operation1(string s);}You need to ensure that the operation contract Operation1 responds to HTTP POST requests.Which code segment should you use?()

    A.

    B.

    C.

    D.


    参考答案:A

  • 第17题:

    You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service.(Line numbers are included for reference only.) 01 BasicHttpBinding myBinding = new BasicHttpBinding( ); 02 EndpointAddress myEndpointAddress = new EndpointAddress("http://contoso.com/TaxService.svc"); 03 ... 04 ITaxService client = channelFactory.CreateChannel( ); 05 string data = client.GetData(1); You need to consume the service. Which code segment should you insert at line 03?()

    • A、var channelFactory = new ChannelFactory();
    • B、var channelFactory = new ChannelFactory(myBinding);
    • C、var channelFactory = new ChannelFactory(myBinding, myEndpointAddress);
    • D、var channelFactory = new ChannelFactory("http://contoso.com/TaxService.svc");

    正确答案:C

  • 第18题:

    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

  • 第19题:

    You are creating a client application and configuring it to call a Windows Communication Foundation (WCF) service.When the application is deployed, it will be configured to send all messages to a WCF routing service. You need to ensure that the application can consume the target service after the application is deployed. What should you do?()

    • A、In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the router service.
    • B、In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the target service.
    • C、In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the target service.
    • D、In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the router service.

    正确答案:D

  • 第20题:

    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

  • 第21题:

    单选题
    A Windows Communication Foundation (WCF) client uses the following service contract.(Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IService 03 { 04 [OperationContract] 05 string Operation1( ); 06 [OperationContract] 07 string Operation2( ); 08 } You need to ensure that all calls to Operation1 and Operation2 from the client are encrypted and signed. What should you do?()
    A

    Set the ProtectionLevel property in line 01 to EncryptAndSign.

    B

    Set the ProtectionLevel property in line 04 and line 06 to Sign.

    C

    Add a SecurityCriticalAttribute ror each operation.

    D

    Add a SecunitySafeCriticalAttribute for each operation.


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

  • 第22题:

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

  • 第23题:

    单选题
    You develop a Windows Communication Foundation (WCF) service that uses basic authentication for client credentials. This service is currently configured to use message security. The service is hosted on a server in workgroup mode.Users report that their passwords are stolen when they use public computers.You need to ensure that messages are secure and users are authenticated.You prevent the service from being called over HTTP through Microsoft Internet Information Services (IIS) configuration. What should you do next?()
    A

    Use the transport security mode and specify None for transport client credential type.

    B

    Use the transportWithMessageCredential security mode and specify Basic for the transport client credential type.

    C

    Use the message security mode and specify Basic for the transport client credential type.

    D

    Use the transportWithMessageCredential security mode and specify None for the transport client credential type.


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

  • 第24题:

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


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