PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

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?

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application uses the ADO.NET Entity Framework to model entities. You deploy an application to a production server.
The application uses the model and mapping files that are deployed as application resources.

You need to update the conceptual model for the application on the production server. What should you do?

What should you recommend?

You are designing an ASP.NET Web application that stores data in a Microsoft SQL Server 2008 database on a remote server. You must meet the following requirements:
– Ensure that users actions can be traced on each server by using the security audit log.
– Minimize the risk of server components executing in the user s context.
You need to recommend an approach for accessing the database.
What should you recommend?

What should you do?

A Windows Communication Foundation (WCF) service is deployed with netTcpBinding.
This service uses a duplex message exchange pattern.You are developing the next version of the WCF service.
You discover that your company’s hardware load balancer performs correctly only for WCF services that use HTTP.
You need to ensure that your service works with the load balancer. What should you do?

Which method should you call before persisting changes?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application uses the ADO.NET Entity Framework to model persistence-ignorant entities. The application operates in a disconnected mode.
You need to ensure that changes made to local entities while the application is in the disconnected mode are correctly persisted.
Which method should you call before persisting changes?

Which two actions should you perform?

You are developing a Windows Communication Foundation (WCF) service to provide shopping cart support.
ASP.NET compatibility mode is not enabled. The shopping cart information must be retained across user
visits to the store until the user explicitly empties the cart or submits the cart contents to order.
You need to implement the service as a DurableService.

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application uses the ADO.NET Entity Framework to model entities.
The application allows users to make changes to entities while disconnected from the central data store.

You need to ensure that when the user connects to the central data store and retrieves new data, the application meets the following requirements:
* Changes made to the local data store in disconnected mode are preserved.
* Entities that have already been loaded into the local data store, but have not been modified by the user, are updated with the latest data.
What should you do?

What should you recommend?

You are designing a Windows Communication Foundation (WCF) service.
The WCF service will support a common data access strategy for an ASP.NET 1.1 Web application and an ASP.NET 4 Web application. You have the following requirements:
– Ensure that the WCF service complies with WS-* standards.
– Enable backward-compatibility for clients that can consume only ASMX Web Services.
-You need to recommend an endpoint and binding strategy for the WCF service.
What should you recommend?

Which code segment should you use to set the service behavior?

You are developing a Windows Communication Foundation (WCF) service.
One of the service operations contains the following code.

private static int counter = 0;
[OperationContract]
public void IncrementCount()
{
counter++;
}

You need to set a service behavior that prevents two or more threads from incrementing the counter variable at the same time.
Which code segment should you use to set the service behavior?