What should you recommend?
You are designing an ASP.NET Web application.
A page of the Web application will contain a databound ListView control.
You need to recommend a strategy for accessing individual rows within the ListView control from client-side script based on the value in a specific data field.
What should you recommend?
Which code segment should you use to retrieve the claim for validation?
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?
What should you do?
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. The application uses DataContexts to query the database.
The application meets the following requirements:
* Stores customer data offline.
* Allows users to update customer records while they are disconnected from the server.
* Enables offline changes to be submitted back to the SQL Server by using the DataContext object.
You need to ensure that the application can detect all conflicts that occur between the offline customer information
submitted to the SQL Server and the server version. You also need to ensure that you can roll back local changes.
What should you do?
Which type should you recommend?
You are designing an ASP.NET Web application that allows user input.
You have the following requirements:
– Use client-side state management.
– Prevent users from accidentally modifying data.
– Automatically encode data.
– Preserve data during a page postback.
You need to recommend the appropriate type of state management.
Which type should you recommend?
What should you do in WMI Control in the Computer Management console?
You create a Windows Communication Foundation (WCF) service. It is deployed on Microsoft Internet Information Services (IIS)
with an application pool running as Network Service. You enable WMI tracing before launching the service.
Your IT support staff adds WMI data collection through ASP.NET WMI tracing.
You need to restrict the collection of WMI data to a privileged account.
What should you do in WMI Control in the Computer Management console?
What should you do?
You use Microsoft Visual Studio 2010 and the Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database. The application uses DataContexts to query the database.
You define a foreign key between the Customers and Orders tables in the database.
You need to ensure that when you delete a customer record, the corresponding order records are deleted.
You want to achieve this goal by using the minimum amount of development effort. What should you do?
What should you recommend?
You are designing an ASP.NET MVC 2 Web application that will contain reusable markup.
The Web application must read data from the TempData dictionary.
You need to recommend a solution that allows the Web application to pass data between pages by using the TempData dictionary.
What should you recommend?
Which attribute should you use to decorate the service?
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 decorate the service?
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server 2008 database. The application uses DataContexts to query the database.
You create a function that meets the following requirements:
* Updates the Customer table on the database when a customer is marked as deleted.
* Updates the related entries in other tables (CustomerAddress, CustomerContacts) by marking them as deleted.
* Prevents consumer code from setting the Deleted column’s value directly.
You need to ensure that the function verifies that customers have no outstanding orders before they are marked as deleted.
You also need to ensure that existing applications can use the update function without requiring changes in the code.
What should you do?
Which two actions should you recommend?
You are redesigning an existing three-tier ASP.NET Web application that is deployed to a Web server, an application server, and a database server that runs Microsoft SQL Server 2008.
Usage has increased significantly.
The application has become slow and occasionally times out. Health monitoring logs indicate that the data access logic on the application server is consuming the majority of the CPU resources.
You need to recommend an approach for addressing the scalability and reliability issues.
Which two actions should you recommend?
(Each correct answer presents part of the solution. Choose two.)