PrepAway - Latest Free Exam Questions & Answers

Category: 70-513 (v.2)

Exam 70-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4 (update October 28th, 2015)

You need to change the service to allow up to the maximum number of executions of the methods of MessageDataba

A Windows Communication Foundation (WCF) solution exposes the following service over
a TCP binding. (Line numbers are included for reference only.) MessageDatabase supports
a limited number of concurrent executions of its methods. You need to change the service
to allow up to the maximum number of executions of the methods of MessageDatabase.
This should be implemented without preventing customers from connecting to the service.
What should you do?

Which two actions should you perform?

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

What should you do?

You are creating a Windows Communication Foundation (WCF) service that responds using
plain-old XML (POX). You have the following requirements: • You must enable the
/catalog.svc/items operation to respond using the POX, JSON, or ATOM formats. You also
must ensure that the same URL is used regardless of the result type. • You must determine
the response format by using the Accepts HTTP header. What should you do?

You need to ensure that the service publishes the WSDL description at http://services.contoso.com/OrderLookupS

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?

Which code segment should you use?

You are creating a Windows Communication Foundation (WCF) service. You do not want to
expose the internal implementation at the service layer. You need to expose the following
class as a service named Arithmetic with an operation named Sum. Public Class Calculator
Public Function Add (ByVal x As Integer, ByVal y As Integer) As Integer End Function End
Class Which code segment should you use?

What should you do?

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?

Which code segment should you use?

You are maintaining a Windows Communication Foundation (WCF) service that uses a
custom UserNamePassword class to authenticate clients. The service certificate is hosted
in the deployment server store for trusted root certificate authorities and has a Subject value
of TaxServiceKey. Other service certificates hosted on the server also use TaxServiceKey
as a Subject value. You need to ensure that the service identifies itself with a certificate

whose subject name and distinguished names are TaxServiceKey. Which code segment
should you use?


Page 15 of 23« First...10...1314151617...20...Last »