[Free] Get all latest Microsoft 70-513 Actual Tests 31-40

Ensurepass

QUESTION 31

You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled. You create an intermediate WCF service for logging messages sent to the primary service. The intermediate service is called via the clientVia endpoint behavior. The primary service is receiving malformed data from a client application. You need to enable inspection of the malformed data and prevent message tampering. What should you do?

 

A.

Specify a protection level of None in the service contract for the intermediate service. Disable message and transport security from the client application configuration file.

B.

Specify a protection level of Sign in the service contract for the intermediate service. Disable transport security from the client application configuration file.

C.

Modify the binding on the intermediate service to use netNamedPipeBinding.

D.

Modify the binding on the intermediate service to use webHttpBinding.

 

Correct Answer: B

 

 

QUESTION 32

A Windows Communication Foundation (WCF) service interacts with the database of a workflow engine. Data access authorization is managed by the database, which raises security exceptions if a user is unauthorized to access it. You need to ensure that the application transmits the exceptions raised by the database to the client that is calling the service. Which behavior should you configure and apply to the service?

 

A.

routing

B.

serviceDebug

C.

serviceSecurityAudit

D.

workflowUnhandledException

 

Correct Answer: B

 

 

QUESTION 33

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

 

The client application contains the following code.

 

clip_image001

 

The configuration file contains the following lines.

 

clip_image002

 

You need to ensure that the service is consumed.

 

Which code segment should you use?

 

A.

Dim client As SocialClienc =

New SocialClienc(“POST”)

client.Endpoint.Behaviors.Add(

New WebHttpBehavior())

B.

Dim client As SocialClient =

New SocialClient(“SocialClient”)

client.Endpoint.Behaviors.Add(

New WebHttpBehavior())

C.

Dim client As SocialClient =

New SocialClient(“SocialClient”)

client.Endpoint.Behaviors.Add(

New WebScriptEnablingBehavlor())

D.

Dim client As SocialClient =

New SocialClient(“POST”)

client.Endpoint.Behaviors.Add(

New WebScriptEnablingBehovior())

 

Correct Answer: B

 

 

QUESTION 34

Four Windows Communication Foundation (WCF) services are hosted in Microsoft Internet Information Services (IIS). No behavior configuration exists in the web.config file. 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 maxConcurrentCalls =”50″ maxConcurrentSessions =”25″/>

</behavior>

</ serviceBehaviors >

</behaviors>

 

Correct Answer: C

 

 

QUESTION 35

You are developing a Windows Communication Foundation (WCF) service. You must record all available information for the first 1,000 messages processed, even if they are malformed. You need to configure the message logging section of the configuration file. Which configuration segment should you use?

 

clip_image004

 

A.

Option A.

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 36

DRAG DROP

You configure a Windows Communication Foundation (WCF) service. The service has a class named Person that includes the following code segment:

 

clip_image005

 

The Person class has the following requirements:

 

clip_image007The secret property must be encrypted and serialized in the SOAP header.

clip_image007[1]The comments property must be transmitted in plain text and serialized in the SOAP body.

clip_image007[2]The name property must be transmitted in plain text and serialized in the SOAP body.

clip_image007[3]The service must ensure the integrity of the name property when data is transmitted.

clip_image007[4]The service must not ensure the integrity of the comments property when data is transmitted.

 

You need to ensure that the Person class is serialized.

 

How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct location or locations 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.)

 

clip_image009

 

Correct Answer:

clip_image011

 

 

QUESTION 37

You are developing a Windows Communication Foundation (WCF) service that allows customers to update financial data. The service contract is defined as follows. (Line numbers are included for reference only.)

 

clip_image012

 

You need to ensure that the service is invoked within a transaction. What should you do?

 

A.

Replace line 01 with the following code.

[ServiceContract(

SessionMode = SessionMode.NotAllowed)]

B.

Replace line 01 with the following code.

[ServiceContract( SessionMode = SessionMode.Required)]

C.

Insert the following code at line 08.

[ServiceBehavior(

TransactionAutoCompleteOnSessionClose = false)]

D.

Insert the following code at line 08.

[ServiceBehavior(

ReleaseServiceInstanceOnTransactionComplete = false)]

 

Correct Answer: B

 

 

QUESTION 38

You are creating a Windows Communication Foundation (WCF) service that is implemented as folks. (Line numbers are included for reference only.)

 

01 <ServiceContract()

 

02 <ServiceBehaior(lncludeExceptionDetailInFaults: Time)>

 

03 Public Class OrderService

 

04

 

05 eCNperationCortracto()>

 

06 Putdic Sub Submit Order(ByVal anOrder As Order)

 

07

 

08 Try

 

09 .

 

10 Catch ex As D wide By Zero Exception

 

11

 

12 End Try

 

13 End Sub

 

14

 

15 End Class

 

You need to ensure that the sack trace details of the exception are not included in the error information sent to the client. What should you do?

 

A.

Replace line 11 with the following line.

Throw

B.

Replace line 11 with the following line.

Throw New FaultException(C Order)(anOrder, exToSthng0)d

C.

After line 05, add the following line.

`cFaultContract(GetType(FautException(Of Order)))>

Replace line 11 with the following line.

Throw ex

D.

After line 05, add the following line.

<FaultContract(GetType(FaultException(CX Order)))>

Replace line 11 with the following line.

Throw New FaultException(CX Order)(

anOrder, “Divide by zero exception”)

 

Correct Answer: D

 

 

QUESTION 39

A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service. You must ensure that the client application can interact with the WCF service. What should you do?

 

A.

On the OperationContractAttribute, set the AsyncPattern property value to true.

B.

On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.

C.

On the client, create a proxy derived from DuplexClientBase<TChannel>.

D.

On the client, use GetCallbackChannel<T>.

 

Correct Answer: C

 

 

QUESTION 40

A Windows Communication Foundation (WC9 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 impemented as follows.

 

(Line numbers are included for reference only.)

 

01 Dim host As ServiceHost =

 

02 New ServiceHost(GetType(RoutingService))

 

03 hostAddServiceEndpoint(

 

04 GetType(lSimplexDatagramRouter),

 

05 New NetTcpBinding0, “net.tcp://localhostlRouter”

 

06)

 

07 Dim lep As List(Of ServiceEndpoint) =

 

08 New List(Of SenviceEndpointx)

 

09 lepAdd(

 

10 New ServiceEndpoint(

 

11 CortractDescription.GetContract(

 

12 GetType(lSimplexDatagramRouter)

 

13)1

 

14 New NetTcpBinding0,x

 

15 New EndpointAddressf’nettcp://localhost:8080/Logger’)

 

16)

 

17)

 

18 Dim rc As RoutingConfiguration = New RoutingConfiguration()

 

19 rc . FitterTable.Add(New Matctf4llMessageFilter0, lep)

 

20 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 04 as follows.

Get Type(lRequestReplyRouter),

B.

Change line 04 as follows

Get Type(lDuplexSessionRouter),

C.

Change line 12 as follows

GetType(lRequestReplyRouter)

D.

Change line 12 as follows.

Get Type(IDuplexSessionRouter)

 

Correct Answer: B

 

Instant Access to Download Testing Software & PDF File for Microsoft 70-513 Real Exam

Instant Access to Try Microsoft 70-513 Free Demo

This entry was posted in 70-513 Actual Tests and tagged , , , , , . Bookmark the permalink.