Download Free Microsoft 70-513 PDF and VCE Updated Today 241-250

      Comments Off on Download Free Microsoft 70-513 PDF and VCE Updated Today 241-250

Vendor: Microsoft
Exam Code: 70-513
Exam Name: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4
Version: 14.91

QUESTION 241
Four Windows Communication Foundation (WCF) services are hosted in Microsoft Internet Information Services (IIS). No behavior configuration exists in the web.config fiIe.
You need to configure the application so that every service and endpoint limits the number of concurrent calls to 50 and the number of concurrent sessions to 25.
Which XML segment should you add to the system.serviceModel configuration section of the web.config file?

A.    <behaviors>
    <serviceBehaviors>
        <behavior name="*">
            <serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
        </behavior>
    </serviceBehaviors>
</behaviors>
B.    <behaviors>
    <serviceBehaviors>
        <behavior name="default">
            <serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
        </behavior>
    </serviceBehaviors>
</behaviors>
C.    <behaviors>
    <serviceBehaviors>
        <behavior name="">
            <serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
        </behavior>
    </serviceBehaviors>
</behaviors>
D.    <behaviors>
    <serviceBehaviors>
        <behavior name="ALL">
            <serviceThrottling maxConncurentCalls="50" maxConcurrentSessions="25" />
        </behavior>
    </serviceBehaviors>
</behaviors>

Answer: C

QUESTION 242
A Windows Communication Foundation (WCF) solution exposes the following service over a TCP binding. (Line numbers are included for reference only.)

wpsA5B1.tmp

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?

A.    Change the service behavior as follows.
<ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Multiple,
InstanceContextMode:=InstanceContextMode.Single)>
B.    Change the service behavior as follows.
<ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Single,
InstanceContextMode:=InstanceContextMode.PerSession)>
C.    Add a throttling behavior to the service, and configure the maxConcurrentCalls.
D.    Add a throttling behavior to the service, and configure the maxConcurrentSessions.

Answer: C

QUESTION 243
You are developing a Windows Communication Foundation (WCF) service to provide an in- memory cache. The following code is part of your solution. (Line numbers are included for reference only.)

02 Public Interface IlnMemoryCacheService
04 <OperationContract()>
05 Function GetCachedItem(
ByVal key As String) As String
07 <OperationContract() >
08 Sub CacheItem(
ByVal key As String,
ByVal item As String)
10 End Interface
12 <ServiceBehavior(
InstanceContextMode:=InstanceContextHode.Single)>
13 Public Class CacheService
14 Implements IlnHemoryCacheService
16 Dim cache As Hashtatale – New Hashtable)>
18 Public Function GetCachedItem(
ByVal key As String) As String
mplements IInHemoryCacheService.GetCachedltem
20 Return cache (key) .ToStrlng()
22 End Function
24 Public Sub Cacheltem(
ByVal key As String,
ByVal item As String)
Implements ilnMemoryCacheService.Cacheltem
Then
26 If (cache.Contains(key)
27 cache.Remove(key)
28 End If
30 cache.Add(key, item)
32 End Sub
34 End Class

Users report that the cache is getting updated with cache changes of other users.
You need to ensure that each user’s cache is maintained and isolated from other users.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

A.    Insert the following code at line 01.
[ServiceContract(SessionMode=SessionMode.NotAllowed)]
B.    At line 12, replace InstanceContextMode.Single with InstanceContextMode.PerSession.
C.    At line 12, replace InstanceContextMode.Single with InstanceContextMode.PerCall.
D.    Insert the following code at line 01.
[ServiceContract(SessionMode=SessionMode.Required)]

Answer: BD

QUESTION 244
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

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

wpsDC6B.tmp

This is one of several service contracts hosted by your application. All endpoints use SOAP 1.2 bindings with WS-Addressing 1.0. The System.ServiceModel.MessageLogging trace source in the system.diagnostics configuration section is configured with one listener.
You need to make sure that only the messages that are returned from the DoWork operation are logged.
Which XML segment should you add to thesystem.serviceModel/diagnostics/messageLogging/filters configuration element?

A.    odd xmlns:soap="http://www.u3.org/2003/05/soap-envelope"> //soap:Action[text() =
http://contoso.com/I5hipping/DoWorkResponse’]
</add>
B.    <odd xmlns:addr-"http://vww.w3.org/2005/08/addressing"> //addr:Action[text() –
`http://contoso.com/IShipping/DoWorkResponse’ ]
</add>
C.    <add xmlns:addr="http://www.w3.org/2005/Q8/addressing"> //addr:Action[text() =
http://contoso.com/IShipping/DoUork’ ]
</add>
D.    <add xmlns:soap?quot;http://www.w3.org/2003/05/soap-envelop">; //soap:Action[text() =
1http://contoso.com/I3hipping/DoWork’]
</add>

Answer: A

QUESTION 246
Drag and Drop Question
You develop a Windows Communication Foundation (WCF) service that uses the SOAP protocol.
You must secure the service by using Kerberos authentication for the transport layer. The SOAP messages must be authenticated by using a Security Assertion Markup Language (SAML) token.
You need to configure the service configuration file.
How should you complete the relevant markup? (To answer, drag the appropriate markup segment to the correct locations in the answer area. Each markup 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.)

wps81D.tmp

Answer:

wps2188.tmp

QUESTION 247
You are creating an application using Visual Studio 2010. The application consumes a Windows Communication Foundation (WCF) service.
You are adding a service reference to the WCF service.
You need to ensure that the generated proxy does not block the calling thread when executing a service method.
What should you do when adding the service reference?

A.    Set the Collection type to ObservableCollection.
B.    Select the Reuse types in all referenced assemblies option.
C.    Select the Generate asynchronous operations option.
D.    Select the Always generate message contracts option.

Answer: C

QUESTION 248
You are configuring a routing service to call a target service. The routing service has no knowledge of the target service’s data tyes other than the service contract.
The operation contract for all of the methods of the target service specifies IsOneWay=true.
You need to specify the endpoint information for the routing service.
What should you do?

A.    In the target service configuration file, specify "*" for the client endpoint contract and "*" for the
service endpoint contract.
B.    In the routing service configuration file, specify "*" for the client endpoint contract and
System.ServiceModel.Routing.ISimplexDatagramRouter for the service endpoint contract.
C.    In the routing service configuration file, specify "*" for the client endpoint contract and "*" for the
service endpoint contract.
D.    In the routing service configuration file, specify "*" for the client endpoint contract and
System.ServiceModel.Routing.IRequestReplyRouter for the service endpoint contract.

Answer: B

QUESTION 249
You develop a Windows Communication Foundation (WCF) service that includes the following code. (Line numbers are included for reference only.)

wps481C.tmp

ServiceB must not accept reentrant service calls.
You need to modify the behavior of the service.
What should you do?

A.    Insert the following code segment at line 07:
<ServiceBehavior(ReleaseServiceOnTransactionTransactionComplete:=True)>
B.    Replace the code segment at line 01 with the following code segment:
<ServiceBehavior (InstanceContextMode:=InstanceContextMode.Single) >
C.    Insert the following code segment at line 07:
<ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Multiple)>
D.    Insert the following code segment at line 07:
<ServiceBehavior(ReleaseServiceInstanceOnTransactionComplete:=False)>

Answer: A

QUESTION 250
You are hosting a Windows Communication Foundation (WCF) service under Microsoft Interent Information Services (IIS) 7.0.
You have set up a web site in IIS Manager. The physical path is c:\wwwroot\Calendar.
There is a Calendar.svc file in the c:\wwwroot\Calendar folder. It contains the following directive:

<% @ServiceHost Language="C#" Debug="true" Service="Calendar.Calendar" CodeBehind="CalendarSvc.cs" %>

The CalendarSvc.cs file contains the source for the Calendar class in the Calendar namespace.
You compile this code into the Calendar.dll file.
You need to deploy your service to the web site.
What should you do?

A.    Copy the Calendar.dll file to the c:\wwwroot\Calendar\code folder
B.    Copy the Calendar.dll file to the c:\wwwroot\Calendar\bin folder
C.    Copy the Calendar.svc.cs file to the c:\wwwroot\Calendar\bin folder
D.    Copy the Calendar.svc.cs file to the c:\wwwroot\Calendar\code folder

Answer: B

If you want to pass Microsoft 70-513 exam successfully, donot missing to read latest lead2pass Microsoft 70-513 dumps.
If you can master all lead2pass questions you will able to pass 100% guaranteed.

http://www.lead2pass.com/70-513.html