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 1:

    An existing Windows Communication Foundation (WCF) service uses basicHttpBinding. You are releasing updates to the service and the client application.

    You need to enable the client application to flow transactions to the service.

    What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

    A. Change to a custom binding that has the httpTransport, textMessageEndcoding, and transactionFlow binding elements in this order.
    B. Change to a custom binding that has the transactionFlow, textMessageEncoding, and httpTransport binding elements in this order.
    C. Change the binding to use wsHttpBinding.
    D. Change the binding to use basicHttpContextBinding.

  • Question 2:

    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.)

    A. Change the service behavior to the following. [ServiceBehavior( InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple) ]
    B. Change the service behavior to the following. [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall) ]
    C. Require the clients use threads, the Parallel Task Library, or other mechanism to issue service calls in parallel.
    D. Require the clients to use async operations when calling the service.

  • Question 3:

    You have an existing Windows Communication Foundation (WCF) service that exposes a service contract over HTTP using explicit binding configuration.

    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.

  • Question 4:

    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.

  • Question 5:

    You are developing a Windows Communication Foundation (WCF) service. You enable message logging, trace listeners, activity propagation, and tracing on the trace sources.

    You have the following code segment in the client application. (Line numbers are included for reference only.)

    You encounter errors when your client application consumes the service.

    You need to ensure that your client application can correlate tracing information with the service.

    Which code segment should you add at line 04?

  • Question 6:

    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 ProtectionLevelAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding
    B. Set the ProtectionLevelAttribute 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.

  • Question 7:

    A Windows Communication Foundation (WCF) service has the following contract.

    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?

    A. odd xmlns:soap="http://www.u3.org/2003/05/soap-envelope"> //soap:Action[text() = 'http://contoso.com/I5hipping/DoWorkResponse']
    B. //addr:Action[text() `http://contoso.com/IShipping/DoWorkResponse' ]
    C. //addr:Action[text() = 'http://contoso.com/IShipping/DoUork' ]

  • Question 8:

    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 InstanceContextMode property set to Single.
    B. In the message security configuration, change clientCredentialType from IssuedToken to UserName.
    C. In the message security configuration, set establishSecurityContext to false.
    D. At the end of every operation, call the SessionStateUtility.RaiseSessionEnd method.

  • Question 9:

    You are developing a Windows Communication Foundation (WCF) service that is used to check the status of orders placed by customers. The following code segment is part of your service. (Line numbers are included for reference only.)

    You need to ensure that the service always listens at net.pipe://SupplyChainServer/Pipe. What should you do?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 10:

    You develop a Windows Communication Foundation (WCF) service that is hosted within a console application. The service implements the IRegistrationService interface in a class named RegistrationService. The service uses the following endpoint URL:

    http://localhost:8080/registrationservice/basic

    You need to configure the console application to host the service.

    How should you complete the relevant markup? (To answer, drag the appropriate markup segment to the correct location in the answer area. Each segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

    Select and Place:

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.