PrepAway - Latest Free Exam Questions & Answers

Category: 70-547

Exam 70-547: PRO: Designing and Developing Web-Based Applications by Using the Microsoft .NET Framework.

What should you recommend?

You create Web-based client applications.

You are designing a database that must meet the following requirements:

Store data about people in the People table and data about the companies they work for in the Companies table.
Track an unlimited number of companies for a person.
Track an unlimited number of persons who worked at each company. You decide to create a one-to-many link from the People table to the Companies table. You need to evaluate whether the database is designed effectively and make a recommendation, if required. What should you recommend?

Which line of code should replace the code on line 09 of the unit test?

You create Web-based applications. You are creating an Internet banking application. You write the following lines of code to represent a method in your application. (Line numbers are included for reference only.)

01 public void Transfer(decimal amount, BankAccount account) 02 {
03 if (!(amount > 0))
04 throw new Exception(“Invalid deposit amount!”);
05 else
06 {
07 this.Withdraw(amount);
08 account.Deposit(amount);
09 }
10 }

You use the Microsoft Visual Studio 2005 test feature to automatically generate the following unit test.
(Line numbers are included for reference only.)

01 [TestMethod()]
02 public void TransferTest()
03 {
05 BankAccount target = new BankAccount();
06 BankAccount transferTo = new BankAccount();
07 target.Deposit(500);
08 target.Transfer(100,transferTo);
09 Assert.Inconclusive(“A method that does not return a value cannot be verified.”); 10 }

You need to change the test method to return a conclusive result. Which line of code should replace the code on line 09 of the unit test?

What should you include in the Product class?

You create Web-based client applications. You are creating a class library that will be used by an e-commerce Web-based application. The library has an abstract class that is named Product. The Product class serves as a base class for the other classes and provides a default ProductID property. Each class other than the base class represents a type of product that is sold by your company. There is a ProductID property and a GetProductDetails procedure for each product type.

You need to ensure that the application meets the following requirements:

The shopping cart in your Web-based application processes all product types in the same manner.
Each class retrieves its data from a different source.
The GetProductDetails procedure retrieves the data from the appropriate source for the product type.

What should you include in the Product class?

Which option should you use?

You create Web-based client applications. You are creating a component that sends the data that is generated by regional offices to a remote server that is located at the central office. Each regional office generates thousands of orders every week. This data is stored on several tables in an instance of Microsoft SQL Server that is located at the regional office. The manager at the regional office reviews all orders and modifies them, if necessary, before inserting them into the database at the central office.

You need to ensure that the component meets the following requirements:

The manager has the option of reviewing and modifying the orders offline. The data from a regional office is copied to the server that is located at the central office in as short a time as possible.

Which option should you use?

What should you do?

You create Web-based client applications. You are creating a Web component that calls an existing function. The function might throw an application-specific exception of type InvalidChecksumException. The type InvalidChecksumException inherits from the System.ApplicationException class. The component is coded to recover from an InvalidChecksumException exception, but not to recover from other types of exceptions. The component does not have any additional information that could be usefully added to other types of errors or exceptions. You need to design the component to correctly handle exceptions. You also need to ensure that the exception handling strategy does not affect the performance of the component. What should you do?

What should you recommend?

You create Web-based client applications. You deploy an application on the company extranet. The sales team requires notification when an order total exceeds the companys approval levels.

The application requires you to send an e-mail to the sales manager to receive approval for any order over $100,000. You must meet the following constraints to achieve this requirement:

Modifications can be done only to the Web.config file
Limited programmer resources
System can be configured as needed at multiple sites

The design team plans to use the SimpleMailWebEventProvider class of the health monitoring APIs to send the e-mail. You need to evaluate whether the design meets the requirement. What should you recommend?

Which counter should you use?

You create Web-based client applications. You create an ASP.NET Web application. Five hundred users will access the Web-based application simultaneously. The application uses session variables to persist user data. You monitor the application by using System Monitor. You need to identify a counter that will warn you of the problems that you are most likely to face while monitoring. Which counter should you use?

What should you recommend?

You create Web-based client applications. You are evaluating the configuration architecture of an application in a suite of tools that is managed from a common management console. You must get user-specific information, which is gathered during the user sessions, for the marketing department so that they can analyze trends in usage. Eventually, the marketing department might decide to store the data on their Microsoft SQL Server database in the next version of their customer management tool suite.

The configuration architecture has the following features:

The data is stored in files on a shared file server.
Permissions for the server permit the Web server to write and the marketing department to read the data.
The data is formatted in XML.
You need to evaluate whether the configuration architecture meets the requirements. What should you recommend?

What should you recommend?

You create Web-based client applications. You deploy an application on the company extranet. The sales team requires notification when an order total exceeds the companys approval levels.

The application requires you to send an e-mail to the sales manager to receive approval for any order over $100,000. You must meet the following constraints to achieve this requirement:

Modifications can be done only to the Web.config file
Limited programmer resources
System can be configured as needed at multiple sites

The design team plans to use the SimpleMailWebEventProvider class of the health monitoring APIs to send the e-mail. You need to evaluate whether the design meets the requirement. What should you recommend?


Page 1 of 1212345...10...Last »