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.You develop a Windows Communication Foundation (WCF) service that includes the following code. (Line numbers are included for reference only.)

ServiceB must not accept reentrant service calls. You need to modify the behavior of the service. What should you do?
A. Insert the following code segment at line 07:A Windows Communication Foundation (WCF) solution uses two services to manage a shopping cart. Service
A processes messages containing line items that total between $0 and $500. Service B processes messages containing line items that total more than $500. All messages are of equal importance to the business logic.
You need to route incoming messages to the appropriate services by using WCF routing.
Which two message filters should you add to the router? (Each correct answer presents part of the solution. Choose two.)
A. a message filter with a priority of 100 that will forward messages that total between $0 and $500 to Service AYou are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms application.
The ServiceHost instance is created in the Form constructor.
You need to ensure that the service is not blocked while the UI thread is busy.
What should you do?
A. Decorate the service implementation class with the following line of code. [ServiceBehavior( UseSynchronizationContext = false)]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 verity 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. Configure the System Service Model trace source in the system diagnostics configuration section. In the system service Model configuration add the following xML segmentA Windows Communication Foundation (WCF) service implements the following contract.
(Line numbers are included for reference only.)
01 [ServiceContract]
02 public interface IDataAccessService
03 {
01 [OperationContract]
05 void PutMessage(string message);
07 [OperationContract]
08 [FaultContract(typeof(TimeoutFaultException)) ]
09 [FaultContract(typeof(FaultException) ) ]
10 stringf] SearchMessages(string search);
11 }
The implementation of the SearchMessages method throws TimeoutFaultException exceptions for database timeouts. The implementation of the SearchMessages method also throws an Exception for any other issue it encounters while
processing the request. These exceptions are received on the client side as generic FaultException exceptions.
You need to implement the error handling code for SearchMessages and create a new channel on the client only if the channel faults.
What should you do?
A. Catch and handle both TimeoutFaultException and FaultExceptionYou are developing a Windows Communication Foundation (WCF) REST service to provide access to a library book catalog. The following code segment defines the service contract. (Line numbers are included for reference only.)

Library patrons want the ability to search the catalog by title.
You need to ensure that the GetBookByTitle method is exposed as a service method.
Which code segment should you insert at line 05?
A. [WebGet(UriTemplate = "Book/{title}")]You are adding a Windows Communication Foundation (WCF) service to an existing application. The application is configured as follows. (Line numbers are included for reference only.)
01
02
03
04 05 behaviorConfiguration="MetadataBehavior"> 06 07 08 09 10 11
12
13
14
15
16
17
18
You need to configure the service to publish the service metadata.
Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)
A. Add the following XML segment between lines 10 and 11.You are developing a Windows Communication Foundation (WCF) service. One of the parameters used with the service operations is a security token. The security token is not sensitive. The monitoring software tracks security tokens and
can read tokens in clear text only.
The company security policy requires that you validate all clear text data passed over the corporate network.
You need to ensure that the service verifies that the security token is not changed during transit.
What should you do?
A. For all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to EncryptAndSign.The endpoint of a Windows Communication Foundation (WCF) service uses basicHttpBinding for its binding. Your company's policies have changed to require that messages not be sent in clear text.
You must ensure that all messages are encrypted when traveling across the network.
What should you do?
A. Set the ProtectionLevel property on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-513 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.