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

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

    You need to enable security auditing for all events.

    What should you do?

    A. Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.
    B. Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.
    C. Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.
    D. Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.

  • Question 312:

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

    01 02 Public Interface IDataCache 03

    04 . . . 05 End Interface 06 07 08 Public Class DataCache 09 Implements IDataCache 10

    11 . . . 12 End Class

    You need to ensure that all users share the cache.

    Which code segment should you insert at line 07?

  • Question 313:

    You develop a Window Communication Foundation (WCF) service.

    You have the following requirements:

    Create a data contract to pass data between client applications and the service. Create the data that is restricted and cannot pass between client applications and the service.

    You need to implement the restricted data members.

    Which member access modifier should you use?

    A. Private
    B. Protected
    C. Public
    D. Static

  • Question 314:

    You are developing a Windows Communication Foundation (WCF) service. You implement a data contract to pass complex data to and from the service. The service includes the following code:

    You need to verify the order in which the data is serialized.

    For each of the following statements, select True if the statement is true. Otherwise select False.

    Hot Area:

  • Question 315:

    You are modifying a Windows Communication Foundation (WCF) service that allows customers to update financial data. The service currently requires a transaction from the client application and is working correctly. The service contract is defined as follows. (Line numbers are included for reference only.)

    The service must be modified so that client applications do not need to initiate a transaction when calling the operation. The service must use the client application's transaction if one is available. Otherwise it must use its own transaction.

    You need to ensure that the service operation is always executed within a transaction. What should you do?

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

  • Question 316:

    You are modifying a Windows Communication Foundation (WCF) service that issues security tokens. The service is accessible through the named pipe protocol. No endpoints are added in the service code. The configuration file for the service is as follows. (Line numbers are included for reference only.)

    You need to ensure that new and existing client applications can access the service through HTTP and named pipes.

    What should you do?

    A. Insert the following line at line 05.
    B. Insert the following line at line 05.
    C. Insert the following line at line 08.
    D. Insert the following line at line 08.

  • Question 317:

    You are creating an application using Visual Studio 2010. The application consumes a Windows Communication Foundation (WCF) service.

    You are adding a service reference to the WCF service.

    You need to ensure that the generated proxy does not block the calling thread when executing a service method.

    What should you do when adding the service reference?

    A. Set the Collection type to ObservableCollection.
    B. Select the Reuse types in all referenced assemblies option.
    C. Select the Generate asynchronous operations option.
    D. Select the Always generate message contracts option.

  • Question 318:

    You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources.

    You need to ensure that the service accesses these resources on behalf of the originating caller.

    What should you do?

    A. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenImpersonationLevel.Impersonation.
    B. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenImpersonationLevel.Delegation.
    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 319:

    You are creating a Windows Communication Foundation (WCF) service. You do not want to expose the internal implementation at the service layer.

    You need to expose the following class as a service named Arithmetic with an operation named Sum.

    Public Class Calculator

    Public Function Add

    (ByVal x As Integer,

    ByVal y As Integer) As Integer

    End Function

    End Class

    Which code segment should you use?

    A. Public Class Calculator Public Function Add(ByVal x As Integer, ByVal y As Integer) As Integer End Function End Class
    B. Public Class Calculator Public Function Add(ByVal x As Integer, ByVal y As Integer) As Integer End Function End Class
    C. Public Class Calculator Public Function Add(ByVal x As Integer, ByVal y As Integer) As Integer End Function End Class
    D. Public Class Calculator Public Function Add(ByVal x As Integer, ByVal y As Integer) As Integer End Function End Class

  • Question 320:

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

    [ServiceContract]

    public interface IService

    {

    [OperationContract]

    string Operation 1 (string s);

    }

    You need to ensure that the operation contract Operationi responds to HTTP POST requests.

    Which code segment should you use?

    A. [OperationContract| [Weblnvoke(Method POST)] string Operationl(string s);
    B. [OperationContract| [WebGet(UriTemplate = POST')] string Operation 1 (string s);
    C. [OperationContract(ReplyAction z `POST')J string Operationi (string s);
    D. [OperationContract(Action WPOST)1 string Operationl(string s);

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.