70-513 Exam Details

  • Exam Code
    :70-513
  • Exam Name
    :TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :323 Q&As
  • Last Updated
    :Nov 06, 2025

Microsoft 70-513 Online Questions & Answers

  • Question 251:

    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.

  • Question 252:

    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:
    B. Replace the code segment at line 01 with the following code segment:
    C. Insert the following code segment at line 07:
    D. Insert the following code segment at line 07:

  • Question 253:

    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 A
    B. a message filter with a priority of 0 that will forward messages that total between $0 and $500 to Service A
    C. a message filter with a priority of 0 that will forward all messages to Service B
    D. a message filter with a priority of 100 that will forward all messages to Service B

  • Question 254:

    You 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)]
    B. Decorate the service implementation class with the following line of code. [ServiceBehavior( ConcurrencyMode = ConcurrencyMode.Multiple)]
    C. Call the Invoke method of the form and supply a delegate.s
    D. Call the BeginInvoke method of the form and supply a delegate.

  • Question 255:

    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 segment
    B. Configure the System. Service Model trace source in the system diagnostics configuration section. In the system.serviceModel configuration, add the following XML segment,
    C. Configure the System. Service Model Message Logging trace source in the system diagnostics configuration sectionIn the system. service Model configuration, add the following XML segment.
    D. Configure the System. Service Model Message Logging trace source in the system. diagnostics configuration section. In the system service Model configuration, add the following xML segment

  • Question 256:

    A 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 FaultException
    B. Catch both TimeoutFaultException and FaultException. Create a new channel in both cases.
    C. Catch and handle TimeoutFaultException.Catch FaultException and create a new channel.
    D. Catch and handle FaultException.Catch TimeoutFaultException and create a new channel.

  • Question 257:

    You 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}")]
    B. [WebGet(UriTemplate = "BookByTitle/{title}")]
    C. [WebGet(UriTemplate = "{titleToSearch}"]
    D. [WebGet(UriTemplate = "Book/{titleToSearch}")]

  • Question 258:

    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.
    B. Add the following XML segment between lines 10 and 11.
    C. Add the following XML segment between lines15 and 16.
    D. Add the following XML segment between lines 15 and 16

  • Question 259:

    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.
    B. Implement IEndpointldentityProvider in the message contract class.
    C. Implement ISecureConversationSession in the message contract class.
    D. For all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to Sign.

  • Question 260:

    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.
    B. Set the ProtectionLevel property on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to webHttpBinding.
    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 PrincipalPermissionAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to wsHttpBinding.

Tips on How to Prepare for the Exams

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.