70-513 book (101 to 110)


♥♥ 2017 NEW RECOMMEND ♥♥

Free VCE & PDF File for Microsoft 70-513 Real Exam (Full Version!)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 70-513 Exam Dumps (PDF & VCE):
Available on: http://www.certleader.com/70-513-dumps.html


70-513 Product Description:
Exam Number/Code: 70-513 vce
Exam name: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4
n questions with full explanations
Certification: Microsoft Certification
Last updated on Global synchronizing

Instant Access to Free VCE Files: Microsoft 70-513 TS: Windows Communication Foundation Development with Microsoft .NET Framework 4

70-513 examcollection

Exam Code: 70-513 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4
Certification Provider: Microsoft
Free Today! Guaranteed Training- Pass 70-513 Exam.

2016 May 70-513 Study Guide Questions:

Q101. Your company has an existing Windows Communication Foundation (WCF) service. The following code segment is part of the service. (Line numbers are included for reference only.) 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: A 


Q102. A WCF service code is implemented as follows. (Line numbers are included for reference only) 

01 [ServiceContract] 

02 [ServiceBehavior(lnstanceContextMode = 

03 lnstanceContextModeSingle)] 

04 public class CalculatorService 

05 { 

06 [OperationContract] 

07 public double Calculate(double op1, string op. double op2) 

08 { 

24 } 

25 } 

You need to increase the rate by which clients get the required response from the service. 

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

A. Change the service behavior to the following. 

[ServiceBehavior( 

lnstanceContextMode = lnstanceContextModeSingle, 

ConcirrencyMode = ConcurrencyMode. Multide)]c 

B. Change the service behavior to the following. 

 [ServiceBehavior(lnstanceContextMode = lnstanceContextMode.PerCall)] 

C. Require the clients use threads, the Parallel Task Library, or other mechanism to issue service calls in parallel. 

D. Require the clients to use async operations when calling the senvice. 

Answer: AB 


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


70-513  exam prep

Up to the minute testking exam 70-513:

Q104. You have a Windows Communication Foundation (WCF) service that accepts the following message contract. 


You need to ensure that the client sends a SOAP body that is accepted by the service. 

A. <Ticket xmlns="http://www.movies. com"> 

<NumberOfSeats 

xmlns="http : //www.movietheater . com"> 

</NumberOfSeats> 

<ReservationName xmlns="http://www.movietheater .com" /> 

<ShowTime 

xmlns="http://www.movietheater.com"> 

2010-07-05T00:SI:10.0999304-05:00 

</ShowTime> 

</Ticket> 

B. <Ticket xmlns="http://www.movietheater.com"> <ShowTime 

xmlns="http : //www.movietheater . com"> 

2010-07-05T00:51:10.0999304-05:00 

</ShowTime> 

<ReservationName xmlns="http://www.movietheater.com" /> 

<NumberOfSeats 

xmlns="http://www.movietheater.com"> 

</NumberOfSeats> 

</Ticket> 

C. <Ticket xmlns="http://wwv.movies.com"> 

<ShowTime 

xmlns-"http://www.movietheatec.com"> 

2010-07-05TOO:51:10.0999304-05:00 

</ShowTime> 

<Number Of Seats 

xmlns="http://www.movietheater.com"> 0 

</NumbecOfSeats> 

<ReservationName xmlns""http://www.movietheotec.com" /> 

</Ticket> 

D. <Ticket xmlns="http://www. movietheatec.com"> 

<ShowTime 

xmlns-"http://www.movietheater.com"> 

2010-07-05TOO:51:10.0999304-05:00 

</ShowTime> 

<NumberOfSeats 

xmlns="http://wwv.movietheatec.com"> 0 

</NumberOfSeats> 

<ReservationName 

xmlns="http://www.movletheatec.com" /> 

</Ticket> 

Answer: C 


Q105. You are developing a client application that uses the following code to consume a Windows 

Communication Foundation (WCF) service. (Line numbers are included for reference only.) 

01 Dim myBinding As BasicHttpBinding = 

New BasicHttpBinding() 

02 Dim myEndpointAddress As EndpointAddress = 

New EndpointAddress( 

"http://contoso.com/TaxService.svc") 

04 Dim client As ITaxService = 

channelFactory.CreateChannel() 

05 Dim data As String = client.GetData(1) 

You need to consume the service. 

Which code segment should you insert at line 03? 

A. Dim channelFactory = 

New ChannelFactory(Of ITaxService)() 

B. Dim channelFactory = 

New ChannelFactory(Of ITaxService)(myBinding) 

C. Dim channelFactory = 

New ChannelFactory(Of ITaxService) 

(myBinding, myEndpointAddress) 

D. channelFactory = 

New ChannelFactory(Of ITaxService) 

("http://contoso.com/TaxService.svc") 

Answer: C 


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

[ServiceContract] public class ContoaServicea { [OperationContract] [TransactionFlow(TransactionFlowOperation. Mandatory)] 

[OperationBehavior(TraisactionScopeRequired true, 

TransactionAutoCorrolete = false) 

void TxOp 1 (string value) { ) [OperationCortract(lsTerminating—true)J 

[TransactionFlow(TransactionFlowOption Mandatory)] [OperationBehavior(TraisactionScopeRequired true, 

TransationAutoCormplete = false)] 

void TxOp2(string value) {.. OperationContext. Current. SetTransactionCompleteO; 

The rvice and the clients that call the service use NetTcpBinding with transaction flow enabled 

You need to configure the service so that when TxOpl and TxOp2 are invoked under the same client session, they run under the same transaction context. 

What should you do? 

A. Update the service contract to read as follows. 

(ServiceContract(SessionMode SessionMode Required)J Add the following behavior to the 

service implementation 

[ServiceBehavior(lnstanceCoritextMode = Instance ContextMode. PerSession)] 

B. Update the service contract to read as follows. 

[ServiceContract(SessionMode = SessionModeAllowed)] Add the following behavior to the 

service implementation. 

[ServiceBehavior(LnstanceContextMode = Instance ContextMode Single, 

ReleaseServicelnstanceQnTransactionComplete false)] 

C. Update the service contract to read as follows 

[ServiceContract(SessionMode = SessionMode.Allowed)] Add the following behavior to the 

service implementation. 

[ServiceBehavior(lnstanceContextMode Instance ContextMode. Single)] 

D. Update the service contract to read as follows. 

[ServiceContract(SessionMode = SessionMode.Required)]Md the following behavior to the 

service implementation. 

[ServiceBehavior(lnstanceContextMode = lnstanceContextMode. PerCall)] 

Answer: A 


70-513  exam prep

Vivid mcts exam 70-513:

Q107. You are creating an application that consumes a Windows Communication Foundation 

(WCF) service. The service implements the IService contract. The client application contains the CallbackHandler class, which implements IServiceCallback. 

You need to ensure that a client proxy is created that can communicate with the service over a duplex channel. 

Which code segment should you use? 

A. Dim handler = New CallbackHandler() 

Dim clientFactory = 

New DuplexChannelFactory(Of IService)( 

New WSHttpContextBinding() ) 

Dim client = clientFactory.CreateChannel( New InstanceContext(handler), 

New EndpointAddress ("...")) 

B. Dim handler = New CallbackHandler() 

Dim clientFactory = 

New DuplexChannelFactory( Of IService)( 

GetType(CallbackHandler), 

New USDualHttpBindingO ) 

Dim client = clientFactory.CreateChannel( 

New InstanceContext (handler) , 

New EndpointAddress ("...") ) 

C. Dim handler - New CallbackHandler() 

Dim clientFactory = 

New DuplexChannelFactory(Of IService)( 

GetType(CallbackHandler), 

New HSDualHttpBindingO) Dim client = clientFactory.CreateChannel( New 

EndpointAddress ("...") ) 

D. Dim handler = New CallbackHandler() 

Dim clientFactory = 

New DuplexChannelFactory(Of IService)( New WSHttpBinding()) 

Dim client = clientFactory.CreateChannel( 

New InstanceContext(handler), 

New EndpointAddress ("...")) 

Answer: B 


Q108. You are developing a Windows Communication Foundation (WCF) client application. 

You instantiate a client class that inherits from ClientBase. The client instance must always be shut down in such a way that it can free up any resources it is referencing. You need to ensure that all exceptions are caught and the instance is always properly shut down. 

Which code segment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: D 


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

Answer: A 


Q110. You develop a Windows Communication Foundation (WCF) service that employees use to access bonus information. You define the following service contract. (Line numbers are included for reference only.) 

01 <ServiceContract(SessionMode:=SessionMode.Required)> 02 Public Interface IFinancialService 03 04 <OperationContract()> 05 Function Login( ByVal employeeID As Integer, ByVal passwordHash As String) As String 06 07 <OperationContract()> 08 Function GetBonus(ByVal month As Integer) As Double 09 10 <OperationContract (IsTerminating:=True)> 11 Sub Logout() 12 13 End Interface 

Client applications can invoke methods without logging in. 

You need to ensure that the client applications invoke Login before invoking any other method. 

You also need to ensure that client applications cannot consume the service after invoking Logout. 

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

A. Replace line 04 with the following code. <OperationContract(IsInitiating:=False)> 

B. Replace line 04 with the following code. <OperationContract(IsInitiating:=True, IsTerminating:=True)> 

C. Replace line 07 with the following code. <OperationContract(IsInitiating:=False)> 

D. Replace line 10 with the following code. <OperationContract(IsInitiating:=False, IsTerminating:=True)> 

Answer: CD 



see more TS: Windows Communication Foundation Development with Microsoft .NET Framework 4