70-513 ebook [May 2016]

Accurate of 70-513 exams materials and questions pool for Microsoft certification for examinee, Real Success Guaranteed with Updated 70-513 pdf dumps vce Materials. 100% PASS TS: Windows Communication Foundation Development with Microsoft .NET Framework 4 exam Today!

2016 May 70-513 Study Guide Questions:

Q31. DRAG DROP 

You develop a Windows Communication Foundation (WCF) service that is hosted within a console application. The service implements the IRegistrationService interface in a class named RegistrationService. The service uses the following endpoint URL: http://localhost:8080/registrationservice/basic 

You need to configure the console application to host the service. 

How should you complete the relevant code? (To answer, drag the appropriate code segment to the correct location in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) 


Answer: 


Q32. HOTSPOT 

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. 


Answer: 


Q33. DRAG DROP 

You are preparing to deploy a Windows Communication Foundation (WCF) service to a production environment. 

The service must not be vulnerable to a man-in-the-middle attack. You need to configure the service to use X.509 certificate security. 

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


Answer: 


Q34. You create a Windows Communication Foundation (WCF) service. 

You need to ensure that specific users can enable message logging for the service at runtime. 

In the configuration file for the service, what should you do? 

A. Enable debug compilation. 

B. Enable a shared XMLTraceListener object. 

C. Enable the Windows Management Instrumentation (WMI) provider. 

D. Enable message logging. 

Answer: A 


Q35. DRAG DROP 

You develop a Windows Communication Foundation (WCF) service that is hosted within a console application. The service implements the IRegistrationService interface in a class named RegistrationService. 

You need to add code to the console application to host the WCF service. 

How should you complete the relevant code? (To answer, drag the appropriate code segment to the correct location in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) 


Answer: 


70-513 test preparation

Most up-to-date examcollection 70-513:

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

<ServiceContract()> Public Interface ICustomerService … End Interface Public Class CustomerService Implements ICustomerService … End Class 

The service is self-hosted in a console application. Older client applications access the service at http://contoso.com:8080/CustomerService/V1. Newer client applications access the service at http://contoso.com:8080/CustomerService/V2. 

You need to ensure that any client application can access the service at either address. 

Which code segment should you use? 

A. Dim serviceAddress1 As Uri = 

New Uri("http://contoso.com:8080/CustomerService/V1") 

Dim serviceAddress2 As Uri = 

New Uri("http://contoso.com:8080/CustomerService/V2") 

Dim host As ServiceHost = 

New Service Host(GetType(ICustomerService), 

New Uri() {serviceAddress1, serviceAddress2}) 

B. Dim serviceAddress1 As Uri = 

New Uri("http://contoso.com:8080/CustomerService/V1") 

Dim serviceAddress2 As Uri = 

New Uri("http://contoso.com:8080/CustomerService/V2") 

Dim host As ServiceHost = 

New ServiceHost(GetType(CustomerService), 

New Uri() {serviceAddress1, serviceAddress2}) 

C. Dim serviceAddress As Uri = 

New Uri("http://contoso.com:8080/") 

Dim host As ServiceHost = 

New Servic eHost(GetType(CustomerService), 

New Uri() {serviceAddress}) 

host.AddServiceEndpoint(GetType(ICustomer Service), 

New BasicHttpBinding(), "CustomerService/V1") 

host.AddServiceEndp oint(GetType(ICustomerService), 

New BasicHttpBinding(), "CustomerService/V2") 

D. Dim serviceAddress As Uri = 

New Uri("http://contoso.com:8080/") 

Dim host As ServiceHost = 

New Service Host(GetType(ICustomerService), 

New Uri() {serviceAddress}) 

host.AddServiceEndpoint(GetType(CustomerService), 

New BasicHttpBinding(), "CustomerService/V1") 

host.AddServiceEnd point(GetType(CustomerService), 

New BasicHttpBinding(), "CustomerService/V2") 

Answer: D 


Q37. A Windows Communication Foundation (WCF) solution uses the following contracts. (Line numbers are included for reference only.) 


You need to ensure that the service callback is processed by the instance of NameService. 

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

A. Change line 25 to the following code segment. 

Dim factory As DuplexChannelFactory(Of IGreetingService) = 

New DuplexChannelFactory(Of IGreetingService)( 

callbackContext, binding, address) 

B. Change line 26 to the following code segment. 

Dim greetingService As IGreetingService = 

factory.CreateChannel(callbackContext) 

C. Add the following code segment after line 26. 

callbackContext.IncomingChannels.Add( 

DirectCast(greetingService, IDuplexChannel)) 

D. Add the following code segment after line 26. 

callbackContext.OutgoingChannels.Add( 

DirectCast(greetingService, IDuplexChannel)) 

Answer: AB 


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

[ServiceContract ] public interface ICustomerService { & } 

public class CustomerService : ICustomerService { & } 

The service is self-hosted in a console application. Older client applications access the service at http://contoso.com:8080/CustomerService/V1. Newer client applications access the service at http://contoso.com:8080/CustomerService/V2. 

You need to ensure that any client application can access the service at either address. 

Which code segment should you use? 

A. Uri serviceAddress1 = 

new Uri("http://contoso.com:8080/CustomerService/V1"); 

Uri serviceAddress2 = 

new Uri("http://contoso.com:8080/CustomerService/V2"); 

ServiceHost host = 

new ServiceHost(typeof(ICustomerService), 

new Uri[] { serviceAddress1, serviceAddress2 }); 

B. Uri serviceAddress1 = 

new Uri("http://contoso.com:8080/CustomerService/V1"); 

Uri serviceAddress2 = 

new Uri("http://contoso.com:8080/CustomerService/V2"); 

ServiceHost host = 

new ServiceHost(typeof(CustomerService), 

new Uri[] { serviceAddress1, serviceAddress2 }); 

C. Uri serviceAddress = 

new Uri("http://contoso.com:8080/"); 

ServiceHost host = 

new ServiceHost(typeof(CustomerService), 

new Uri[] { serviceAddress }); 

host.AddServiceEndpoint(typeof(ICustomerService), 

new BasicHttpBinding(), "CustomerService/V1"); 

host.AddServiceEndpoint(typeof(ICustomerService), 

new BasicHttpBinding(), "CustomerService/V2"); 

D. Uri serviceAddress = 

new Uri("http://contoso.com:8080/"); 

ServiceHost host = 

new ServiceHost(typeof(ICustomerService), 

new Uri[] { serviceAddress }); 

host.AddServiceEndpoint(typeof(CustomerService), 

new BasicHttpBinding(), "CustomerService/V1"); 

host.AddServiceEndpoint(typeof(CustomerService), 

new BasicHttpBinding(), "CustomerService/V2"); 

Answer: C 


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

Answer: A 


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

Answer: B 


70-513 question

Vivid 70-513 ebook pdf free download:

Q41. A Windows Communication Foundation (WCF) solution uses the following contracts. (Line numbers are included for reference only.) 

01 [ServiceContract(CallbackContract = typeof(INameService))] 

02 public interface IGreetingService 

03 { 

04 [OperationContract] 

05 string GetMessage(); 

06 } 

08 [ServiceContract] 

09 public interface INameService 

10 { 

11 [OperationContract] 

12 string GetName(); 

13 } 

When the client calls GetMessage on the service interface, the service calls GetName on the client callback. In the client, the class NameService implements the callback contract. 

The client channel is created as follows. 

22 In stanceContext callbackContext = 

new InstanceContext(new NameService("client")); 

25 DuplexChannelFactory<IGreetingService> factory = 

new DuplexChannelFactory<IGreetingService>( 

typeof(NameService), binding, address); 

26 IGreetingService greetingService = factory.CreateChannel(); 

You need to ensure that the service callback is processed by the instance of NameService. 

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

A. Change line 25 to the following code segment. DuplexChannelFactory<IGreetingService> factory = new DuplexChannelFactory<IGreetingService>( callbackContext, binding, address); 

B. Change line 26 to the following code segment. IGreetingService greetingService = factory.CreateChannel(callbackContext); 

C. Add the following code segment after line 26. callbackContext.IncomingChannels.Add((IDuplexChannel)greetingService); 

D. Add the following code segment after line 26. callbackContext.OutgoingChannels.Add((IDuplexChannel)greetingService); 

Answer: AB 


Q42. You implement a Windows Communication Foundation (WCF) service. 

You must process all of the valid SOAP messages that the service receives. 

What should you do? 

A. On the OperationContractAttribute, call the Match method. 

B. Call the Message.CreateMessage static method. Pass the value MessageVersion.Default as a parameter. 

C. On the OperationContractAttribute of a method, set the value of the Action and ReplyAction properties to *. 

D. On the OperationContractAttribute of a method, set the value of the Action and ReplyAction properties to ?. 

Answer: A 


Q43. You are modifying a Windows Communication Foundation (WCF) service that provides access to report generation system. The following code segment is part of your service contract. (Line numbers are included for reference only.) 


Client applications are blocked while the service processes reports. You need to ensure that the service methods are asynchronous. What should you do? 

A. Insert the following code at line 04. [OperationContract] Insert the following code at line 07. [OperationConcracc(AsyncPactern = true)] 

B. Insert the following code at line 04. [OperationConcracc(AayncPaccern = true)] 

C. Insert the following code at line 04. [OperotionConcroct(AsyncPactern = false) Insert the following code at line 07. [OperacionConcracc(AsyncPactern = true)] 

D. Insert the following code at line 04. [OperationContract (AsyncPattern = false)] 

Answer: B 


Q44. You are developing a Windows Communication Foundation (WCF) service that must be discoverable. 

You need to ensure that the ServiceHost instance supports multiple discovery versions. 

What should you do? 

A. Specify a unique DiscoveryVersion parameter for each endpoint constructor. 

Use the same value for the Address property of each endpoint. 

B. Use the endpoint constructor without the DiscoveryVersion parameter. 

Use a unique value for the Address property of each endpoint. 

C. Specify a unique DiscoveryVersion parameter for each endpoint constructor. 

Use a unique value for the Address property of each endpoint. 

D. Use the endpoint constructor without the DiscoveryVersion parameter. 

Use the same value for the Address property of each endpoint. 

Answer: C 


Q45. A Windows Communication Foundation (WCF) service implements a contract with one-way and requestreply operations. 

The service is exposed over a TCP transport. 

Clients use a router to communicate with the service. The router is implemented as follows. (Line numbers are included for reference only.) 

01 ServiceHost host = new ServiceHost(typeof(RoutingService)); 

02 host AddServiceEndpoint( 

03 typeof(lSimplexDatagramRouter), 

04 new NetTcpBinding0, “net.tcp:/flocalhostlRouter” 

05); 

06 List <ServiceEndpoints lep new List <ServiceEndpoint>0;t 

07 lep.Add( 

08 new ServiceEndpoint( 

09 ContractDescription.GetContract( 

10 typeof(lSimplexDatagramRouter) 

11), 

12 new NetTcpBinding0, 

13 new EndpointAddress|’nettcp://localhost: 8080/Logger”) 

14) 

15); 

16 RoutingConfiguration rc new RoutingConfigurationO; 

17 FilterTable.Add(new MatchAilMessageFilterO, lep); 

18 host. Description. Behaviors. Add(new RoutingBehavior(rc)); 

Request-reply operations are failing. 

You need to ensure that the router can handle one-way and request-reply operations. 

What should you do? 

A. Change line 03 as follows. typeof(l RequestReplyRouter), 

B. Change line 03 as follows. typeof(lDuplexSessionRouter), 

C. Change line 10 as follows. typeof(lRequestReplyRouter) 

D. Change line 10 as follows. typeof(lDuplexSessionRouter) 

Answer: B 



see more http://www.certshared.com/exam/70-513/

Microsoft 70-513 Certification Sample Questions and Answers: http://www.braindumpsall.net/70-513-dumps/

P.S. New 70-513 dumps PDF: http://www.4easydumps.com/70-513-dumps-download.html