QUESTION 161You 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?

A. Option A.B. Option BC. Option CD. Option D

Answer: D

QUESTION 162You 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 OrderService05 eCNperationCortracto()>O6 Putdic Sub Submit Order(ByVal anOrder As Order) 08 Try09.10 Catch ex As D wide By Zero Exception12 End Try13 End Sub15 End ClassYou 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.ThrowB. Replace line 11 with the following line.Throw New FaultException(C Order)(anOrder, exToSthng0)dC. After line 05, add the following line.`cFaultContract(GetType(FautException(Of Order)))> Replace line 11 with the following line.Throw exD. 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”)

Answer: D

QUESTION 163You 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.NotAllowed)]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. [OperationBehavior(TransactionScopeRequired=false, TransactionAutoComplete=false)]

Answer: B

QUESTION 164You are developing a Windows Communication Foundation (WCF) service that allows customers to update financial data. The client applications call the service in a transaction. The service contract is defined as follows. (Line numbers are included for reference only.)01 <ServiceContract()>02 Public Interface IDatallpdate04 <OperationContract()>05 <TransactionFlow(TransactionFlowOption.Handatocy)>06 Sub Update (ByVal accountNumber As String,ByVal amount As Double)08 End Interface10 Class UpdateService11 Implements IDataUpdate13 <OperationBehavior(TransactionScopeRequired:=True, TransactionAutoComplete:=True)>14 Public Sub Update(ByVal accountNumber As String,ByVal amount As Double)Implements IDataUpdate.Update IS16 Try18 Catch ex As Exception19 WriteErrorLog(ex) 2021 End Try23 End Sub25 End ClassCustomers report that the transaction completes successfully even if the Update method throws an exception.You need to ensure that the transaction is aborted if the Update method is not successful.What should you do?

A. insert the following line at line 20.ThrowB. Replace line 13 with the following line.<OperationBehavior(TransactionScopeRequired:MTrue,TransactionAutoComplece:”False)>C. Insert the following line at line 09.<ServiceBehavlor(TransactionAutoCoropleteOnSessionClose:”False) >D. Insert the following line at line 09.<ServiceBehavior(TransacCionAucoCompleteOnSesslonClose:”True) >

Answer: A

QUESTION 165A 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(Of TChannel).D. On the client, use GetCallbackChannel (Of T).

Answer: C

QUESTION 166You are maintaining a Windows Communication Foundation (WCF) service that uses a custom username password class to authenticate clients with. 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 same 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?

QUESTION 167You 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 IFinancialService04 <OperationContract()>05 Function Login(ByVal employeeID As Integer,ByVal passwordHash As String)As String07 <OperationContract()>08 Function GetBonus(ByVal month As Integer) As Double 10 <OperationContract(IsTerminating:=True)>11 Sub Logout()13 End InterfaceClient 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

QUESTION 168You are creating a Window s Communication Foundation (WCF) service application. The application needs to service many clients and requests simultaneously.The application also needs to ensure subsequent individual client requests provide a stateful conversation.You need to configure the service to support these requirements.Which attribute should you add to the class that is implementing the service?

QUESTION 169A class named TestService implements the following interface.TestService is hosted in an ASP.NET applicator.You need to modify the application to allow the GetServiceTime method to return the data formatted as JSON.It must do this only when the request URL ends in lServiceTime.What should you do?

A. Add this attribute to the GetServiceTime method <webinvoke(Method “POST)>In the bconfig file, add this element to systemserviceModeI/behaviors/endpointBehaviors.<behaviornames”Json”>e<enableWebScriptc/behavior>In the web.config file, configure TestService in the system.serviceModel/services collection as follows.<service name”TestService”>s<endpoint address/ServiceTime”contract-“TestSerAce””behaviorConlfgurationz’Jsonbindinge”webHttpBinding”!> <!servicesB. Add this attribute to the GetServiceTime method <Webinvoke(Method PGETw,UrTemplate:eiSeneiceTim&, ResponseFormat: WebMessageFormatJson)> In the bconfIg file, configure TestService in the system.arviceModeI/services collection as follows. <senvice namee”TestService”> <endpoint ad&esse”ISer,iceTime”r contracte”TestSence’ bindingewebHttpBindngw />c/service>C. Add this attribute to the GetServiceTime method <webGet(ResponseFormat WebMessageFormatJson,UnTemplate:eJServiceTime”)>?Create a new svc file named Jsonversion svc with the following contract <%@ ServiceHost Servicee”TessService”iFactory=”System ServiceModelktivation WebServiceHosFactory” %sD. Add this attribute to the GetServiceTime method <WebGet(UriTempbte: z”{Json}/ServiceTime”)>Create a new svc file named Jsonversionsvc with the following contert <%@ ServiceHost Service=”TestSenvice”Factoryz’System Se viceMode[ktivationWebServiceHodFactory” %>

Answer: C

QUESTION 170A Windows Communication Foundation (WCF) service is responsible for transmitting XML documents between systems.The service has the following requirements:– It must minimize the transmission size by attaching the XML document as is without using escape characters or base64 encoding.– It must interoperate with systems that use SOAP but are not built on the .NET plafform. You need to configure the service to support these requirements. Which message encoding should you use?

Braindump2go is famous for our Interactive Testing Engine that simulates a real exam environment as experienced on the actual test. We will help you become familiar with the testing environment in advance.Real 70-513 Exam Questions Plus Real 70-513 Exam Testing Environment! Braindump2go 100% Guarantees your pass of 70-513 Exam! 70-513 Dumps,341q 70-513 Exam Questions, 70-513 PDF and 70-513 VCE are also available for instant download in our website at any time! 24 hours professional assistance from IT Group! Braindump2go aims to help you pass 70-513 Exam easily!