You need to ensure that the client can invoke methods on the service successfully
A client application calls a Windows Communication Foundation (WCF) service with a proxy
class that was generated by Visual Studio. The service binding was changed from
wsHttpBinding to basicHttpBinding. The method signatures in the service contract are
changed. After these changes, the client application receives errors when calling methods
on the service. You need to ensure that the client can invoke methods on the service
successfully. What should you do?
You need to ensure that the client applications can discover the services
You are configuring services to be discoverable. The services must be discoverable without
relying on a central server. Client applications that consume the services are on a network
segment that is separate from the network segment that the services are located on. A
firewall blocks all TCP ports between the two network segments, but allows other protocols
to pass through. You need to ensure that the client applications can discover the services.
What should you do?
Which code segment should you use?
Which code segment should you use?
You are developing a new version of an existing message contract named
CustomerDetailsVersion1. The new version of the message contract must add a
Department field of type String to the SOAP header. You create a new class named
GustomerDetailsVersion2 that inherits from CustomerDetailsVersion1. You need to ensure
that all client applications can consume the service. Which code segment should you use?
What should you add to the service configuration file?
You are developing a Windows Communication Foundation (WCF) service. You establish
that the largest size of valid messages is 8,000 bytes. You notice that many malformed
messages are being transmitted. Detailed information about whether each message is
malformed must be logged. You need to ensure that this information is saved in XML format
so that it can be easily analyzed. What should you add to the service configuration file?
You need to ensure that the ServiceHost instance supports multiple discovery versions
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?
You need to ensure that the transaction is aborted if the Update method is not successful
You are developing a Windows Communication Foundation (WCF) service that allows
customers to update financial data. The client applications call the service in a transaction.
The service contract is defined as follows. (Line numbers are included for reference only.)
Customers report that the transaction completes successfully even if the Update method
throws an exception. You need to ensure that the transaction is aborted if the Update
method is not successful. What should you do?
Which attribute should you use to decorate the service?
You are developing a Windows Communication Foundation (WCF) service that does not
operate on a duplex channel. You find that operations do not start until all previous
operations have finished. The service hosting code contains the following lines. var service
= new WarehouseService(); var host = new ServiceHost(service); You need to ensure that
new operations do not wait for previous operations to finish. Which attribute should you use
to decorate the service?
You need to restrict the collection of WMI data to a privileged account
You create a Windows Communication Foundation (WCF) service. It is deployed on
Microsoft Internet Information Services (IIS) with an application pool running as Network
Service. You enable WMI tracing before launching the service. Your IT support staff adds
WMI data collection through ASP.NET WMI tracing. You need to restrict the collection of
WMI data to a privileged account. What should you do in WMI Control in the Computer
Management console?
Which code segment should you use to retrieve the claim for validation?
You are creating a Windows Communication Foundation (WCF) service that uses
claims-based authorization. The following code retrieves the correct claim set. var claims =
ServiceSecurityContext.Current. AuthorizationContext.ClaimSets[0]; You need to validate
that the requesting client application has included a valid DNS value in the claim. Which
code segment should you use to retrieve the claim for validation?