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

100% Free Download! 100% Pass Guaranteed!

GreatExam is one of the leading exam preparation material providers. Its updated 70-513 braindumps in PDF can ensure most candidates pass the exam without too much effort. If you are struggling for the 70-513 exam, it will be a wise choice that get help from GreatExam.

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

QUESTION 61You are creating a Windows Communication Foundation (WCF) service. You do not want to expose the internal implementation at the service layer.You need to expose the following class as a service named Arithmetic with an operation named Sum:public class Calculator {public int Add(int x, int y) {}}Which code segment should you use?

QUESTION 62You develop a Windows Communication Foundation (WCF) service. Many client applications will consume the service.You have the following requirements:– You must enable client sessions on the service.– The service must support multi-threaded operations. – If a client application uses sessions, the lifetime of the service instance must be scoped to the lifetime of the session.– If a client application does not use sessions, the lifetime of the service must be scoped to the lifetime of a method calYou need to configure the service.What should you do? (Each correct answer presents part of the solution. Choose three.)

A. In the ServiceContract attribute, set the value of the InstanceContextMode property to InstanceContextMode.PerSession.B. In the ServiceContract attribute, set the value of the SessionMode property to SessionMode.Allowed.C. In the ServiceBehavior attribute, set the value of the InstanceContextMode property to InstanceContextMode. PerSession.D. In the ServiceContract attribute, set the value of the ConcurrencyMode property to ConcurrencyMode.MultipleE. In the ServiceBehavior attribute, set the value of the ConcurrencyMode property to ConcurrencyMode.MultipleF. In the ServiceBehavior attribute, set the value of the SessionMode property to SessionMode.Allowed.

Answer: BCEExplanation: B (not F): Service ContractAttribute.SessionMode PropertyGets or sets whether sessions are allowed, not allowed or required.C (not A):– ServiceBehaviorAttribute Classecifies the internal execution behavior of a service contract implementation.– ServiceBehaviorAttribute.InstanceContextMode PropertyGets or sets the value that indicates when new service objects are created.One of the InstanceContextMode values; the default value is PerSession.E (not D): ServiceBehaviorAttribute.ConcurrencyMode PropertyGets or sets whether a service supports one thread, multiple threads, or reentrant calls.Note:Example:[ServiceContract(Namespace=”http://microsoft.wcf.documentation”,SessionMode=SessionMode.Required)][ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Single,InstanceContextMode=InstanceContextMode.PerSession,ReleaseServiceInstanceOnTransactionComplete=true)]

QUESTION 63You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object.What should you do?

A. Add the following KnownType attribute to the Employee class and to the Customer class. [KnownType(GetType(Person))]B. Implement the IExtensibleDataObject interface in the Person class.C. Implement the IExtension(ofType(T)) interface in the Person class.D. Add the following KnownType attributes to the Person class. [KnownType(GetType(Employee))][KnownType(GetType(Customer))]

Answer: D

QUESTION 64A Windows Communication Foundation (WCF) solution uses the following contracts. (Line numbers are included for reference only.)01 [ServiceContract(CallbackContract=typeof(INameService))]02 public interface IGreetingService03 {04 [OperationContract]05 string GetMessage();06 }0708 [ServiceContract]09 public interface INameService10 {11 [OperationContract]12 string GetName();13 }When the client calls GetMessage on the service interface, the service calls GetName on the client callback. In the client, the class NameService implements the callback contract. The client channel is created as follows:22 InstanceContext callbackContext = new InstanceContext(new NameService(“client”));23 …24 …25 DuplexChannelFactory<IGreetingService> factory = new DuplexChannelFactory<IGreetingService>(typeof(NameService), binding, address);26 IGreetingService greetingService = factory.CreateChannel(); You need to ensure that the service callback is processed by the instance of NameService. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

A. Change line 25 to the following code segment:DuplexChannelFactory<IGreetingService> factory = new DuplexChannelFactory<IGreetingService>(callbackContext, binding, address);B. Change line 26 to the following code segment:IGreetingService greetingServicefactory = CreateChannel(callbackContext);C. Add the following code segment after line 26:callbackContext.IncomingChannels.Add((IDuplexChannel)greetingService);D. Add the following code segment after line 26:callbackContext.OutgoingChannels.Add((IDuplexChannel)greetingService);

Answer: AB

QUESTION 65You are using tracing to diagnose run-time issues when you look at the traces for the service in Svc Trace viewer exe, you see what is shown in the exhibit (Click the Exhibit button)The exception trace is selected in Svc Trace reviewer exe.You need to interpret the trace results to determine where the error occurred and what to do next.What should you do?

A. This issue occurred in the ServiceHost during ServiceHost.Open(). Enable WMI by adding the following configuration to the system.serviceModel configuration section in the application configuration file <diagnostics wmiProviderEnabled=”true”/> Restart the application and inspect the endpoints visible through WMI.B. This issue occurred in the ServiceHost during ServiceHost.Open().Compare the security settings for any endpoints that use an MSMQ transport to the security configuration of the MSMQ queue used by the endpoint.C. This issue occurred at the ServiceHost when receiving a message. Compare the security configurations on the client and server to make sure that they are compatible.D. This issue occurred at the ServiceHost when accepting an initial set of messages from MSMQ. Log all messages sent between the client and the sever.

Answer: B

QUESTION 66You are creating an ASP.NET web application that hosts several Windows Communication Foundation (WCF) services. The services have ASP.NET Compatibility Mode enabled. Users authenticate with the Web application by using a cookie-based ASP.NET Forms Authentication model.You add a service file named Authentication.svc that contains the following code segment:<%@ ServiceHost Service=”System.Web.ApplicationServices.AuthenticationService” Factory=”System.Web.ApplicationServices.ApplicationServicesHostFactory” %>You need to ensure that users can access the WCF services without having to re-authenticate. Which two configuration settings should you add? (Each is part of a complete solution. Choose two.)

A. In the system web. Extensions scripting/webServices/authenticationService element, set the enabled attribute to true.B. In the system web. Extensions scripting/webServices/profileService element, set the enabled attribute to true.C. Add a service endpoint with basicHttpBinding for the contract System.Web.ApplicationServices.AuthenticationService.D. Add a custom service behavior named AuthenticationService Type Behaviors with a service AuthenticationManager element that has service AuthenticationManagerType set to System.Web.Security.SQL Membership Provider

Answer: AC

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

QUESTION 69You are developing a Windows Communication Foundation (WCF) service that contains the following operation contract.[OperationContract]CustomerNames GetCustomerNames();The operation returns customer names.You need to develop a definition for the operation contract that produces XML with the following structure.Which code segment should you use?

QUESTION 70You 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

There is no doubt that GreatExam is the top IT certificate exam material provider. All the braindumps are the latest and tested by senior Microsoft lecturers and experts. Get the 70-513 exam braindumps in GreatExam, and there would be no suspense to pass the exam.