网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
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 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.” 相关考题
考题 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.

考题 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. MaxRetryCountB. MaxTransferWindowSizeC. MaxPendingChannelsD. InactivityTimeout

考题 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. TimeoutExceptionB. FaultExceptionC. DivideByZeroExceptionD. FaultExceptionSalesFault

考题 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.

考题 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 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.

考题 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. AnnouncementServiceB. AnnouncementClientC. DiscoveryClientD. HttpListener

考题 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.

考题 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.

考题 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.

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

考题 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 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).

考题 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");

考题 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 10B、Set logMessageAtServiceLevel to true.C、Set maxMessagesToLog to 10.D、Set logMessageAtTransportLevel to true.

考题 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、ChannelFactoryB、 ServiceHostC、ClientRuntimeD、CommunicationObject

考题 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、AnnouncementServiceB、AnnouncementClientC、DiscoveryClientD、HttpListener

考题 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.

考题 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、routingB、service DebugC、service Security AuditD、workflow Unhandled Exception

考题 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 DuplexClientBaseTChannel .D、On the client, use GetCallbackChannelT .

考题 单选题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 ChannelFactoryB ServiceHostC ClientRuntimeD CommunicationObject

考题 单选题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 MaxRetryCountB MaxTransferWindowSizeC MaxPendingChannelsD InactivityTimeout

考题 单选题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 NetTcpContextBindingB BasicHttpContextBindingC NetTcpBindingD NetMsmqBinding

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

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

考题 单选题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 TimeoutExceptionB FaultExceptionC DivideByZeroExceptionD FaultExceptionSalesFault

考题 单选题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 DuplexClientBaseTChannel .D On the client, use GetCallbackChannelT .