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

    You create a Windows Communication Foundation (WCF) service.

    The service must meet the following requirements:

    Communicate errors as exceptions that originate in the service operations.

    Publish the errors as part of the WCF contract.

    You need to throw an exception inside the service operation method.

    Which type of exception should you throw?

    A. ProtocolException
    B. FaultException
    C. PoisionMessageException
    D. CommunicationException

  • Question 302:

    You are developing a Windows Communication Foundation (WCF) service to provide shopping cart support. ASP.NET compatibility mode is not enabled.

    The shopping cart information must be retained across user visits to the store until the user explicitly empties the cart or submits the cart contents to order.

    You need to implement the service as a DurableService.

    Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

    A. Use basicHttpBinding for both the client application and the service.
    B. Create the persistence provider database and configure the persistenceProvider element of the service behavior to point to that database.
    C. Use wsHttpContextBinding for both the client application and the service.
    D. In the method to add an item to the shopping cart, serialize the shopping cart contents after adding the current item and storing it in a Session variable.

  • Question 303:

    You create a service and deploy it on a network in a building named Building1. You will deploy the service to Building2. The service in Building1 is configured using the following discovery scopes.

    The service in Building2 will be configured using the following discovery scopes.

    You need to ensure that the client application can discover the service in Building1 or the service in Building2.

    Which scopes should you add to the client configuration file?

  • Question 304:

    You implement a Windows Communication Foundation (WCF) service. The service is hosted in Internet Information Services (IIS).

    The service must use X.509 certificates to authorize specific methods.

    You need to configure the service.

    What should you do? (Each correct answer presents part of the solution. Choose two.)

    A. Set the value of the Name property of the PrincipalPermissionAttribute to the identity of the certificate.
    B. Set the value of the ControlEvidence property of the SecurityPermissionAttribute to the identity of the certificate.
    C. In the web.config file for the service, in the serviceAuthorization element, set the value of the PrincipalPermissionMode attribute to UseAspNetRoles.
    D. In the web.config file for the service, in the serviceAuthorization element, set the value of the PrincipalPermissionMode attribute to UseWindowsGroups.

  • Question 305:

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

    Function GetCustomerNames() As CustomerNames

    The operation returns customer names.

    You need to develop a definition for the operation contract that produces XML with the following structure.

    Which code segment should you use

    A. Public Class CustomerNames
    B. Public Names() As String End Class
    C. Public Class CustomerNames
    D. Public Names() As String End Class
    E. Public Class CustomerNames Public Names () As String End Class
    F. Public Class CustomerNames Public Names() As String End Class

  • Question 306:

    A Windows Communication Foundation (WCF) service is responsible for transmitting XML documents between systems.

    The service has the following requirements:

    It must minimize the transmission size by attaching the XML document as is without using escape characters or base64 encoding. It must interoperate with systems that use SOAP but are not built on the .NET platform.

    You need to configure the service to support these requirements.

    Which message encoding should you use?

    A. Binary message encoding
    B. MTOM (Message Transmission Optimization Mechanism) message encoding
    C. Text message encoding with message version set to none
    D. Text message encoding with message version set to SOAP 1.2

  • Question 307:

    You are developing a Windows Communication Foundation (WCF) client application. The client application contains the following code.

    The configuration file contains the following lines.

    You need to ensure that the service is consumed. Which code segment should you use?

    A. var client = new SocialClient("SocialClient"); c1lent.Endpoint.Behaviors.Add( new WebHttpBehovior());
    B. var client = new SocialClient("SocialClient"); client.Endpoint.Behaviors.Add( new WebScriptEnoblingBehovior());
    C. var client = new Social Client ("POST") ; client.Endpoint.Behaviors.Add( new WebHttpBehovior());
    D. var client = new Social Client ("POST"); client.Endpoint.Behaviors.Add( new WebScriptEnoblingBehovior());

  • Question 308:

    You are developing a Windows Communication Foundation (WCF) service. The service configuration file has a element defined.

    You need to ensure that all security audit information, trace logging, and message logging failures are recorded.

    Which configuration segment should you add to the element?

    B. C. D.

  • Question 309:

    Windows Communication Foundation (WCF) application uses a data contract that has several data members.

    You need the application to throw a Serialization Exception if any of the data members are not present when a serialized instance of the data contract is deserialized.

    What should you do?

    A. Add the Known Type attribute to the data contract. Set a default value in each of the data member declarations.
    B. Add the Known Type attribute to the data contract. Set the Order property of each data member to unique integer value.
    C. Set the Emit Default Value property of each data member to false.
    D. Set the lsRequired property of each data member to true.

  • Question 310:

    You develop a Windows Communication Foundation (WCF) service that uses basic authentication for client credentials. This service is currently configured to use message security.

    The service is hosted on a server in workgroup mode.

    Users report that their passwords are stolen when they use public computers.

    You need to ensure that messages are secure and users are authenticated. You prevent the service from being called over HTTP through Microsoft Internet Information Services (IIS) configuration.

    What should you do next?

    A. Use the transport security mode and specify None for transport client credential type.
    B. Use the transportWithMessageCredential security mode and specify Basic for the transport client credential type.
    C. Use the message security mode and specify Basic for the transport client credential type.
    D. Use the transportWithMessageCredential security mode and specify None for the transport client credential type.

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.