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.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.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\CallsYou 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 fileA 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
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 ");
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.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?
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.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.A Windows Communication Foundation (WCF) solution uses the following contract.
Public Interface lMyService Sub Initialize () 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.)
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)
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.