PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

A Windows Communication Foundation (WCF) service only accepts messages that are signed and encrypted.
A client application is not receiving expected responses from the service.
You need to enable logging to verify that the messages from the client are signed and encrypted.
You also need to see what each message looks like before the message body is deserialized into a NET object. What should you do?

What should you do?

You are designing a data access layer (DAL) for an application. Conflicts are occurring in the SQL Server database due to concurrent updates. You need to design a database locking strategy that meets the following requirements:
Resolves concurrent update conflicts without loss of data
Ensures that data conflicts can be resolved by users
Locks only the necessary data for updates

What should you do?

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Communication
Foundation (WCF) Data Services service. You deploy the data service to the following URL: http://contoso.com/Northwind.svc.
You add the following code segment. (Line numbers are included for reference only.)

01 var uri = new Uri(@”http://contoso.com/Northwind.svc/”);
02 var ctx = new NorthwindEntities(uri);
03 var categories = from c in ctx.Categories select c;
04 foreach (var category in categories) {
05 PrintCategory(category);
06 …
07 foreach (var product in category.Products) {
08 …
09 PrintProduct(product);
10 }
11 }

You need to ensure that the Product data for each Category object is lazy-loaded. What should you do?

You need to resolve the performance issue?

You are analyzing an application.
The application is used to maintain an inventory database and is accessed from several remote Windows client applications.
The application frequently updates multiple rows in a database table by using a DbDataAdapter object. Users report that the application runs slowly during peak business hours. When large number of records are changed by multiple users, you discover the following:
+ The CPU utilization of the client applications is normal
+ The network utilization increases slightly
+ The CPU utilization of the database server remains close to the normal average for a day

You need to resolve the performance issue?
What should you do?

Which configuration should you recommend?

You are designing an ASP.NET Web Forms application.
You expect the application to have high traffic.
You plan to use a Web farm to balance the application load across several Web servers.
You have the following requirements:
– Use round-robin load balancing.
– Do not use persistent storage for session data.
You need to ensure that your design meets the requirements.
Which configuration should you recommend?