You need to send the stack trace of any unhandled exceptions to clients as a fault message
You are implementing a Windows Communication Foundation (WCF) service contract
named IContosoService in a class named ContosoService. The service occasionally fails
due to an exception being thrown at the service. You need to send the stack trace of any
unhandled exceptions to clients as a fault message. What should you do?
Which XML segment should you add to the system.serviceModel/diagnostics/messageLogging/filters configuration e
A Windows Communication Foundation (WCF) service has the following contract.
[ServiceContract(Namespace=”http://contoso.com”)] public interface IShipping {
[OperationContract] string DoWork(int id); } This is one of several service contracts hosted
by your application. All endpoints use SOAP 1.2 bindings with WS-Addressing 1.0. The
System.ServiceModel.MessageLogging trace source in the system.diagnostics
configuration section is configured with one listener. You need to make sure that only the
messages that are returned from the DoWork operation are logged. Which XML segment
should you add to the system.serviceModel/diagnostics/messageLogging/filters
configuration element?
You need to enable message logging and include all security information such as tokens and nonces in logged me
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?
Which element should you add to the system.serviceModel section in the application configuration file?
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 4.0.0.0 counter group.
Which element should you add to the system.serviceModel section in the application
configuration file?
You need to enable inspection of the malformed data and prevent message tampering
You create a Windows Communication Foundation (WCF) service and deploy it with
wsHttpBinding and message security enabled. You create an intermediate WCF service for
logging messages sent to the primary service. The intermediate service is called via the
clientVia endpoint behavior. The primary service is receiving malformed data from a client
application. You need to enable inspection of the malformed data and prevent message
tampering. What should you do?
Which performance counter should you monitor?
You develop a Windows Communication Foundation (WCF) service. You enable all
performance counters and run multiple calls to the service. The service must isolate session
data for each user. You need to monitor the instancing behavior used in the service. Which
performance counter should you monitor?
You need to ensure that all clients calling GetMessage will retrieve the updated string if the message is upda
A Windows Communication Foundation (WCF) solution uses the following contract to share
a message across its clients. (Line numbers are included for reference only.) The code for
the service class is as follows. The service is self-hosted. The hosting code is as follows.
You need to ensure that all clients calling GetMessage will retrieve the updated string if the
message is updated by any client calling PutMessage. What should you do?
What are two possible ways to achieve this goal?
A WCF service code is implemented as follows. (Line numbers are included for reference
only.) 01 [ServiceContract] 02 [ServiceBehavior(InstanceContextMode = 03
InstanceConcextMode.Single)] 04 public class CalculatorService 05 { 06
[OperacionContract] 07 public double Calculate(double opl, string op, double op2) 08 { …
24 } 25 } You need to decrease the response time of the service. What are two possible
ways to achieve this goal? (Each correct answer presents a complete solution. Choose
two.)
You need to ensure that the application can consume the target service after the application is deployed
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?
Which code segment should you use?
You are developing a client that sends several types of SOAP messages to a Windows
Communication Foundation (WCF) service method named PostData. PostData is currently
defined as follows. [OperationContract] void PostData(Order data); You need to modify
PostData so that it can receive any SOAP message. Which code segment should you use?