This page was exported from Easily Pass With Lead2pass Latest IT Exam Dumps [ http://www.220-802.net ] Export date:Tue Dec 18 20:53:04 2018 / +0000 GMT ___________________________________________________ Title: 2014 Latest Pass4sure&Lead2pass Microsoft 70-513 Dumps (51-60) --------------------------------------------------- QUESTION 51 You 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. <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header /> <s:Body> <Names xmlns=http://tempuri.org/ xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:string>Customer1</a:string> <a:string>Customer2</a:string> <a:string>Customer3</a:string> </Names> </s:Body> </s:Envelope> Which code segment should you use? A.    [MessageContract(IsWrapped = false)] public class CustomerNames { [MessageBodyMember] public string[] Names; } B.    [MessageContract(WrapperName = "")] public class CustomerNames { [MessageBodyMember] public string[] Names; } C.    [DataContract] public class CustomerNames { [DataMember] public string[] Names; } D.    [DataContract] public class CustomerNames { [DataMember(IsRequired = false)] public string[] Names; } Answer: A QUESTION 52 You are creating a client application and configuring it to call a Windows Communication Foundation (WCF) service. When the application is deployed, it will be configured to send all messages to a WCF routing service. You need to ensure that the application can consume the target service after the application is deployed. What should you do? A.    In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the router service. B.    In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the target service. C.    In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the target service. D.    In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the router service. Answer: D QUESTION 53 You create a service and deploy it on a network in a building named Building1. You will deploy the service to Building2. The service in Building1 is configured using the following discovery scopes. <scopes> <add scope="http://contoso.com/Chicago/Building1"/> <add scope="ldap:///ou=Building1,ou=Chicago,o=contoso,c=us"/> </scopes> The service in Building2 will be configured using the following discovery scopes. <scopes> <add scope="http://contoso.com/Chicago/Building2"/> <add scope="ldap:///ou=Building2,ou=Chicago,o=contoso,c=us"/> </scopes> You need to ensure that the client application can discover the service in Building1 or the service in Building2. Which scopes should you add to the client configuration file? A.    <scopes> <add scope="http://contoso.com/Chicago/*"/> </scopes> B.    <scopes> <add scope="http://contoso.com/Chicago"/> </scopes> C.    <scopes> <add scope="ldap:///ou=Building,ou=Chicago,o=contoso,c=us"/> </scopes> D.    <scopes> <add scope="ldap:///ou=*,o=contoso,c=us"/> </scopes> Answer: B QUESTION 54 Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders. The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay. You need to ensure that the service is configured to process multiple orders in one transaction. What should you do? A.    Use <serviceThrottling> service behavior and set the maxConcurrentCalls attribute. B.    Use <transactedBatching> endpoint behavior and set the maxBatchSize attribute. C.    Use <dispatcherSynchronizationBehavior> endpoint behavior and set the maxPendingReceives attribute. D.    Use <synchronousReceive> endpoint behavior. Answer: B QUESTION 55 You are developing a Windows Communication Foundation (WCF) service that contains the following code segment. [ServiceContract] public interface ICustomerService { ... } public class CustomerService : ICustomerService { ... } The service is self-hosted in a console application. Older client applications access the service at http://contoso.com:8080/CustomerService/V1. Newer client applications access the service at http://contoso.com:8080/CustomerService/V2. You need to ensure that any client application can access the service at either address. Which code segment should you use? A.    Uri serviceAddress1 = new Uri("http://contoso.com:8080/CustomerService/V1"); Uri serviceAddress2 = new Uri("http://contoso.com:8080/CustomerService/V2"); ServiceHost host = new ServiceHost(typeof(ICustomerService), new Uri[]{ serviceAddress1, serviceAddress2 }); B.    Uri serviceAddress1 = new Uri("http://contoso.com:8080/CustomerService/V1"); Uri serviceAddress2 = new Uri("http://contoso.com:8080/CustomerService/V2"); ServiceHost host = new ServiceHost(typeof(CustomerService), new Uri[]{ serviceAddress1, serviceAddress2 }); C.    Uri serviceAddress = new Uri("http://contoso.com:8080/"); ServiceHost host = new ServiceHost(typeof(CustomerService), new Uri[]{ serviceAddress }); host.AddServiceEndpoint(typeof(ICustomerService), new BasicHttpBinding(), "CustomerService/V1"); host.AddServiceEndpoint(typeof(ICustomerService), new BasicHttpBinding(), "CustomerService/V2"); D.    Uri serviceAddress = new Uri("http://contoso.com:8080/"); ServiceHost host = new ServiceHost(typeof(ICustomerService), new Uri[] { serviceAddress }); host.AddServiceEndpoint(typeof(CustomerService), new BasicHttpBinding(), "CustomerService/V1"); host.AddServiceEndpoint(typeof(CustomerService), new BasicHttpBinding(), "CustomerService/V2"); Answer: C QUESTION 56 You need to modify a client application that consumes a Windows Communication Foundation (WCF) service. The service metadata is no longer available. You need to modify the previously generated proxy to include asynchronous calls to the service. What should you do? A.    Update the service reference with the Generate asynchronous operations option. B.    Create a partial class for the previously generated proxy and include the new asynchronous methods. C.    Create a class with the same name as the previously generated proxy and add the new asynchronous methods. Add the new class to a namespace that is different from the original proxy. D.    Create a class with the same name as the previously generated proxy and add the new asynchronous methods as partial methods. Add the new class to a namespace that is different from the original proxy. Answer: B QUESTION 57 You are developing a Windows Communication Foundation (WCF) service that returns location information for authorized law enforcement agencies. The service contract is as follows: [ServiceContract] public interface IMappingService { [OperationContract] long[] GetLocationCoordinates(String cityName); [OperationContract] long[] GetLocationOfCitizen(String ssn); } 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 members of 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 the IIdentityParameter 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 named LawEnforcement. Answer: AB QUESTION 58 You 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.    <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="1000"/> B.    <messageLogging logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="1000"/> C.    <messageLogging logEntireMessage="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="1000"/> D.    <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="1000"/> Answer: A QUESTION 59 You are developing a Windows Communication Foundation (WCF) service. The service configuration file has a <System.Diagnostics> element defined. You need to ensure that all security audit information, trace logging, and message logging failures are recorded. Which configuration segment should you add to the <System.Diagnostics> element? A.    <sources> <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true"> <listeners> <add name="xml" /> </listeners> </source> <source name="System.ServiceModel.MessageLogging" propagateActivity="true"> <listeners> <add name="text" /> </listeners> </source> </sources> B.    <sources> <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true" /> <source name="System.ServiceModel.MessageLogging" propagateActivity="true" /> </sources> C.    <sources> <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true"> <listeners> <add name="xml" /> </listeners> </source> <source name="System.ServiceModel.MessageLogging" propagateActivity="true"> <listeners> <add name="xml" /> </listeners> </source> </sources> <sharedListeners> <add name="xml" type="System.Diagnostics.XmlWriterTraceListener" initializeData="& " /> </sharedListeners> D.    <sources> <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true" /> <source name="System.ServiceModel.MessageLogging" propagateActivity="true" /> </sources> <sharedListeners> <add name="xml" type="System.Diagnostics.XmlWriterTraceListener" initializeData="& " /> </sharedListeners> Answer: C QUESTION 60 You 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.) 01  [ServiceContract()] 02  public interface IDataUpdate 03  { 04    [OperationContract()] 05    [TransactionFlow(TransactionFlowOption.Mandatory)] 06    void Update(string accountNumber, double amount); 07 08  } 09 10  public class UpdateService : IDataUpdate 11  { 12 13    [OperationBehavior(TransactionScopeRequired=true, TransactionAutoComplete=true)] 14    public void Update(string accountNumber, double amount) 16    { 17        try 18        { 19            ... 20        } 19        catch(Exception ex) 20        { 21            ... 22        } 23    } 24  } 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: A If you want to pass Microsoft 70-513 successfully, donot missing to read latest lead2pass Microsoft 70-513 exam questions. If you can master all lead2pass questions you will able to pass 100% guaranteed. http://www.lead2pass.com/70-513.html --------------------------------------------------- Images: --------------------------------------------------- --------------------------------------------------- Post date: 2014-05-12 03:11:02 Post date GMT: 2014-05-12 03:11:02 Post modified date: 2014-05-16 02:49:34 Post modified date GMT: 2014-05-16 02:49:34 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com