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

    You are developing a Windows Communication Foundation (WCF) service that returns location information for authorized law enforcement agencies. The service contract is as follows.

    [ServiceContract]

    public interface IMappingService

    {

    [OperationContract]

    long[] GetLocationCoordinates(String cityNaroe);

    [OperationContract]

    long[] GetLocationOfCitizen(String ssn) ;

    }

    Users are authenticated and impersonated. The system uses ASP.NET roles. The members of law enforcement are members of the LawEnforcement role.

    You need to ensure that only members of the LawEnforcement role can call these methods.

    What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

    A. Add a PrincipalPermissionAttribute to each method that should be available only to members of law enforcement. Set its SecurityAction to Demand and set the role equal to LawEnforcement.
    B. Use the CurrentPrincipal property of the thread. Call the IsInRole method specifying LawEnforcement as a parameter.
    C. Create a GenericPrincipal specifying Thread.CurrentPrincipal.Identity as the IldentityParameter and LawEnforcement as the only value for the Roles parameter.
    D. At the beginning of each method, enumerate each ClaimSet in a new WindowsClaimSet. Use the FindClaims method to locate a claim type named Role with a right named LawEnforcement.

  • Question 32:

    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 serviceAuthorizationManagerType attribute of the serviceAuthorization behavior to Message.
    B. Set the includeExceptionDetaillnFaults 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 33:

    You develop a Windows Communication Foundation (WCF) service. You enable all performance counters and run multiple calls to the service.

    The service must isolate session data for each user.

    You need to monitor the instancing behavior used in the service.

    Which performance counter should you monitor?

    A. ServiceModelService 4.0.0.0\Calls
    B. ServiceModelService 4.0.0.0\Instances
    C. ASP.NET State Service\State Server Sessions Active
    D. ASP.NET State Service\State Server Sessions Total

  • Question 34:

    You are using tracing to diagnose run-time issues when you look at the traces for the service in Svc Trace viewer exe, you see what is shown in the exhibit (Click the Exhibit button)

    The exception trace is selected in Svc Trace reviewer exe.

    You need to interpret the trace results to determine where the error occurred and what to do next.

    What should you do?

    A. This issue occurred in the ServiceHost during ServiceHost Open. Enable WMI by adding the following configuration to the system.serviceModel configuration section in the application configuration file
    B. This issue occurred in the Service Host during Service Host. Open. Compare the security settings for any endpoints that use an MSMQ transport to the security configuration of the MSMQ queue used by the endpoint
    C. This issue occurred at the Service Host when receiving a message Compare the security configurations on the client and server to make sure that they are compatible
    D. This issue occurred at the ServiceHost when accepting an initial set of messages from MSMQ.Log all messages sent between the clients and sever.

  • Question 35:

    A Windows Communication Foundation (WCF) client configuration file contains the following XML segment in the system.serviceModel element.

    binding=" netTcpBinding "

    contract=" Contoso. IContosoService "

    name=" netTcp " / >

    binding=" netNamedPipeBinding "

    contract=" Contoso. IContosoService "

    name=" netPipe " />

    You need to create a channel factory that can send messages to the endpoint listening at net.pipe://localhost/ContosoService.

    Which code segment should you use

    A. ChannelFactory < Contoso. IContosoService > factory = new ChannelFactory < Contoso. IContosoService >(" Contoso. IContosoService ");
    B. ChannelFactory < Contoso. IContosoService > factory = new ChannelFactory < Contoso. IContosoService >(" netNamedPipeBinding ");
    C. ChannelFactory < Contoso. IContosoService > factory = new ChannelFactory < Contoso. IContosoService >(" netPipe ");
    D. ChannelFactory < Contoso. IContosoService > factory = new ChannelFactory < Contoso. IContosoService >(" net.pipe://localhost/ContosoService ");

  • Question 36:

    You have a Windows Communication Foundation (WCF) service that uses a multicast protocol as a custom transport. The service implements the channel framework.

    You need to choose a message exchange pattern for the transport.

    What should you use?

    A. Datagram by using the IOutputChannel interface for clients and the IInputChannel interface for the service.
    B. Half-Duplex by using the IRequestChannel interface for clients and the IReplyChannel interface for the service.
    C. Duplex by using the IDuplexChannel interface for both clients and the service.
    D. Request-Response by using the IRequestChannel interface for clients and the IReplyChannel interface for the service.

  • Question 37:

    You are creating a Window s Communication Foundation (WCF) service application. The application needs to service many clients and requests simultaneously.

    The application also needs to ensure subsequent individual client requests provide a stateful conversation.

    You need to configure the service to support these requirements.

    Which attribute should you add to the class that is implementing the service?

  • Question 38:

    A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.

    You must ensure that the client application can interact with the WCF service. What should you do?

    A. On the OperationContractAttribute, set the AsyncPattern property value to true.
    B. On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.
    C. On the client, create a proxy derived from DuplexClientBase.
    D. On the client, use GetCallbackChannel.

  • Question 39:

    You are implementing a Windows Communication Foundation (WCF) client application that consumes the ICatalog and lCatalog2 service interfaces

    You need to ensure that the client discovers services implementing these interfaces

    The services may already be online or may come online within a 30 second time limit

    How should you use WCF Discovery to accomplish this?

    A. Create one FindCriteria object for each interface and set the Duration of each FindCriteria to 30 seconds Call the FindAsync method of the DiscoveryClient class twice, one time for each of the FindCriteria objects, to search for the services.
    B. Create one FindCriteria object for each interface and set the Duration of each FindCriteria to two seconds. Create a loop that calls the Find method of the DiscoveryClient class to search for the services. Within each loop iteration, call the Find method of the DiscoveryClient class once for each of the FindCriteria objects Run the loop until a service is found or 30 seconds pass.
    C. Create a single FindCriteria object and add both interfaces to its ContractTypeNames collection. Set the criteria's Duration to two seconds. Create a loop that calls the Find method of the DiscoveryClient class to search for the services. Within each loop iteration, call the Find method of the DiscoveryClient class to search for the services Run the loop until a service is found or 30 seconds pass.
    D. Create a single FindCritera object and add both interfaces to the ContractTypeNames collection. Set the Duration to 30 seconds and use the FindAsync method of the DiscoveryClient class to search for the services.

  • Question 40:

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

    Public Interface lMyService

    Sub Initialize ()

    s

    Sub DoSomething()

    Sub Terminate ()

    End Interface You need to change this interface so that:

    "Initialize is allowed to be called at any time before Terminate is called.

    "DoSomething is allowed to be called only after Initialize is called, and not allowed to be called after Terminate is called. "Terminate will be allowed to be called only after Initialize is called

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

    A. Change the ServiceContract attribute of the lMyService interface to the following. ServiceContract(SessionMode:sSessionMode. Required)
    B. Change the ServiceContract attribute of the lMyService interface to the following. ServiceContract(SessionMode:sSessionModeAllowed)?
    C. Change the OperationContract attribute of the Initialize operation to the following. OperationContract(lslnitiating: `True, IsTerminating: `False)
    D. Change the OperationContract attribute of the Terminate operation to the following. OperationContract(Islnitiatings:False, lsTerminating: `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.