This page was exported from New Lead2pass PDF And VCE Ensure IT Exam Pass 100% [ http://www.dumps4microsoft.com ] Export date:Wed Dec 19 2:15:08 2018 / +0000 GMT ___________________________________________________ Title: [2016-New] Free Share Of GreatExam 70-513 VCE And PDF Dumps (161-170) --------------------------------------------------- 2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com! 100% Free Download! 100% Pass Guaranteed! Are you interested in successfully completing the Microsoft 70-513 Certification Then start to earning Salary? GreatExam has leading edge developed Microsoft exam questions that will ensure you pass this 70-513 exam! GreatExam delivers you the most accurate, current and latest updated 70-513 Certification exam questions and available with a 100% money back guarantee promise! Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!) 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 endpointaddress 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? A.    HostInstance Credentials.ServiceCertificate SetCertificate(StoreLocation.LocalMachine, StoreName.My,x509FindType.FindBySubjectName, "CN="TaxServiceKey");B.    HostInstance Credentials.ServiceCertificate SetCertificate(StoreLocation.LocalMachine, StoreName.AuthRoot,x509FindType.FindBySubjectName, "CN="TaxServiceKey");C.    HostInstance Credentials.ServiceCertificate SetCertificate(StoreLocation.LocalMachine, StoreName.My,x509FindType.FindByDistinguishedName, "CN="TaxServiceKey");D.    HostInstance Credentials.ServiceCertificate SetCertificate(StoreLocation.LocalMachine, StoreName.Root,x509FindType.FindByDistinguishedName, "CN="TaxServiceKey"); Answer: D 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 Double10 <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? A.    [ServiceBehavior(lnstanceContextMode = lnstanceContextMode.PerSession,ConcurrencyMode = ConcurrencyMode.Single)]B.    [ServiceBehavior(lnstanceContextMode = lnstanceContextMode.PerCall,ConcurrencyMode = ConcurrencyMode.Reentrant)]C.    [ServiceBehavior(InstanceContextMode = lnstanceContextMode.PerSession,ConcurrencyMode = ConcurrencyMode.Multiple)]D.    [ServiceBehavior(lnstanceContextMode = lnstanceContextMode.PerCall,ConcurrencyMode = ConcurrencyMode.Multiple)] Answer: C 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 collectionas 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 collectionas 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 followingcontract<%@ 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? A.    Binary message encodingB.    MTOM (Message Transmission Optimization Mechanism) message encodingC.    Text message encoding with message version set to noneD.    Text message encoding with message version set to SOAP 1.2 Answer: B All Microsoft 70-513 exam questions are the new checked and updated! In recent years, the 70-513 certification has become a global standard for many successful IT companies. Want to become a certified Microsoft professional? Download GreatExam 2016 latest released 70-513 exam dumps full version and pass 70-513 100%! 2016 Microsoft 70-513 exam dumps (All 341 Q&As) from GreatExam: http://www.greatexam.com/70-513-exam-questions.html [100% Exam Pass Guaranteed!!!] --------------------------------------------------- Images: http://examgod.com/geimages/029e451ee87f_887E/1611_thumb.jpg http://examgod.com/geimages/029e451ee87f_887E/1631_thumb.jpg http://examgod.com/geimages/029e451ee87f_887E/1691_thumb.jpg --------------------------------------------------- --------------------------------------------------- Post date: 2016-06-07 01:31:44 Post date GMT: 2016-06-07 01:31:44 Post modified date: 2016-06-07 01:31:44 Post modified date GMT: 2016-06-07 01:31:44 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com