What should you do?
You create an ASP.NET application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
You deploy the application to the test Web farm along with a network load balancer.
You are using InProc session settings in the Web.config file to manage user sessions. The application fails to function properly in the test Web farm.
You discover that changes to non- serializable user information are not reliably persisted across the Web farm.
You need to ensure reliable persistence of user information. You also need to ensure that the changes involves the minimum amount of configuration effort.
What should you do?
Which code segment should you use?
You are creating a Windows application by using the .NET Framework 3.5. You plan to create a form that might result in a time-consuming operation. You use the QueueUserWorkItem method and a Label control named lblResult. You need to update the users by using the lblResult control when the process has completed the
operation. Which code segment should you use?
What should you do?
You are an enterprise application developer. You are creating a component that will be part of a field-sales order system. The component will be used by a program installed on portable computers. The program will communicate with a corporate server that will use the guest network access at customer sites. You need to ensure that the component design is optimized for performance. You also need to ensure that the component design protects the local data and the communications stream without compromising the flexibility of the communication mechanism.
What should you do?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5.
The application has the following features:
Users access the application from their local computers.
Each user specifies the data file to be used for the current session at the start of the application.
You plan to design a strategy to enable users to share their data files with other users.
You need to implement the strategy to meet the following requirements:
Users can open the data file only by using a password.
Users can work on the data file only by using the application.
What should you do?
What should you do?
You create a Windows application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application interacts with several processes and services on the same server and uses CPU-intensive computations.
The application is deployed to all desktop computers on a local network.
One user reports that the application takes too long to respond and sometimes freezes during an operation.
You need to gather information about the current behavior of all components and the operating system.
What should you do?
What should you do?
You are creating a Windows application for graphical image processing by using the .NET Framework 3.5. You create an image processing function and a delegate. You plan to invoke the image processing function by using the delegate. You need to ensure that the calling thread meets the following requirements:
* It is not blocked when the delegate is running.
* It is notified when the delegate is complete.
What should you do?
What should you do?
You are an enterprise application developer. You plan to design the component architecture for a new large-scale enterprise application. You need to design a component architecture that meets the following requirements: The components must share common method implementations.The components must be able to support custom implementation of specific methods.
What should you do?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5.
The application is connected to a database named Contoso_DB on the corporate network.
You need to ensure that the following requirements are met:
The application can modify the data when it is offline.
The application can update the changes to or from the Contoso_DB database when it is online.
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. You plan to deploy the application.
The .NET Framework 3.5 is not installed on all client computers.
You need to deploy the application only on client computers that have the .NET Framework 3.5 installed.
What should you do?
Which code segment should you use?
You are creating a Windows Forms application by using the .NET Framework 3.5. You have implemented the PrintPage event to send the page output to the printer. The users must select the printer and the page range before printing. You need to ensure that users can print the content of the form by clicking the button control. Which code segment should you use?