2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com!

100% Free Download! 100% Pass Guaranteed!

70-513 dumps free share: GreatExam presents the highest quality of 70-513 exam practice test which helps candidates to pass the 70-513 exams in the first attempt.

Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)

QUESTION 281You are creating a Windows Communication Foundation (WCF) service that implements the following service contract.<ServiceContract()>Public Interface IOrderProcessing<OperationContract()>Sub ApproveOrder(ByVal id As Integer)End InterfaceYou need to ensure that only users with the Manager role can call the ApproveOrder method. What should you do?

A. In the method body, check the Rights.PossessProperty property to see if it contains Manager.B. Add a PrincipalPermission attribute to the method and set the Roles property to Manager.C. Add a SecurityPermission attribute to the method and set the SecurityAction to Demand.D. In the method body, create a new instance of WindowsClaimSet.Use the FindClaims method to locate a claimType named Role with a right named Manager.

Answer: B

QUESTION 282You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.The ServiceHost instance is created in the Form Constructor.You need to ensure that the service is not blocked while the UI thread is busy.What should you do?

A. Decorate the service implementation class with the following line of code[ServiceBehavior(UseSyncronizationContext = false)]B. Decorate the service implementation class with the following line of code[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]C. Call the Invoke method of the form and supply a delegate.D. Call the BeginInvoke method of the form and supply a delegate.

Answer: A

QUESTION 283You are implementing a Windows Communication Foundation (WCF) service contract named lContosoService in a class named ContosoService.The service occasionally fails due to an exception being thrown at the service.You need to send the stack trace of any unhandled exceptions to clients as a fault message. What should you do?

A. In the application configuration file on the client, add the following XML segment to thesystem.serviceModel/behaviors configuration section group.<endpointBehaviors><behavior name=”debug”><callbackDebug includeExceptionDetaillnFaults=”true” /></behavior></endpointBehaviors>Associate the debug behavior with any endpoints that need to return exception details.B. In the application configuration file on the service and all the clients, add the following XMLsegment to the system.diagnostics/sources configuration section group.<source name=”System.ServiceModel” switchValue=”Error”propagateActivty=”true”><listeners><add name=”ServiceModelTraceListener”initializeData=”appntracelog.svclog”type=”System.Diagnostics.XmlWriterTraceListener” /></listeners></source>C. Apply the following attribute to the ContosoService class.[ServiceBehavior(IncludeExceptionDetailInFaults = true)]D. For each OperationContract exposed by lContosoService, apply the following attribute.[FaultContract(typeof(Exception))]

Answer: C

QUESTION 284You are developing a Windows Communication Foundation (WCF) service that reads messages from a public non-transactional MSMQ queue.You need to configure the service to read messages from the failed-delivery queue.Which URI should you specify in the endpoint configuration settings of the service?

QUESTION 285You develop a Windows Communication Foundation (WCF) service that uses basic authentication for client credentials.This service is currently configured to use message security.The service is hosted on a server in workgroup mode.Users report that their passwords are stolen when they use public computers.You need to ensure that messages are secure and users are authenticated.You prevent the service from being called over HTTP through Microsoft Internet Information Services (IIS) configuration.What should you do next?

A. Use the transportWithMessageCredential security mode and specify Basic for the transportclient credential type.B. Use the message security mode and specify Basic for the transport client credential type.C. Use the transport security mode and specify None for transport client credential type.D. Use the transportWithMessageCredential security mode and specify None for the transportclient credential type.

Answer: B

QUESTION 286You are developing a Windows Communication Foundation (WCF) service that returns location information for authorized law enforcement agencies.The service contract is as follows.Users are authenticated and impersonated.The system uses ASP.NET roles.The members of law enforcement are members of the LawEnforcement role.You need to ensure that only members of the LawEnforcement role can call these methods.What are two possible ways to achieve this goal (Each correct answer presents a complete solution. Choose two.)

A. Add a PrincipalPermissionAttribute to each method that should be available only to membersof law enforcement.Set its SecurityAction to Demand and set the role equal to LawEnforcement.B. Use the CurrentPrincipal property of the thread.Call the IsInRole method specifying LawEnforcement as a parameter.C. Create a GenericPrincipal specifying Thread.CurrentPrincipal.Identity as theIIdentityParameter and LawEnforcement as the only value for the Roles parameter.D. At the beginning of each method, enumerate each ClaimSet in a new WindowsClaimSet.Use the FindClaims method to locate a claim type named Role with a right namedLawEnforcement.

Answer: AB

QUESTION 287You are developing a Windows Communication Foundation (WCF) service named CalculatorService, which implements the ICalculatorService contract.The service is configured to be discoverable through UDP.CalculatorService contains multiple endpoints.One of the endpoints is configured with the following behavior.You need to log all the endpoint metadata information that is added by the service host.Which code segment should you use?

A. Option AB. Option BC. Option CD. Option D

Answer: B

Part 3 – Mixed QuestionsQUESTION 288A 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)114 New NetTcpBinding0,x15 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 followsGet Type(lDuplexSessionRouter),C. Change line 12 as followsGetType(lRequestReplyRouter)D. Change line 12 as follows.Get Type(IDuplexSessionRouter)

Answer: B

QUESTION 289You want to debug the Windows Communication Foundation (WCF) client and server interaction through message and application tracing.You need to correlate traces generated on the client and the server.Which XML segment should you add to the system.diagnostics configuration element in the client and server application configuration file?