You create Web-based client applications. You are creating a data access component. Several Web user
controls will use the component to populate bound controls from a data source. The data source has end-user
inputs. You need to ensure that the data source communicates all relevant information to the Web user controls
that call your component. How should you accomplish this goal?
You create Web-based client applications. You are creating a component named Product. The component will
represent data in the products table of a database. The ProductID field is the primary key of the products table.
The Product ID is an integer value that is generated by the database. The products table contains two fields
named ProductName and CurrentPrice, which do not accept null values. You need to design an interface for
the Product class. You also need to ensure that upon instantiation the component will either retrieve an existing
product from the database or add a new record to the products table. Which design feature should you choose?
You create Web-based client applications. You have created a Web-based application that retrieves data from
a database. Hundreds of users access this Web-based application. A performance baseline has been created
and integrated into a maintenance plan for the application. You find that the Web-based application consumes
more resources than expected. You use instrumentation to profile the Web-based application and discover that
resources are not being released correctly. You modify the code and profile the Web-based application again.
You find the performance metrics appear to be within the requirements. You need to identify your next action.
What should you do?
You develop Web-based client applications. You are developing a custom Web control named ShoppingCart.
The ShoppingCart control tracks the products in a users shopping cart. The ShoppingCart control contains a
read-only property named SubTotal. The pages that use the ShoppingCart control compare the SubTotal
property with the users credit limit before attempting to add any new items to the users shopping cart. The
ShoppingCart control also contains display properties, such as Font, Color, and DisplayDirections. These
properties are not critical to the functionality of the control. You need to establish how to implement the
SubTotal property and the display properties in the ShoppingCart control. What should you do?
You create Web-based client applications. You are designing a procedure to retrieve product data from a
database. The product data will be displayed on several pages of your Web site. The data will be filtered and
sorted by different parameters and will be displayed in grids with paging. Users will not be able to modify the
data that is displayed on the Web site. The product data is stored in a database on an instance of Microsoft
SQL Server that is located on a different server. The database is configured to support SQL cache invalidation.
You need to ensure that the data is retrieved such that the pages of the Web site load as quickly as possible.
What should you do?
You create Web-based client applications. You are creating a page for a Web-based application.
You must ensure that the page meets the following requirements:
Uses forms authentication to validate users.
Deploys on a single Web server.
Is highly secure.
Gives higher priority to security than speed.
You need to recommend a configuration setting for your page. Which configuration setting should you choose?
You create components for Web-based client applications. You are creating a BankAccount class. The
BankAccount class contains an AccountNumber property and a CreateAccount method. The CreateAccount
method is used to create a new account. The method generates a unique random value for the actNumber
field. You need to ensure that the BankAccount class is extendable, and that it serves as the base class for
other derived classes. You also need to ensure that each derived class can have its own guidelines to generate
account numbers in the CreateAccount method. Which code segment should you use?
You create Web-based client applications. You are creating a class named Product. The Product class will be
used by a Web-based application to retrieve and modify product information.
When you create an instance of the Product class, you retrieve the current information from the Products table.
The Product class contains a static member named CreateNewProduct. The CreateNewProduct method is
used to add a new product to the database and return the primary key.
The Products table contains the following fields:
ProductID (primary key)
ProductName
Description
CategoryID
CurrentPrice
You need to create the constructor for the Product class. Which code segment should you use?
You create Web-based client applications. The application permits users to upload files to a network share.
When anonymous users use the upload feature from the Web-based application, a custom error page is
displayed. You need to ensure that anonymous users are able to use the application. What should you do?
You create Web-based client applications. You deploy an application for a company. The application enables
customers to access mobile phone invoices. Users report that the application fails to respond and time-outs
occur. You test the application and find that the reports are valid. You need to identify the cause of the problem.
Which analysis strategy should you use?