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

    You are configuring services to be discoverable. The services must be discoverable without relying on a central server. Client applications that consume the services are on a network segment that is separate from the network segment that the services are located on.

    A firewall blocks all TCP ports between the two network segments, but allows other protocols to pass through.

    You need to ensure that the client applications can discover the services.

    What should you do?

    A. Use ad-hoc discovery mode over HTTP.
    B. Use ad-hoc discovery mode over UDP.
    C. Use managed discovery mode over HTTP.
    D. Use managed discovery mode over UDP.

  • Question 282:

    You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.

    You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object. What should you do?

    A. Implement the IExtensibleDataObject interface in the Person class.
    B. Add the following KnownType attribute to the Employee class and to the Customer class. [KnownType(typeof(Person))]
    C. Implement the IExtension interface in the Person class.
    D. Add the following KnownType attributes to the Person class. [KnownType(typeof(Employee))] [KnownType(typeof(Customer))]

  • Question 283:

    You develop a Windows Communication Foundation (WCF) service. It is used exclusively as an intranet application and is currently unsecured.

    You need to ensure that the service meets the following requirements:

    The service now must be exposed as an Internet application. The service must be secured at the transport level. Impersonation and delegation cannot be enabled.

    What should you use?

    A. wsHttpBinding and HTTPS
    B. basicHttpBinding and Kerberos
    C. basicHttpBinding and HTTP
    D. wsHttpBinding and Kerberos

  • Question 284:

    You are creating a Windows Communication Foundation (WCF) service that uses claims- based authorization. The following code retrieves the correct claim set.

    var claims = ServiceSecurityContext.Current.

    AuthorizationContext.ClaimSets[0];

    You need to validate that the requesting client application has included a valid DNS value in the claim.

    Which code segment should you use to retrieve the claim for validation?

    A. claims.FindClaims(ClaimTypes.Dns, Rights.PossessProperty) .FirstOrDefault();
    B. claims.FindClaims(ClaimTypes.Dns, Rights.Identity) .FirstOrDefault();
    C. claims.ContainsClairo(Claim.CreateDnsClaim(ClaimTypes.Dns));
    D. claims.Equals(ClaimTypes.Dns);

  • Question 285:

    A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.

    You need to implement a client that logs these notifications.

    Which class should you use?

    A. AnnouncementService
    B. AnnouncementClient
    C. DiscoveryClient
    D. HttpListener

  • Question 286:

    You need to modify a client application that consumes a Windows Communication Foundation (WCF) service.

    The service metadata is no longer available.

    You need to modify the previously generated proxy to include asynchronous calls to the service.

    What should you do?

    A. Update the service reference with the Generate asynchronous operations option.
    B. Create a partial class for the previously generated proxy and include the new asynchronous methods.
    C. Create a class with the same name as the previously generated proxy and add the new asynchronous methods. Add the new class to a namespace that is different from the original proxy.
    D. Create a class with the same name as the previously generated proxy and add the new asynchronous methods as partial methods. Add the new class to a namespace that is different from the original proxy.

  • Question 287:

    You have a client application that uses an existing Windows Communication Foundation (WCF) service. The client application contains a defined EndpointAddress object named endpointAddress.

    A class named ServiceClient is generated by using the Svcutil tool to invoke the WCF service. Instances of the ServiceClient class are created as follows:

    ServiceClient client = new ServiceClient(CreateBinding(), endpointAddress);

    The client application must meet the following requirements:

    Optimize message-level security when transporting both text files and large files.

    Provide transport-level security by using the HTTPS protocol.

    You need to create the code for the CreateBinding() method.

    Which four code segments should you use in sequence? (To answer, move the appropriate four code segments from the list of code segments to the answer area and arrange them in the correct order.)

    Select and Place:

  • Question 288:

    You are developing a Windows Communication Foundation (WCF) service to provide an in- memory cache for many Web applications. The service contract is defined as follows. (Line numbers are included for reference only.)

    You need to ensure that all users share the cache. Which code segment should you insert at line 07?

    A. [ServiceBehavior(TransactionlsolationLevel = IsolationLevel.RepeatableRead)]
    B. [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
    C. [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
    D. [ServiceBehavior(TransactionlsolationLevel = IsolationLevel.ReadCoromitted)]

  • Question 289:

    You are implementing a Windows Communication Foundation (WCF) service contract named IContosoService in a class named ContosoService. The service occasionally fails due to an exception being thrown at the service.

    You need to send the stack trace of any unhandled exceptions to clients as a fault message.

    What should you do?

    A. In the application configuration file on the client, add the following XML segment to the system.serviceModel/behaviors configuration section group. < callback Debug includeExceptionDetailInFaults="true" /> Associate the debug behavior with any endpoints that need to return exception details.
    B. In the application configuration file on the service and all the clients, add the following XML segment to the system.diagnostics/sources configuration section group.
    C. Apply the following attribute to the ContosoService class.
    D. For each OperationContract exposed by IContosoService , apply the following attribute.

  • Question 290:

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

    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. < serviceDiscovery > < announcementEndpoints >
    D. Add the following XML segment between lines 15 and 16 < serviceMetadata httpGetEnabled ="true" />

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.