A Windows Communication Foundation (WCF) service is deployed with netTcpBinding.This servi
A Windows Communication Foundation (WCF) service is deployed with netTcpBinding.This service uses a duplex message exchange pattern.You are developing the next version of the WCF service.You discover that your company‘s hardware load balancer performs correctly only for WCF services that use HTTP.You need to ensure that your service works with the load balancer.What should you do?()
A. Use basicHttpBinding.
B. Create a custom binding that has the compositeDuplex, textMessageEncoding, and namedPipeTransport binding elements in this order.
C. Create a custom binding that has the compositeDuplex, textMessageEncoding, and wsHttpTransport binding elements in this order.
D. Use wsHttpBinding.
时间:2023-08-25 16:32:03
-
You have a secured Windows Communication Foundation (WCF) service. You need to track unsuccessful attempts to access the service. What should you do?()
A . Set the authorization Manager Type attribute of the service Authorization behavior to Message.
B . Set the include Exception Detailsln Faults attribute of the service Debug behavior to true.
C . Set the Mode attribute of the security configuration element to Message.
D . Set the message Authentication AuditLevel attribute of the service Security Audit behavior to Failure.
-
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
-
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
-
You are developing a Windows Communication Foundation (WCF) service. You need to enable security auditing for all events. What should you do?()
A . Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.
B . Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.
C . Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.
D . Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.
-
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.
-
You have a server that runs Windows Server 2008. You need to prevent the server from establishing communication sessions to other computers by using TCP port 25. What should you do()
A . From Windows Firewall, add an exception
B . From windows Firewall enable the block all incoming connections option
C . From the Windows Firewall with Advanced Security snap-in, create an inbound rule
D . From the Windows Firewall with Advanced Security snap-in, create an outbound rule.
-
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 .
-
You have a self-hosted Windows Communication Foundation (WCF) service. You need to configure the service to provide an X509 certificate during authentication. What should you use to configure the service?()
A . the Certificate property of the X509 Certificate lnitiator Service Credential class
B . the SetCertificate method of the X509 Certificate Initiator Service Credential class
C . the SetCertificate method of the X509 Certificate Recipient Service Credential class
D . the TrustedStoreLocation property of the X509 Certificate Recipient Service Credential cla
-
You are developing a Windows Communication Foundation (WCF) service that must be discoverable.You need to ensure that the ServiceHost instance supports multiple discovery versions. What should you do?()
A . - Specify a unique DiscoveryVersion parameter for each endpoint constructor. - Use the same value for the Address property of each endpoint.
B . - Use the endpoint constructor without the DiscoveryVersion parameter. - Use a unique value for the Address property of each endpoint.
C . - Specify a unique DiscoveryVersion parameter for each endpoint constructor. - Use a unique value for the Address property of each endpoint.
D . - Use the endpoint constructor without the DiscoveryVersion parameter. - Use the same value for the Address property of each endpoint.
-
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.
-
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 >.
-
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 consumes a Windows Communication Foundation (
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>
-
You are developing a Windows Communication Foundation (WCF) service. The following code de
You are developing a Windows Communication Foundation (WCF) service. The following code defines and implements the service. (Line numbers are included for reference only.)01 [ServiceContract(SessionMode = SessionMode.Allowed)]02 public interface ICatchAll03 {04 [OperationContract(IsOneWay = false, Action = "*", ReplyAction = "*")]05 Message ProcessMessage(Message message);06 }0708 public class CatchAllService : ICatchAll09 {10 public Message ProcessMessage(Message message)11 {1213 ...14 return returnMsg;15 }16 }You need to ensure that two identical copies of the received message are created in the service.Which code segment should you insert at line 12?()
A.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/fab6269351e4a04ee0a851d5f96dd506.jpg' />
B.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/98c2a291de971b52b6b11f0f31a030d2.jpg' />
C.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/d546143d78ff2c6f1aed7463f1a53f65.jpg' />
D.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/ce013fc7da98b989aab41a9ab89c550d.jpg' />
-
You are creating a Windows Communication Foundation (WCF) service. The service endpoints c
You are creating a Windows Communication Foundation (WCF) service. The service endpoints change frequently. On the service, you add a new ServiceDiscoveryBehavior to the Behaviors collection of the ServiceHost Description property. You need to ensure that client applications can communicate with the service and discover changes to the service endpoints.What should you do?()
A. Add a new ServiceDiscoveryBehavior to the Behaviors collection in the client application.
B. Add a new AnnouncementClient to the Behaviors collection in the client application.
C. Use the FindCriteria class and the UdpDiscoveryEndpoint class to set up the binding in the client application.
D. Use the DiscoveryProxy class and the EndpointDiscoveryMetadata class to set up the binding in the client application.
-
You are developing a Windows Communication Foundation (WCF) service. The service needs to
You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources.You need to ensure that the service accesses these resources on behalf of the originating caller. What should you do?()
A. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenlmpersonationLevel.Impersonation
B. Set the value of ServiceSecurityContext.Current.Windowsldentity.ImpersonationLevel to TokenlmpersonationLevel.Delegation
C. Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding
D. Set the PnncipalPermissionAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to wsHttpBinding
-
You have a server that runs windows server 2008. You need to prevent the server from establishing communication sessions to other computers by using TCP port 25. What should you do?()
A.From windows firewall, add an exception.
B.From windows firewall enable the block all incoming connections option.
C.From the windows firewall with advanced security snap-in, create an inbound rule.
D.From the windows firewall with advanced security snap-in, create an outbound rule.
-
You are developing a Windows Communication Foundation (WCF) service. You enable logging in
You are developing a Windows Communication Foundation (WCF) service. You enable logging in the configuration file.The opening tag is defined as follows.<messagelogging br="" logentiremessage="true"> logMalformedMessages="true"logMessagesAtServiceLevel="true"logMessagesAtTransportLevel="true"maxMessagesToLog="20">You need to ensure that logging is implemented so that only messages with SOAP headers are logged.What should you add to the filters element of the application configuration file?()
A.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/dabf07576919d2888eaaebeeefbe8e42.jpg' />
B.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/0d3fc5a751c48bf4454f58321ef53f4c.jpg' />
C.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/c3e7538a5accad25aa4ac16ce8d2126d.jpg' />
D.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/241428daaa8185f55a085326b8cf7f39.jpg' />
-
You are moving a Windows Communication Foundation (WCF) service into production. You need
You are moving a Windows Communication Foundation (WCF) service into production. You need to be able to monitor the health of the service. You only want to enable all performance counter instances exposed by the ServiceModelService counter group. Which element should you add to the system.serviceModel section in the application configuration file?()
A. <diagnostics performancecounters="ServiceOnly">
B. <diagnostics performancecounters="Off" wmiproviderenabled="true">
C. <diagnostics performancecounters="All">
D. <diagnostics wmiproviderenabled="true">
-
You are creating a Windows Communication Foundation (WCF) service based on WSHttpBinding.
You are creating a Windows Communication Foundation (WCF) service based on WSHttpBinding. New audit requirements dictate that callers must be authenticated on every call to ensure that their credentials have not been revoked.You need to ensure that the service will not cache the security request token. What should you do?()
A. Apply a ServiceBehavior attribute to the service implementation class with the lnstanceContextMode property set to Single.
B. In the message security configuration, change clientCredentialType from lssuedToken to UserName
C. In the message security configuration, set establishSecurityContext to false.
D. At the end of every operation, call the SessionStateUtility.RaiseSessionEnd method.
-
A Windows Communication Foundation (WCF) solution uses the following contract:[ServiceCont
A Windows Communication Foundation (WCF) solution uses the following contract:[ServiceContract(SessionMode=SessionMode.Allowed)]public interface IMyService{ [OperationContract(IsTerminating=false)] void Initialize();[OperationContract(IsInitiating=false)] void DoSomething(); [OperationContract(IsTerminating=true)] void Terminate();}You need to change this interface so that: lnitialize is allowed to be called at any time before Terminate is called. DoSomething is allowed to be called only after Initialize is called, and not allowed to be called after Terminate is called. Terminate will be allowed to be called only after Initalize is called.Which two actions should you perform? (Each correct answer presents part of the sdution. Choose two)()。
A. Change the ServiceContract attribute of the IMyService interface to the following. [ServiceContract(SessionMode=SessionMode.Required)]
B. Change the ServiceContract attrbute of the IMyService interface to the following [ServiceContract(SessionMode=SessionMode.Allowed)]
C. Change the OperationContract attribute of the Initialize operation to the following. [OperationContract(IsInitiating = true, IsTerminating = false)]
D. Change the OperationContract attribute of the Terminate operation to the following [OperationContract(IsInitiating = false, IsTerminating = true)]
-
You develop a Windows Communication Foundation (WCF) service that uses basic authenticatio
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 creating a Windows Communication Foundation (WCF) service that is implemented as f
You are creating a Windows Communication Foundation (WCF) service that is implemented as follows.(Line numbers are included for reference only.)01 [ServiceContract]02 [ServiceBehavior(IncludeExceptionDetailsInFaults = true)]03 public class OrderService04 {05 [OperationContract]06 public void SubmitOrder(Order anOrder)07 {08 try09 {10 ...11 }12 catch(DivideByZeroException ex)13 {14 ...15 }16 }17 }You need to ensure that the stack trace details of the exception are not included in the error information sent to the client.What should you do?()
A. Replace line 14 with the following line: throw;
B. Replace line 14 with the following line: throw new FaultException<order>(anOrder, ex.ToString());
C. After line 05, add the following line: [FaultContract(typeof(FaultException<order>))] Replace line 14 with the following line: throw ex;
D. Alter line 05, add the following line: [FaultContract(typeof(FaultException<order>))] Replace line 14 with the following line: throw new FaultException<order>(anOrder, "Divide by zero exception");</order></order></order></order>