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

    You are creating a Windows Communication Foundation (WCF) service.

    You have the following requirements:

    Messages must be sent over TCP.

    The service must support transactions.

    Messages must be encoded using a binary encoding. Messages must be secured using Windows stream-based security.

    You need to implement a custom binding for the service. In which order should the binding stack be configured?

    A. tcpTransport windowsStreamSecurity transactionFlow binaryMessageEncoding
    B. transactionFlow binaryMessageEncoding windowsStreamSecurity tcpTransport
    C. windowsStreamSecurity tcpTransport binaryMessageEncoding t ransactionFlow
    D. binaryMessageEncoding transactionFlow tcpTransport windowsStreamSecurity

  • Question 262:

    You are consuming a Windows Communication Foundation (WCF) service. The service interface is defined as follows.

    [DataContract(Namespace = "")]

    public class Item

    {

    ...

    }

    [ServiceContract(Namespace = "")]

    public interface ICatalog

    {

    [OperationContract]

    [WebInvoke(Method = "POST", UriTemplate = "/Item")]

    Item UpdateItem(Item item);

    }

    The client application receives a WebResponse named response with the response from the service.

    You need to deserialize this response into a strongly typed object representing the return value of the method.

    Which code segment should you use?

    A. DataContractSerializer s = new DataContractSerializer(typeof(Item)); Item item = s.ReadObject(response.GetResponseStream()) as Item; BinaryFormatter f = new BinaryFormatter();
    B. Item item = f.Deserialize(response.GetResponseStream()) as Item; XmlDictionaryReader r = JsonReaderWriterFactory.CreateJsonReader( response.GetResponseStream(), XmlDictionaryReaderQuotas.Max);
    C. DataContractSerializer s = new DataContractSerializer(typeof(Item)); Item item = s.ReadObject(r) as Item;
    D. DataContractJsonSerializer s = new DataContractJsonSerializer(typeof(Item)); Item item = s.ReadObject(response.GetResponseStream()) as Item;

  • Question 263:

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

    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?

    A. [OperationContract(IsOneWay = true, Action = "*", ReplyAction = "*")] void PostData(Order data);
    B. [OperationContract(IsOneWay = true, Action = "*", ReplyAction = "*")] void PostData(BodyWriter data);
    C. [OperationContract] void PostData(BodyWriter data);
    D. [OperationContract] void PostData(Message data);

  • Question 265:

    You have an existing Windows Communication Foundation (WCF) Web service.

    The Web service is not responding to messages larger than 64 KB.

    You need to ensure that the Web service can accept messages larger than 64 KB without generating errors.

    What should you do?

    A. Increase the value of maxReceivedMessageSize on the endpoint binding.
    B. Increase the value of maxRequestLength on the httpRuntime element.
    C. Increase the value of maxBufferSize on the endpoint binding.
    D. Increase the value of maxBufferPoolSize on the endpoint binding.

  • Question 266:

    Four Windows Communication Foundation (WCF) services are hosted in Microsoft Internet Information Services (IIS). No behavior configuration exists in the web.config file.

    You need to configure the application so that every service and endpoint limits the number of concurrent calls to 50 and the number of concurrent sessions to 25.

    Which XML segment should you add to the system.serviceModel configuration section of the web.config file?

    A. < serviceBehaviors > < behavior name= " * " > < serviceThrottling maxConcurrentCalls ="50" maxConcurrentSessions ="25"/>
    B. < behaviors> < serviceBehaviors > < serviceThrottling maxConcurrentCalls ="50" maxConcurrentSessions ="25"/>
    C. < serviceBehaviors > < serviceThrottling maxConcurrentCalls ="50" maxConcurrentSessions ="25"/>
    D. < serviceBehaviors > < serviceThrottling maxConcurrentCalls ="50" maxConcurrentSessions ="25"/>

  • Question 267:

    You are hosting a Windows Communication Foundation (WCF) service under Microsoft Internet Information Services (IIS) 7.0.

    You have set up a Web site in IIS Manager. The physical path is C:\wwwroot\Calendar. There is a Calendar.svc file in the C:\wwwroot\Calendar folder. It contains the following directive.

    <%@ ServiceHost Language="C#" Debug="true" Service="Calendar.Calendar" CodeBehind="Calendar.svc.cs" %>

    The Calendar.svc.cs file contains the source for the Calendar class in the Calendar namespace. You compile this code into the Calendar.dll file.

    You need to deploy your service to the Web site.

    What should you do?

    A. Copy the Calendar.dll file to the C:\wwwroot\Calendar\code folder.
    B. Copy the Calendar.dll file to the C:\wwwroot\Calendar\bin folder.
    C. Copy the Calendar.svc.cs file to the C:\wwwroot\Calendar\bin folder.
    D. Copy the Calendar.svc.cs file to the C:\wwwroot\Calendar\code folder.

  • Question 268:

    Windows Communication Foundation (WCF) service will be hosted in Microsoft Intemnet Information Services (uS). You create a new application in uS to host this service and copy the service DLL to the bin directory of the application. You need to complete the deployment of this service to uS. What should you do next?

    A. Create an asmx file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.
    B. Create an .asmx file and add a @Register directive to this file. Copy the file to the bin directory of the application.
    C. Create a svc file and add a @ServiceHost directive to this file Copy the file to the root of the application directory.
    D. Create a .svc file and add a @Register directive to this file. Copy the file to the bin directory of the application.

  • Question 269:

    You have a secured Windows Communication Foundation (WCF) service.

    You need to track unsuccessful attempts to access the service.

    What should you do?

    A. Set the authorizationManagerType attribute of the serviceAuthorization behavior to Message
    B. Set the includeExceptionDetailslnFaults attribute of the serviceDebug behavior to true
    C. Set the Mode attribute of the security configuration element to Message
    D. Set the messageAuthenticationAuditLevel attribute of the serviceSecurityAudit behavior to Failure.

  • Question 270:

    You are configuring a routing service to call a target service. The routing service has no knowledge of the target service's data types other than the service contract. The operation contract for all of the methods of the target service specifies IsOneWay=true. You need to specify the endpoint information for the routing service. What should you do?

    A. In the target service configuration file, specify "*" for the client endpoint contract and "*" for the service endpoint contract.
    B. In the routing service configuration file, specify "*" for the client endpoint contract and System.ServiceModel.Routing.ISimplexDatagramRouter for the service endpoint contract.
    C. In the routing service configuration file, specify "*" for the client endpoint contract and "*" for the service endpoint contract.
    D. In the routing service configuration file, specify "*" for the client endpoint contract and System.ServiceModel.Routing.IRequestReplyRouter for the service endpoint contract.

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.