Which cryptography provider should you use?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server database. The application stores encrypted credit card numbers in the database. You need to ensure that credit card numbers can be extracted from the database. Which cryptography provider should you use?
Which type should you return from the action method?
You are developing an ASP.NET MVC 2 Web application.
A page makes an AJAX request and expects a list of company names in the following format.
[“Adventure Works”,”Contoso”]
You need to write an action method that returns the response in the correct format.
Which type should you return from the action method?
Which message encoding should you use?
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 encoding should you use?
Which testing strategy should you recommend?
You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You need to ensure that the following requirements are met: All UI elements are labeled. All property values are exposed. Keyboard navigation contains tab stops for all controls. The application functions on high contrast displays. Which testing strategy should you recommend?
What should you do?
You are developing 3n ASP.NET Web page.
The page includes the following EntityDataSource control.
<asp:EntityDataSource ID=”EntityDataSourcel” runat=”server”
ConnectionString=”name=AdventureWorksEntities”
DefaultContainerName=”AdventureWorksEntities” EnableFlattening= “False” EntitySetName=”Products” />
The page must filter the data that is displayed in a grid based on a query string parameter named ProductPrefix. The grid must display products whose ProductName starts with the query string value.
You need to ensure that the page generates the appropriate database query.
What should you do?
Which two XML element types should you use?
You use Microsoft Visual Studio 2010 and Microsoft. NET Framework 4 to create an application. The application connects to a Microsoft SQL Server database. You use Entity SQL of the ADO.NE Entity Framework to retrieve data from the database. You need to define a custom function in the conceptual model. You also need to ensure that the function calculates a value based on properties of the object. Which two XML element types should you use? (Each correct answer presents part of the solution. Choose two.)
What should you do?
You are designing a complex and critical Windows desktop application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You plan to implement a logging strategy for the application. You need to record all unexpected errors that occur in the application. What should you do?
What should you do?
You are developing an ASP.NET Dynamic Data Web application.
The application uses entities from a global library named Entities.
The Application_Start event contains the following code segment.
DefaultModel.RegisterContext(typeof(
Entities.MyDBDataContext), new ContextConfiguration() {
ScaffcidAilTafcies = false });
You need to ensure that the application shows the Order and Customer entities and hides all other entities.
What should you do?
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application.
The application contains the following code segment. (Line numbers are included for reference only.)
01 class DataAccessLayer
02 {
03 private static string connString;
04
05 …
06 public static DataTable GetDataTable(string command){
07
08 …
09 }
10 }
You need to define the connection life cycle of the DataAccessLayer class. You also need to ensure that the application uses the minimum number of connections to the database.
What should you do?
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a custom control that is used to display customer information. You discover that the custom control is not rendering correctly. You need to identify the WPF element that is causing the issue. What should you do?