15 tips on How to 70-513 Test Like a Badass [76 to 90]

★ 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: https://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

Question No. 76

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:


Question No. 77

Your company has a Windows Communication Foundation (WCF) service at the URL http://services.contoso.com/OrderLookupService.svc. 

The <system.serviceModel> section of the configuration file is as follows. (Line numbers are included for reference only.) 

01 <system.serviceModel> 

02 

<behaviors> 

03 <serviceBehaviors> 

04 <behavior> 

05 <serviceDebug 

includeExceptionDetailInFaults="false"/> 

06 

07 </behavior> 

08 </serviceBehaviors> 

09 </behaviors> 

10 <serviceHostingEnvironment 

multipleSiteBindingsEnabled="true" /> 

11 </system.serviceModel> 

You need to ensure that the service publishes the WSDL description at 

http://services.contoso.com/OrderLookupService.svc?wsdl. 

What should you do? 

A. Change the serviceDebug element at line 05 as follows. 

<serviceDebug includeExceptionDetailInFaults="true"/> 

B. Insert the following element at line 06. 

<serviceDiscovery> 

< announcementEndpoints> 

<endpoint name="wsdlAnnouncement" kind="udpAnnouncementEndpoint" /> 

</announcementEndpoints> 

</serviceDiscovery> 

C. Insert the following element at line 06. 

<serviceMetadata httpGetEnabled="true" /> 

D. Insert the following element at line 06. 

<serviceMetadata httpGetEnabled="false" /> 

Answer:


Question No. 78

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:


Question No. 79

You have a self-hosted Windows Communication Foundation (WCF) service. 

You need to configure the service to provide an X.509 certificate during authentication 

What should you use to configure the service? 

A. the Certificate property of the X509CertificatelnitiatorServiceCredential class 

B. the SetCertificate method of the X509CertificatelnitiatorServiceCredential class 

C. the SetCertificate method of the X5O9CertificateRecipientServiceCredential class 

D. the TrustedStoreLocation property of the X5O9CertificateRecipientServiceCredential class 

Answer:


Question No. 80

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 

Answer:


Question No. 81

You are hosting a Windows Communication Foundation (WCF) service at http://www.contoso.com for a law enforcement agency. The agency adds operations to support sending biometric fingerprint data via non-buffered streaming. The service data is not routed between intermediaries. 

The WCF binding you are using by default does not support encryption. 

You need to ensure that fingerprint data is not disclosed when it is passed over the network. 

What should you do? 

A. Use basicHttpBinding with message security to https://www.contoso.com. 

B. Use basicHttpBinding over transport security at https://www.contoso.com. 

C. Use wsHttpBinding over message security at https://www.contoso.com. 

D. Use wsHttpBinding over transport security at http://www.contoso.com. 

Answer:


Question No. 82

You want to debug the Windows Communication Foundation (WCF) client and server interaction through message and application tracing. 

You need to correlate traces generated on the client and the server. 

Which XML segment should you add to the system. diagnostics configuration element in the client and server application configuration file? 

A. <sources> <source propagate Activitye’true” namee”System Service Model” 

switchValues’Warning, ActivityTracing’> <listeners 

<add namez”ServiceModelTraceListener” /> </listeners> 

</source> </sources> 

B. <sources> <source names” System ServiceModel. MessageLogging” 

switchValuee"Verbose"> <listeners> 

<add namez"ServiceModelTraceListener” /> <Listeners> 

</source> </sources> 

C. <sources> 

<source names”System. ServiceModeiMessageLogging” propagateActivitye’true” switch Values’ Warning, ActivityTracing’5 <listeners> <add name="ServiceModelTraceListener” I> </listeners> </source> </sources> 

D. <sources> 

<source names”System. ServiceModel” switchValues’VerboseActivityTracing”> <listeners> 

<add namee"ServiceModelTraceListener” /> </listeners> </source> 

</sources> 

Answer:


Question No. 83

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 BasicHttpBinding myBinding = new BasicHttpBinding(); 02 EndpointAddress myEndpointAddress = new EndpointAddress( "http://contoso.com/TaxService.svc"); 

04 ITaxService client = channelFactory.CreateChannel(); 

05 string data = client.GetData(1); 

You need to consume the service. 

Which code segment should you insert at line 03? 

A. var channelFactory = new ChannelFactory<ITaxService>(); 

B. var channelFactory = new ChannelFactory<ITaxService>( myBinding); 

C. var channelFactory = new ChannelFactory<ITaxService>( myBinding, myEndpointAddress); 

D. var channelFactory = new ChannelFactory<ITaxService>( "http://contoso.com/TaxService.svc"); 

Answer:


Question No. 84

You are developing a Windows Communication Foundation (WCF) service to replace an existing ASMX Web service. 

The WCF service contains the following code segment. (Line numbers are included for reference only.) 


The existing Web service returns the EmployeeID as an attribute of the EmployeeInfo element in the response XML. 

You need to ensure that applications can consume the service without code changes in the client. 

What should you do? 

A. Insert the following code at line 02. 

<DataConttactFormat()> 

Insert the following code at line 22. 

<DataMember ()> 

B. Insert the following code at line 02. 

<XmlSerializerFormat()> 

Insert the following code at line 22. 

<XmlAtttibute()> 

C. Insert the following code at line 09. 

<XmlSerializerFocmat()> 

Insert the following code at line 22. 

<XmlAttribute()> 

D. Insert the following code at line 20. 

<DataContractFormat()> 

Insert the following code at line 22. 

<DataMember()> 

Answer:


Question No. 85

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

The service operation takes a customer number as the only argument and returns information about the customer. The service requires a security token in the header of the message. 

You need to create a message contract for the service. 

Which code segment should you use? 

A. <ServiceContract()> 

Public Interface IService 

<OperationContract()> 

Function GetCustomerInformation( 

ByVal header As Header, 

ByVal customerNumber As Integer) 

As CustomerInformation 

End Interface 

<DataContract()> 

Public Class CustomerInformation 

End Class 

<MessageContract()> 

Public Class Header 

<MessageHeader()> 

Public SecurityTag As String 

End Class 

B. <ServiceContract()> 

Public Interface IService 

<OperationContract()> 

Function GetCustomerInformation( 

ByVal header As Header, ByVal customerNumber As Integer) As CustomerInformation End Interface <MessageContract()> Public Class CustomerInformation End Class <MessageContract()> Public Class Header <MessageHeader()> Public SecurityTag As String End Class 

C. <ServiceContract()> Public Interface IService <OperationContract()> Function GetCustomerInformation( ByVal request As CustomerNumber) As CustomerInformation End Interface <DataContract()> Public Class CustomerInformation End Class <MessageContract()> Public Class CustomerNumber <MessageHeader()> Public SecurityTag As String <MessageBodyMember()> Public CustomerNumberElement As Integer End Class 

D. <ServiceContract()> Public Interface IService <OperationContract()> Function GetCustomerInformation( ByVal request As CustomerNumber) As CustomerInformation End Interface <MessageContract()> Public Class CustomerInformation End Class <MessageContract()> Public Class CustomerNumber <MessageHeader()> Public SecurityTag As String <MessageBodyMember()> Public CustomerNumberElement As Integer End Class 

Answer:


Question No. 86

You are developing a Windows Communication Foundation (WCF) service that is used to check the status of orders placed by customers. The following code segment is part of your service. (Line numbers are included for reference only.) 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 87

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:


Question No. 88

You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started. The message is defined as follows. 

<MessageContract()> 

Public Class Agent 

Public Property CodeName As String 

Public Property SecretHandshake As String 

End Class 

You have the following requirements: 

The CodeName property must be sent in clear text. The service must be able to verify that the property value was not changed after being sent by the client. 

The SecretHandshake property must not be sent in clear text and must be readable by the service. 

What should you do? 

A. Add a MessageBodyMember attribute to the CodeName property and set the ProtectionLevel to Sign. Add a MessageBodyMember attribute to the SecretHandshake property and set the ProtectionLevel to EncryptAndSign. 

B. Add a DataProtectionPermission attribute to the each property and set the ProtectData property to True. 

C. Add an XmlText attribute to the CodeName property and set the DataType property to Signed. Add a PasswordPropertyText attribute to the SecretHandshake property and set its value to True. 

D. Add an ImmutableObject attribute to the CodeName property and set its value property to True. Add a Browsable attribute to the SecretHandshake property and set its value to False. 

Answer:


Question No. 89

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. Replace line 05 with the following code. <TransactionFlow( TransactionFlowOption.NotAliowed)> 

B. Replace line 13 with the following code. <OperationBehavior( TransactionScopeRequired:"False, TransactionAutoComplete:-True)> 

C. Replace line 05 with the following code. <TransactionFlow( TransactionFlowOption.Allowed) > 

D. Replace line 13 with the following code. <OperatlonBehavior( TransaetionScopeRequired:"False, TransactionAutoComplete:"False)> 

Answer:


Question No. 90

You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms application. 

The ServiceHost instance is created in the Form constructor. 

You need to ensure that the service is not blocked while the UI thread is busy. 

What should you do? 

A. Decorate the service implementation class with the following line of code. 

[ServiceBehavior( 

UseSynchronizationContext = false)] 

B. Decorate the service implementation class with the following line of code. 

[ServiceBehavior( 

ConcurrencyMode = ConcurrencyMode.Multiple)] 

C. Call the Invoke method of the form and supply a delegate.s 

D. Call the BeginInvoke method of the form and supply a delegate. 

Answer: