What should you do?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application processes sales order documents. The application contains a component that retrieves the sales order documents from a FTP server and stores the data in a Microsoft SQL Server database. You need to ensure that the component meets the following requirements:
Periodically polls the FTP server to check for new order documents Executes without dependencies on other software components Executes without user interaction
Executes by using a specific security context
Allows system administrators to change the security context by retaining the same component code What should you do?
What should you do?
You have a Windows Embedded CE run-time image for an OS design. You need to verify whether out-of-memory errors cause applications to fail. What should you do?
What should you do?
You have a Windows Embedded CE run-time image for an OS design. You need to verify whether out-of-memory errors cause applications to fail. What should you do?
What should you do?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application uses Session objects.
You are modifying the application to run on a Web farm.
You need to ensure that the application can access the Session objects from all the servers in the Web farm.
You also need to ensure that when any server in the Web farm restarts or stops responding, the Session objects are not lost.
What should you do?
What should you do?
You create a Microsoft ASP.NETWeb application by using the Microsoft .NET Framework
version 3.5.The computer that hosts the ASP.NET Web application contains a local instance
of Microsoft SQL Server 2005. The instance uses Windows Authentication. You plan to
configure the membership providers and the role management providers.You need to install
the database elements for both the providers on the local computer. What should you do?
Which code segment should you insert at line 16?
You create an application for an online store by using the Microsoft .NET Framework 3.5
and Microsoft ADO.NET.You write the following code segment. (Line numbers are
included for reference only.)
01 DataTable dtProducts = new DataTable();
02 dtProducts.Columns.Add(“ProductID”);
03 dtProducts.Columns.Add(“ProductName”);
04 dtProducts.Columns.Add(“CategoryID”);
05 dtProducts.Rows.Add(1, “Milk”, 1);
06 dtProducts.Rows.Add(2, “Beef”, 2);
07 dtProducts.Rows.Add(3, “Butter”, 1);
08 dtProducts.Rows.Add(4, “Sausage”, 2);
09 DataTable dtCategories = new DataTable();
10 dtCategories.Columns.Add(“CategoryID”);
11 dtCategories.Columns.Add(“CategoryName”);
12 dtCategories.Rows.Add(1, “Dairy products”);
13 dtCategories.Rows.Add(2, “Meat”);
14 var products = dtProducts.AsEnumerable();
15 var categories = dtCategories.AsEnumerable();
16
17 foreach (var element in result) {
18 Console.WriteLine(element);
19 }
When the dtProducts DataTable has the same value in the CategoryID column as the
dtCategories DataTable, the DataTables are related.You need to display for each product,
the product information and the product category. Which code segment should you insert at line 16?
Which data format should you use?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application exposes a Windows Communication Foundation (WCF) service. The service will be consumed by a client-side code that runs in the Web pages of an ASP.NET AJAX Web application. You need to ensure that data serialization between the service and the application incurs minimum latency. Which data format should you use?
What should you do?
You are implementing power management for a target hardware platform. You need to ensure that the CPU enters a low power state when there are no threads available to run.
What should you do?
What should you do?
You are implementing power management for a target hardware platform. You need to ensure that the CPU enters a low power state when there are no threads available to run.
What should you do?
Which code segment should you insert at line 16?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page that has a GridView control named GridView1. The GridView1 control displays the data from a database named Region and a table named Location.
You write the following code segment to populate the GridView1 control. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e)
02 {
03 string connstr;
04
05 SqlDependency.Start(connstr);
06 using (SqlConnection connection =
07 new SqlConnection(connstr))
08 {
09 SqlCommand sqlcmd = new SqlCommand();
10 DateTime expires = DateTime.Now.AddMinutes(30);
11 SqlCacheDependency dependency = new
12 SqlCacheDependency(“Region”, “Location”);
13 Response.Cache.SetExpires(expires);
14 Response.Cache.SetValidUntilExpires(true);
15 Response.AddCacheDependency(dependency);
16
17 sqlcmd.Connection = connection;
18 GridView1.DataSource = sqlcmd.ExecuteReader();
19 GridView1.DataBind();
20 }
21 }
You need to ensure that the proxy servers can cache the content of the GridView1 control.
Which code segment should you insert at line 16?