Which application layers and components should you design?
You are an enterprise application developer. You develop a solution by using Microsoft Visual Studio .NET 2005 and .NET Framework 2.0. The solution must meet the following requirements:
* It must be available to the local network through Windows forms.
* It must be available to the Internet through Web forms.
* It must use a predefined set of business objects and rules.It must access data from a Microsoft SQL Server 2005 database.It must avoid code duplication.
You need to design application layers for the solution.
Which application layers and components should you design?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5.
The application is deployed by using the XCopy command. Updates to the application are made available
through a Web site.
The number of users of the application increases.
You need to ensure that all users use the same version of the application.
What should you do?
What should you do?
You are designing business layer classes by using the .NET Framework 3.5 and Microsoft SQL Server 2008.
The business classes will be used by a banking application. The class diagram for the business classes is as shown in the exhibit. (Click the Exhibit button.)
You need to ensure that the application meets the following requirements:
– Users are allowed to select only one of the three operationswithdraw, deposit, and get balance.
– Access to other members of the business objects is disallowed.
– Future types of accounts can be handled.
– Use of the operations directly from the class is disallowed.
– Child classes inherited from the business layer classes are prevented from overriding these operations. What should you do?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5. You plan to develop utility classes for the application. The classes will provide a data access layer, a business logic layer, and a presentation layer. The presentation layer utility class provides functions for the controls on the forms. You need to ensure that the utility classes can be reused in other applications. You want to achieve this goal by using minimum possible development effort. What should you do?
What should you do?
You are an enterprise application developer. You are designing an extranet Web application for a company. The application will be used by the employees around the world. You need to recommend a design by using an ASP.NET Web farm that is highly available.
What should you do?
What should you do?
You create a Windows application by using the .NET Framework 3.5.
You review the design for a Windows application that has the following features:
The data layer sends and receives data updates by using Microsoft Messaging Queue (MSMQ) 4.0.
Data is stored in a Microsoft SQL Server 2008 server database instance.
Data from a DataSet object is displayed in a DataGrid control.
The application is deployed to portable computers that can access the corporate network only when
plugged on to it. The data must be most securely stored when the computer is in offline mode.
You need to ensure that the portable computers can update data even when offline.
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 purchase a logging component along with the source code from a third-party vendor.
New versions of the component are frequently released by the same vendor.
You require certain additional features that might be present in a future release of the logging component.
You need to consume the logging component in the application.
You also need to ensure that the component can be replaced with a new version by using the minimum amount of development effort.
What should you do?
Which two actions should you perform?
You are an enterprise application developer. You are designing an event logging mechanism for a serviced component. You need to ensure that the event logging mechanism meets the following requirements:
* All exception data must be logged after the deployment of the serviced component.
* Access to methods that handle mathematical computations must be logged during development only.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
What should you do?
You create a Windows application by using the .NET Framework 3.5.
You create a Windows user control in the application.
The application contains the following code segment. (Line numbers are included for reference only.)
01 public struct FullName
02 {
03 public string FirstName { get; set; }
04 public string LastName { get; set; }
05 }
The user control has a property named UserName of the FullName type. You add the user control to a
Windows form.
During the design phase, the UserName property must be allowed to update the FirstName and
LastName properties as comma-delimited values in the property window.
You need to ensure that the properties in the FullName structure are represented as string values.
What should you do?
What should you do?
You are an enterprise application developer. You develop a Web application by using ASP.NET that runs on Microsoft Windows Server 2003. The ASP.NET application fails to save trace and log data in an event log. You discover that the application has no write access to the registry. You need to ensure that the trace and log information is saved to the event log. You also need to minimize the risk that is associated with the solution.
What should you do?