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

    You develop an ASP.NET web application that is hosted in the virtual directory named SecureApp. The web application uses the ASP.NET membership provider. The application pool for the website uses the dedicated domain account named MyDomain\WebServiceAccount. The web.config file contains the connectionStrings element.

    You need to secure the connectionStrings element for the web application.

    Which of the following two commands must you run at a command prompt? (Each correct answer presents part of the solution. Choose two.)

    A. aspnet_regiis -pe "connectionStrings" -app "MyDomain\WebServiceAccount"
    B. aspnet_regiis -pe "connectionStrings" -app "/SecureApp"
    C. aspnet_regsql -pa "NetFrameworkConfigurationKey" "MyDomain\WebServiceAccount"
    D. aspnet_regiis -pa "NetFrameworkConfigurationKey" "MyDomain\WebServiceAccount"

  • Question 22:

    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

    Sub PostData(Byval data As Order) You need to modify PostData so that it can receive any SOAP message.

    Which code segment should you use?

    A. Sub PostData(ByVal data As Order)
    B. OperationContract(lsOneway: zTrue, Action:z'-', ReplyAction: z"-')> Sub PostData(ByVal data As BodyWriter)
    C. Sub PostData(Byval data As BodyWriter)
    D. Sub PostData(ByVal data As Message)

  • Question 23:

    A Windows Communication Foundation (WCF) client application is consuming an RSS syndication feed from a blog. You have a SyndicationFeed variable named feed. The application iterates through the items as follows. (Line numbers are included for reference only.) 01 For Each item As SyndicationItem In feed.Items 02 03 04 Next You need to display the content type and body of every syndication item to the console.

    Which two lines of code should you insert between lines 02 and 03?

    A. Console.WriteLine(item.Content.Type) Console.WriteLine(DirectCast(item.Content, TextSyndicationContent).Text)
    B. Console.WriteLine(item.Content.GetType()) Console.WriteLine(DirectCast(item.Content, TextSyndicationContent).Text)
    C. Console.WriteLine(item.Content.Type) Console.WriteLine(item.Content.ToString())
    D. Console.WriteLine(item.Content.GetType()) Console.WriteLine(item.Content.ToString())

  • Question 24:

    You are working with a Windows Communication Foundation (WCF) client application that has a generated proxy named SampleServiceProxy.

    When the client application is executing, in line 02 of the following code, the channel faults (Line numbers are included for reference only.)

    01 SampleServiceProxy proxy new SampleServiceProxy()

    02try

    03{

    04proxy Processlnvoice(invoice);

    05)

    06catch

    07{

    08 (proxy. State == CommunicationState. Faulted)

    09{

    10

    11)

    12)

    13 proxy Update Customer(customer);

    You need to retumn proxy to a state in which it can successfully execute the call in line 13.

    Which code segment should you use at line 10?

    A. proxy.CloseO;
    B. proxy new SampleServiceProxy0;c
    C. proxy.AbortO,
    D. proxy.Open()

  • Question 25:

    You have a Windows Communication Foundation (WCF) service.

    The service has issues with performance when it receives messages on a specific endpoint. The service must collect the minimum number of performance counters to diagnose the message issues.

    You need to configure the service.

    In the web.config file for the service, what should you do?

    A. In the service configuration diagnostics section, set the value of the performancCounters property to All.
    B. Enable message logging for the endpoint.
    C. Enable the Windows Management Instrumentation (WMI) provider.
    D. In the service configuration diagnostics section, set the value of the performanceCounters property to ServiceOnly.

  • Question 26:

    You are creating a Windows Communication Foundation (WCF) service that responds using plain-old XML (POX).

    You have the following requirements:

    You must enable the /catalog.svc/items operation to respond using the POX, JSON, or ATOM formats. You also must ensure that the same URL is used regardless of the result type.

    You must determine the response format by using the Accepts HTTP header.

    What should you do?

    A. Implement the IChannelInitializer interface in the service class.
    B. Implement the System.Runtime.Serialization.IFormatterConverter interface in the service class.
    C. Set the BodyStyle parameter of the WebGet attribute on the operation to WebMessageBodyStyle.WrappedResponse.
    D. Set the return type of the operation to System.ServiceModel.Channels.Message. Use the current WebOperationContext methods to return the data in the required format.

  • Question 27:

    Your company has an existing Windows Communication Foundation (WCF) service. The following code segment is part of the service. (Line numbers are included for reference only.)

    You need to ensure that AJAX client applications can access the service. Which code segment should you insert at line 02?

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

  • Question 28:

    You are creating a Windows Communication Foundation (WCF) service that is implemented as follows.

    (Line numbers are included for reference only.)

    01|ServiceContract]

    02[ServiceBehavior (includeExceptionDetàilslnFaults = true) 1

    03putiic class OrderService

    04{

    05[Operation Contract]

    06putiic void Submit Order (Order an Order)

    07{

    O8try

    09{

    10...

    11)

    12catch (DivideByZeroExcepton ex)

    13{

    14

    15)

    16)

    17)

    You need to ensure that the stack trace details of the exception are not included in the error information sent to the client.

    What should you do?

    A. Replace line 14 with the following line. Throw:
    B. Replace line 14 with the following line throw new FaultException(anOrder, ex.ToString(fl;
    C. After hne 05, add the following line. [FaultContract(typeof(FaukEception))J Replace line 14 with the following line throw ex;
    D. Alter hne 05, add the following line [FaultContract(typeof(FaultException))J Replace line 14 with the following line. Throw new FaultException(anOrder, "Divide by zero exception"):

  • Question 29:

    A Windows Communication Foundation (WCF) service is required to log all authorization attempts to the Windows Event Log.

    You need to configure a behavior and apply it to the service to support this requirement.

    Which behavior should you configure and apply?

    A. serviceAuthenticationManager
    B. serviceAuthorization
    C. serviceCredentials
    D. serviceSecurityAudit

  • Question 30:

    You are developing a client that sends several types of SOP 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 SO6P message which code segment should you use

    A. [OperaionContract0sOneWay true, Action = `v', ReplyAction void PostData(Order data);
    B. (OperationContract(1sOneWay = true, Action "v', ReplyAction = ".`) addPostData(BodyWriterdata);
    C. [OperaionContract] void PostDaa(BodyWriter data);
    D. [OperationContract] void PostDaa(Message data);

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.