[Free] Get all latest Microsoft 70-513 Actual Tests 301-310

EnsurepassQUESTION 301 You are developing a Windows Communication Foundation (WCF) service that is used to check the status of orders placed by customers. The following code segment is part of your service. (Line numbers are included for reference only.)     You need to ensure that the service always listens at net.pipe://SupplyChainServer/Pipe. What should you do?     A. Option A B. Option B C. Option C D. Option D   Correct Answer: B       Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 291-300

EnsurepassQUESTION 291 A Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the ITimeService service interface in the TimeService class. You need to configure the service endpoint for HTTP communication. How should you define the service and endpoint tags?   A. Define the service tag as follows: <service name=”ITimeService”> Define the endpoint tag as follows. < endpoint kind =”TimeService” address=”http://localhost:8080/TimeService” Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 281-290

EnsurepassQUESTION 281 You implement a Windows Communication Foundation (WCF) service. You must process all of the valid SOAP messages that the service receives. What should you do?   A. On the OperationContractAttribute, call the Match method. B. Call the Message.CreateMessage static method. Pass the value MessageVersion.Default as a parameter. C. On the OperationContractAttribute of a method, set the value of the Action and ReplyAction properties to *. D. On the OperationContractAttribute Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 271-280

EnsurepassQUESTION 271 You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?   A. ICommunicationObject B. IExtension<T> C. IExtensibleObject<T> D. IExtensibleDataObject Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 261-270

EnsurepassQUESTION 261 You are developing a Windows Communication Foundation (WCF) REST service to provide access to a library book catalog. The following code segment defines the service contract. (Line numbers are included for reference only.)     Library patrons want the ability to search the catalog by title.   You need to ensure that the GetBookByTitle method is exposed as a service method.   Which code segment should you insert at line 04?   A. <WebGet(UriTemplate:=”Book/{title}”)> Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 251-260

EnsurepassQUESTION 251 You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources. You need to ensure that the service accesses these resources on behalf of the originating caller. What should you do?   A. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenImpersonationLevel.Impersonation. B. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenImpersonationLevel.Delegation. Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 241-250

EnsurepassQUESTION 241 You are adding a Windows Communication Foundation (WCF) service to an existing application.   The application is configured as follows. (Line numbers are included for reference only.)     You need to configure the service to publish the service metadata.   Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)   A. Add the following XML segment between lines 10 and 11. <endpoint address= “” binding= Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 231-240

EnsurepassQUESTION 231 You are developing a Windows Communication Foundation (WCF) service that executes a long-running operation. The service is accessed from your business applications in a server transaction in which the client does not participate. You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds. What should you do?   A. Set the service binding sendTimeout attribute to 00:00:45. B. Apply <OperationBehavior (TransactionScopeRequired:=False) Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 221-230

EnsurepassQUESTION 221 You are configuring a routing service to call a target service. The routing service has no knowledge of the target service’s data tyes other than the service contract. The operation contract for all of the methods of the target service specifies IsOneWay=true. You need to specify the endpoint information for the routing service. What should you do?   A. In the target service configuration file, specify “*” for the client endpoint contract and “*” for the service endpoint Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 211-220

EnsurepassQUESTION 211 You are developing a Windows Communication Foundation (WCF) service. The following code defines and implements the service. (Line numbers are included for reference only.)     You need to ensure that two identical copies of the received message are created in the service.   Which code segment should you insert at line 12?   A. Message msgCopy = message. CreateBufferedCopy(8192) as Message; Message returnMsg = message. CreateBufferedCopy(8192) as Message; Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 201-210

EnsurepassQUESTION 201 You 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 IFinancialService   03 {   04 [OperationContract]   05 string Login(int employeeID, string passwordHash);   06   07 [OperationContract]   08 double GetBonus(int Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 191-200

EnsurepassQUESTION 191 A 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 platform.   You need to configure the service to support these requirements.   Which message Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 181-190

EnsurepassQUESTION 181 HOTSPOT You are developing a Windows Communication Foundation (WCF) service. You implement a data contract to pass complex data to and from the service.   The service includes the following code:     You need to verify the order in which the data is serialized.   For each of the following statements, select True if the statement is true. Otherwise, select False.     Correct Answer:                   Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 171-180

EnsurepassQUESTION 171 You are developing a Windows Communication Foundation (WCF) service to provide an in- memory cache for many Web applications. The service contract is defined as follows. (Line numbers are included for reference only.)   01 <ServiceContract()>   02 Public Interface IDataCache   03   04 . . .   05 End Interface   06   07   08 Public Class DataCache   09 Implements IDataCache   10   11 . . .   12 End Class   Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 161-170

EnsurepassQUESTION 161 You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources. You need to ensure that the service accesses these resources on behalf of the originating caller. What should you do?   A. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenImpersonationLevel.Impersonation. B. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenImpersonationLevel.Delegation. Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 151-160

EnsurepassQUESTION 151 You 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?   A. [ServiceContract(Namespace=”Arithmetic”)] public class Calculator { [OperationContract(Action=”Sum”)] Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 141-150

EnsurepassQUESTION 141 You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel.   You find that operations do not start until all previous operations have finished. The service hosting code contains the following lines:   var service = new WarehouseService();   var host = new ServiceHost(service);   You need to ensure that new operations do not wait for previous operations to finish.   Which attribute should you use to Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 131-140

EnsurepassQUESTION 131 You are maintaining a Windows Communication Foundation (WCF) service that uses a custom UserNamePassword class to authenticate clients. 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 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 Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 121-130

EnsurepassQUESTION 121 You 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?   A. net.msmq://localhost/msmq$;FailedMessages B. net.msmq://localhost/msmq$;DeadLetter C. net.msmq://localhost/system$;DeadXact D. net.msmq://localhost/system$;DeadLetter Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 111-120

EnsurepassQUESTION 111 You are creating a Windows Communication Foundation (WCF) service that uses claims- based authorization. The following code retrieves the correct claim set.   var claims = ServiceSecurityContext.Current.   AuthorizationContext.ClaimSets[0];   You need to validate that the requesting client application has included a valid DNS value in the claim.   Which code segment should you use to retrieve the claim for validation?   A. claims.FindClaims(ClaimTypes.Dns, Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 101-110

EnsurepassQUESTION 101 You are developing a Windows Communication Foundation (WCF) service that must be discoverable. You need to ensure that the ServiceHost instance supports multiple discovery versions. What should you do?   A. Specify a unique DiscoveryVersion parameter for each endpoint constructor. Use the same value for the Address property of each endpoint. B. Use the endpoint constructor without the DiscoveryVersion parameter. Use a unique value for the Address property of each Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 91-100

EnsurepassQUESTION 91 An ASP.NET application hosts a RESTful Windows Communication Foundation (WCF) service at /Services/Contoso.svc . The service provides a JavaScript resource to clients. You have an explicit reference to the JavaScript in your page markup as follows:   <script type=”text/3avaScript” src=”/Secvices/Contoso.svc/js” />   You need to retrieve the debug version of the service JavaScript.   What should you do?   A. In the <<to@ ServiceHost ?>; Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 81-90

EnsurepassQUESTION 81 An existing Windows Communication Foundation (WCF) service uses basicHttpBinding. You are releasing updates to the service and the client application. You need to enable the client application to flow transactions to the service. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)   A. Change to a custom binding that has the httpTransport, textMessageEndcoding, and transactionFlow binding elements in this Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 71-80

EnsurepassQUESTION 71 A Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the IDataAccess contract, which is defined in the MyApplication namespace.   The service is implemented in a class named DataAccessService, which implements the IDataAccess interface and also is defined in the MyApplication namespace.   The hosting code is as follows. (Line numbers are included for reference only.)     You need to create a ServiceHost Read more […]

[Free] Get all latest Microsoft 70-513 Actual Tests 61-70

EnsurepassQUESTION 61 You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation.   You implement the delete method as follows:   Sub DeleteItems (ByVol id As String)   You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation.   What should you do?   A. Add the WebInvoke(UriTemplate: = “/Items/{id>”, Method: = “DELETE”) attribute Read more […]