Which approach should you recommend?
You need to design a solution for implementing holiday-specific site changes.
Which approach should you recommend?
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?
Which code segment should you use?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database. You load records from the Customers table into a DataSet object named dataset.
You need to retrieve the value of the City field from the first and last records in the Customers table.
Which code segment should you use?
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?
Which approach should you recommend?
You are designing a RESTful ASP.NET Web application.
You have the following requirements:
– Retain state between requests.
– Associate a request with a session.
– Do not require the use of cookies.
You need to ensure that your design meets the requirements.
Which approach should you recommend?
Which behavior should you configure and apply?
A Windows Communication Foundation (WCF) service is required to log all authorization attempts to the Windows Event Log.
You need to configure a behavior and apply it to the service to support this requirement. Which behavior should you configure and apply?
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?
Which approach should you recommend?
You need to design a solution for programmatically adding reusable user-interface code to views and allowing the user-interface code to be rendered from the server side. Which approach should you recommend.