What should you do?
You create Windows Forms applications by using the .NET Framework 3.5. You create a
new application for Windows Vista client computers. The application requires elevated
access to read files from the local file system.
You need to ensure that the application requires
elevated permissions on execution. What should you do?
Which strategy should you recommend?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The ASP.NET application connects to a shared Microsoft SQL Server 2008 database instance. The application requires certain changes in the relationships represented in the data.
However, any changes to the database schema can break existing applications that share the database instance. You need to recommend a strategy that allows the application to make the required relationship changes without affecting the underlying database schema. You also need to ensure that the strategy uses the minimum amount of development effort. Which strategy should you recommend?
What should you do?
You have a Web Part that contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e)
02 {
03 SPSite site = new SPSite(“http://www.contoso.com/default.aspx”);
04 {
05 SPWeb web = site.OpenWeb();
06
07 }
08 }
You deploy the Web Part to a SharePoint site.
After you deploy the Web Part, users report that the site loads slowly. You need to modify the Web Part to prevent the site from loading slowly.
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 10 themes and allows the users to select their themes for the Web page.
When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer.
The application runs on different storage types and in different environments.
You need to store the themes that are selected by the users and retrieve the required theme.
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 must redirect the original URL to a different ASPX page.
You need to ensure that the users cannot view the original URL after the page is executed.
You also need to ensure that each page execution requires only one request from the client
browser. What should you do?
What should you do?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application stores human resources data in a Microsoft SQL Server 2008 database. A partial database schema is as shown in the exhibit. (Refer to the Exhibit.) Each time a row is added, modified, or deleted from the Employee table, a corresponding entry must be recorded in the EmployeeChangeLog table. You need to implement the data change logging. What should you do?
What should you do?
You deploy a custom Web Part named WebPart1 to a SharePoint site.
WebPart1 contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e)
02 {
03 SPSite site = null;
04 try
05 {
06 SPSite site = new SPSite(“http://www.contoso.com/default.aspx”);
07 SPWeb web = site.OpenWeb();
08
09 …
10 }
11 catch
12 {
13
14 }
15 finally
16 {
17
18 }
19 }
After you deploy WebPart1, users report that the pages on the site load slowly.
You retract WebPart1 from the site.
Users report that the pages on the site load without delay. You need to modify the code in WebPart1 to prevent the pages from loading slowly.
What should you do?
What should you do?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You add a Web page named HomePage.aspx in the application. The Web page contains different
controls. You add a newly created custom control named CachedControl to the Web page.
You need to ensure that the following requirements are met:
The custom control state remains static for one minute.
The custom control settings do not affect the cache settings of other elements in the Web page.
What should you do?
What should you do?
You create Windows Forms applications by using the .NET Framework 3.5. You plan to use
the Windows Installer to deploy a new application.The application must meet the following
requirements:
Support deployment to 32-bit and 64-bit operating systems.
Use the 64-bit Program Files folder when deployed to 64-bit platforms.
You need to ensure that the application is deployed appropriately.What should you do?
Which two tasks should you perform?
You create a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5.
The client application communicates with an existing Web service that requires custom HTTP headers.
You need to ensure that all messages sent to the service include the headers.
Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.)