This page was exported from Free Download Lead2pass VCE And PDF Dumps [ https://www.pass4sureshared.com ] Export date:Thu Mar 28 9:41:17 2024 / +0000 GMT ___________________________________________________ Title: [2016-New] Pass 70-513 Exam By Exercising GreatExam Latest 70-513 VCE And PDF Dumps (301-310) --------------------------------------------------- 2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com! 100% Free Download! 100% Pass Guaranteed! GreatExam 70-513 braindumps including the exam questions and the answer, completed by our senior IT lecturers and the Microsoft product experts, include the current newest 70-513 exam questions. Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!) QUESTION 301A Windows Communication Foundation (WCF) solution uses the following contract.<ServiceContract(SessionMode:=SessionMode Allowed)sPublic Interface lMyService <OperationContract(lsTerminating:sFalse)sSub Initialize ()<OperationContract(lslnitiating:sFalse)>sSub DoSomething()<OperationContract(lsterminating:=True)>Sub Terminate ()End InterfaceYou need to change this interface so that:"Initialize is allowed to be called at any time before Terminate is called."DoSomething is allowed to be called only after Initialize is called, and not allowed to be called after Terminate is called. "Terminate will be allowed to be called only after Initialize is calledWhich two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A.    Change the ServiceContract attribute of the lMyService interface to the following.ServiceContract(SessionMode:sSessionMode. Required)B.    Change the ServiceContract attribute of the lMyService interface to the following.ServiceContract(SessionMode:sSessionModeAllowed)?C.    Change the OperationContract attribute of the Initialize operation to the following.OperationContract(lslnitiating: `True, IsTerminating: `False)D.    Change the OperationContract attribute of the Terminate operation to the following.OperationContract(Islnitiatings:False, lsTerminating: `True) Answer: AD QUESTION 302A Windows Communication Foundation (WCF) solution uses the following contract.[ServiceContract(SessionMode SessionModeAllowed)] public interface IMyService {[OperaionContractQsTerminating false) void lnitialize0;[OperaionContractQslnitiating false)] Void DoSomethingO;[OperaionContractQsTerminating true)J void TerminateO;}You need to change this interface so that:`Initialize is allowed to be called any time before Terminate is called"DoSomething is allowed to be called only after Initialize is called, and n allowed to be called after Terminate is called "Terminate will be lowed to be called only after Initialize is calledWhich two actions should you perform (Each correct answer presents part of the solution. Choose two) A.    Change the ServiceContract attribute of the IMyService interface to the following.ServiceContract(SessionMode = SessionMode Required)B.    Change the ServiceContract attribute of the IMyService interface to the following.ServiceContract(SessionMode SessionMode Allowed)C.    Change the OperationContract attribute of the Initialize operation to the following.OperationContract(initiating = true, IsTerminating = false)D.    Change the OperationContract attribute of the Terminate operation to the following.OperationContract(klnitiating = fase, IsTerminating = true) Answer: AD QUESTION 303A Windows Communication Foundation (WCF) service implements a contract with one-way and request-reply operations.The service is exposed over a TCP transport. Clients use a router to communicate with the service.The router is implemented as follows. (Line numbers are included for reference only.)01 ServiceHost host = new ServiceHost(typeof(RoutingService));02 host.AddServiceEndpoint(03     typeof(ISimplexDatagramRouter),04     new NetTcpBinding(), "net.tcp://localhost/Router"05    );06 List<ServiceEndpoint> lep = new List<ServiceEndpoint>();07 lep.Add(08     new ServiceEndpoint(09        ContractDescription.GetContract(10           typeof(ISimplexDatagramRouter)11    ),12     new NetTcpBinding(),13     new EndpointAddress("net.tcp://localhost:8080/Logger")14    )15 );16 RoutingConfiguration rc = new RoutingConfiguration();17 rc.FilterTable.Add(new MatchAllMessageFilter(), lep);18 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 03 as follows:typeof(IRequestReplyRouter),B.    Change line 03 as follows:typeof(IDuplexSessionRouter),C.    Change line 10 as follows:typeof(IRequestReplyRouter)D.    Change line 10 as follows:typeof(IDuplexSessionRouter) Answer: B QUESTION 304Windows Communication Foundation (WCF) service will be hosted in Microsoft Internet Information Services (IIS).You create a new application in IIS to host this service and copy the service DLL to the bin directory of the application.You need to complete the deployment of this service to IIS.What should you do next? A.    Create an asmx file and add a @ServiceHost directive to this file.Copy the file to the root of the application directory.B.    Create an .asmx file and add a @Register directive to this file.Copy the file to the bin directoyy of the application.C.    Create a svc file and add a @ServiceHost directive to this file.Copy the file to the root of the application directory.D.    Create a .svc file and add a @Register directive to this file.Copy the file to the bin directory of the application. Answer: C QUESTION 305A Windows Communication Foundation (WCF) service listens for messages at net.tcp://www.contoso.com/MyService.It has a logical address at http://www.contoso.com/MyService.The configuration for the WCF client is as follows:<endpoint address="http://www.contoso.com/MyService"    binding="netTcpBinding"    bindingConfiguraton="NetTcpBinding_IMyService"    contract="ServiceReference1.IMyService"    name="NetTcpBinding_IMyService"/>The generated configuration does not provide enough information for the client to communicate with the server.You need to update the client so that it can communicate with the server.What should you do? A.    In the client configuration, change the value of the address attribute tonet.tcp://www.contoso.com/MyServiceB.    In the client configuration, change the value of the address attribute tonet.tcp://www.contoso.com/MyService listen=http://www.contoso.com/MyService.C.    After instantiating the client and before invoking any service operation, add this line of code.EndpointBehaviors.Add(new EndpointDiscoveryBehavior(){ Enabled = true });D.    After instantiating the client and before invoking any service operation, add this line of code.client.Endpoint.Behaviors.Add(new ClientViaBehavior(new Uri("net.tcp://www.contoso.com/IMyService"))); Answer: D QUESTION 306A Windows Communication Foundation (WCF) client communicates with a service.You created the client proxy by using Add Service Reference in MS Visual Studio.You need to ensure that the client accepts responses of up to 5 MB in size. What should you change in the configuration file'? A.    the value of the maxBufferPoolSize attribute to 5242880B.    the value of the maxReceivedMessageSize attribute to 5242880C.    the value of the maxBytesPerRead attribute to 5242880D.    the value of the maxBufferSize attribute to 5242880 Answer: B QUESTION 307You are building a client for a Windows Communication Foundation (WCF) service.You need to create a proxy to consume this service.Which class should you use? A.    ChannelFactory<TChannel>B.    ServiceHostC.    ClientRuntimeD.    CommunicationObject Answer: A QUESTION 308Windows Communication Foundation (WCF) application uses a data contract that has several data members.You need the application to throw a Serialization Exception if any of the data members are not present when a serialized instance of the data contract is deserialized.What should you do? A.    Add the Known Type attribute to the data contract.Set a default value in each of the data member declarations.B.    Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.C.    Set the Emit Default Value property of each data member to false.D.    Set the lsRequired property of each data member to true. Answer: D QUESTION 309A Windows Communication Formation (WCF) client and service share the following service contract interface<ServiceContractO>Public Interface IContosoService <OperationContractO>Sub SasePerson(BWal person As Person)End InterfaceThey also use the following binding.Dim binding As NetTcpBinding = New NetTcpBinding With {TransactionFlow = True) The client cals the service with the (following code using (mransactionScope ts = new TransactionScope(TransactionScopeOptionRequired)){IContosoService client = factoryCreateChannelO;client SavePerson(person);Consde. WriteLine(Transaction. CurreriTransactioninformationDistnbutedldentifierXts CorrpleteO;)The service has the following impementation for SavePersonPublic Sub SavePerson(ByVal person As Perwn) -- implements IContosoService SavePerson person Save()ConsdeWriteLine(Transaction .Current TransactionlnformaionaDistributedldentifier)End SitThe distributed identifiers do not match on the client and the server.You need to ensure that the client and server enlist in the same distributed transactionWhat should you do? A.    Add the following attributes to the SavePerson operation on IContosoService.[OperationBehavior(TransactionScope.Required = true)][TransactionFlow(TransactionFlowOption.Mandatory)]B.    Add the following attributes to the SavePerson operation on lContosoService[TransactionFlow(TransactionFlowOption.Mandatory)][OperationBehavior(TransactionScope.Required = true)]C.    Add the following attribute to the SavePerson operation on lContosoService[OperationBehavior(TransactionScope.Required = true)]Add the following attribute to the implementation of SavePerson.[TransactionFlow(TransactionFlowOption.Allowed)]D.    Add the following attribute to the SavePerson operation on lContosoService[TransactionFlow(TransactionFlowOption.Allowed)]Add the following attribute to the implementation of SavePerson.[OperationBehavior(TransactionScope.Required = true)] Answer: D QUESTION 310A Windows Communication Foundation (WCF) solution uses the following contract to share a message across its clients (Line numbers are included for reference only)01 <ServiceContract0>02 PuElic Interface ITeamMessageService04 <OperationContractO>05 Function GetMessage() As String07 <OperationContract0>08 Sub PutMessage(Byval message As String)O9 End InterfaceThe code for the serAce class is as follows.10 Public Class TeamMessageService011 Implements lTearmt4essageService13 Dim key As Guid = Guid.NewGuid()14 Dim message As String = "Today's Message'16 PuUic Function GetMessage0As String -17 lmpements lTearm*AessageServiceGetMessage19 Retun String. Fommat("Message:{0) Key:{ 1}", message, key)20 End Function22 PubIic Sub PutMessage(ByV message As Stnng) -23 lmpements lTearrlessageService PutMessage25 Me message = message26 End Sub28 End ClassThe service is self-hosted The hosting code rs as follows29 Dim host As ServiceHost =New ServiceHost(GetType(TearrwiessageSeMce))?30 Dim binding As Basic HttpBindngtNew BasicHttpBindiig(BasicHttpSecurityMode. None) 31 host.AddServiceEndpoint("MyAppication lTearrtAessageService", bindingThttp /Ilac aihost. 1 2345)32 host Open()You need to ensure that all clients calling GetMessage will retrieve the same string, even if the message is upd(ed by clients calling PutMessagewhat should you do? A.    Add the following attribute to the TeamMessageService class, before line 10.<ServceBehavior(lnstanceContextMode lnstanceContextMode. Single)>B.    Add the following attribute to the TeamMessageService class, before line 10002E<ServiceBehavior( lnstanceContextll ode. = InstanceContextMode.PerSession)>C.    Pass a service instance to the instancing code in line 29, as follows.Dim host As ServiceHost z New ServiceHost(New TeamMessageServiceO)D.    Redefine the message string in line 14, as follows.Shared message As String "Today's Message"Then change the implementation of PutMessage in lines 22-26 to the followingPublic Sub PutMessage(ByVal message As rng) - Implements ITean-MessageService.PutMessageTeamMessageSenAce.message = message End Sub Answer: A If you use GreatExam braindump as your 70-513 exam prepare material, we guarantee your success in the first attempt. GreatExam 70-513 practice test provides you everything you will need to take your 70-513 Exam. 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: --------------------------------------------------- --------------------------------------------------- Post date: 2016-06-08 03:05:26 Post date GMT: 2016-06-08 03:05:26 Post modified date: 2016-06-08 03:05:26 Post modified date GMT: 2016-06-08 03:05:26 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com