Which code segment should you use?
You are creating a Windows Forms application that includes the database
helper methods UpdateOrder and UpdateAccount. Each method wraps code that connects to a Microsoft SQL Server 2005 database, executes a Transact-SQL statement, and then disconnects from the database. You must ensure that changes to the database that result from the UpdateAccount method are committed only if the UpdateOrder method succeeds. You need to execute the UpdateAccount method and the UpdateOrder method.
Which code segment should you use?
What should you do?
You are an enterprise application developer. You plan to deploy an ASP.NET application. You need to ensure that the application meets the following requirements: Supports failover clustering in session state management.Supports load-balanced clustering in Web traffic routing. What should you do?
What should you do?
You create Web-based client applications. You are creating a Web control that includes data entry fields. The Web control also includes data validation code. The data validation code verifies whether the user has entered a valid date and a valid postal code in a text box. You are writing the code within the Web control to handle the invalid data. The Web control must work on as many browsers as possible. You need to design an appropriate feedback technique. What should you do?
What should you do?
A method in your Windows Forms application executes a stored procedure in a Microsoft SQL Server 2005 database, and then executes a second stored procedure in a second SQL Server 2005 database. You need to ensure that the call to the first stored procedure writes changes only if the call to the second stored procedure succeeds. Installation requirements prohibit you from introducing new components that use the COM+ hosting model.
What should you do?
What should you do?
You are an enterprise application developer. You are creating a set of three middle-tier Web services. Each Web service is deployed as a separate ASP.NET application. The Web services will include shared custom configuration settings. You are implementing an application configuration strategy. Your strategy must allow an administrator to do the following: Configure the default settings for all three Web services in a single XML file.Override any setting for any of the Web services. You need to implement a component to store the custom configuration settings. You also need to ensure that the configuration settings can be read by using the minimum amount of development effort. What should you do?
Which two technologies should you choose?
You create Web-based client applications. You create an application that will be used by customers to browse the product catalog of an Internet-based store and buy products.
The application must meet the following requirements:
Permit registered customers of the store to change display settings and personal information. Store the updated information and associate the information with the logged-on customer.
You need to choose appropriate technologies to meet these requirements. Which two technologies should you choose? (Each correct answer presents part of the solution. Choose two.)
What should you do?
You are creating a Windows Forms application to retrieve and modify data. Depending on the installation, the data source can be a Microsoft Access database or a Microsoft SQL Server 2000 or later database. You need to ensure that your application accesses data by automatically using the data provider that is optimized for the data source.
What should you do?
Which class should you use?
You are an enterprise application developer. You are creating a component to load data from Microsoft SQL Server database tables into combo boxes. The retrieved data has a numeric ID column and a description column. You need to select a .NET class that allows you to load the data. You also need to ensure minimal effect on the database server performance. Which class should you use?
What should you do?
You create Web-based client applications. You are creating a user-assistance mechanism for a Web form. The Web form serves as a multilevel wizard for clients to set up a new inventory for items.
The user-assistance mechanism must meet the following requirements:
Enable entry-level users to understand every step of the multilevel wizard process. Ensure that users complete the multilevel wizard on their first try.
You need to select the appropriate user-assistance mechanism to meet the outlined requirements. What should you do?
What should you do?
You are creating a Windows Forms application that implements a master/detail form by using two DataGridView controls. You populate a dataset with a master table and a details table. You set the DataSource property of the master DataGridView control to the dataset. You set the DataMember property to the name of the master table. You also set the DataSource property of the details DataGridView control to the dataset. You need to ensure that the details DataGridView control displays only the child rows of the selected master row.
What should you do?