PrepAway - Latest Free Exam Questions & Answers

Category: 70-551

Exam 70-551: UPGRADE: MCAD Skills to MCPD Web Developer by Using the Microsoft .NET Framework

What should you conclude?

You create Web-based client applications. You deploy an application that manages an Internet-based store. Customers are able to browse a list of products, create an order to buy the products, and view the status of their orders. The operational application requirements state that the application must be available for browsing when the database server is not available. The production environment uses a Network Load Balancing cluster to host the application. The application uses an XML file stored on the database server to read data that is used for product browsing. The deployment diagram for the application is as shown in the following exhibit. (Refer to the Exhibit.) You need to evaluate the production environment and recommend changes, if required, to meet the operational requirements of the application. What should you conclude?

Which configuration setting should you identify?

You create Web-based applications. The application is installed in a Network Load Balancing cluster. You are analyzing a bug report. When a failure occurs in the application, the client sometimes receives a correctly formatted friendly error page as expected. At other times, the client receives an exception stack with the error message, which is not expected. You need to identify the configuration setting that causes the unexpected response. Which configuration setting should you identify?

What change should you suggest?

You create Web-based client applications. You are reviewing a Web application page that populates a list of all employees of your company. You analyze code and find that the Web application page does not prevent exceptions from traveling to the browser. You need to ensure that the Web application page intercepts exceptions and presents an error message to the browser. What change should you suggest?

Which three components should you choose?

You create Web-based applications. You are creating an application that manages travel arrangements. Users can book business trips through the application and submit their expense reports. The current design specifies that 10 components are consumed by the application. You need to identify the components that require integration testing. Which three components should you choose? (Each correct answer presents part of the solution. Choose three.)

Which lines are covered by the test?

You create Web-based client applications. You create a Web site that will be used to simulate different types of loans. You are writing a method to calculate the payment on a simple loan. You write the following lines of code for the method. (Comments are included for reference only.)

public static decimal Payment(decimal loanAmount, int period, decimal rate) {
if (!(loanAmount > 0) || !(period > 1) || !(rate > 0)) { // Line A
throw new Exception(“Invalid input!”); // Line B
} else {
return 0M; // Line C: return a calculated payment
}
}
public static decimal CheckBalance(ulong accountID) {
return 0M; // Line D: return calculated balance
}

You write the following code for the unit test.

[TestMethod()]
public void PaymentTest() {
decimal payment = Loan.Payment(100000,360,10); // Line E
Assert.AreEqual(payment, 877.57M); // Line F
}

You enable coverage testing for this unit test. You need to identify the coverage of your test. Which lines are covered by the test?

What should you recommend?

You create Web-based client applications. You are creating an online reporting application that must generate inventory restocking reports within 34 seconds. In the development environment, during a unit test, generation of the month-end report took 42 seconds. You need to recommend what action must be taken to validate the test results. What should you recommend?

What should you conclude?

You create Web-based client applications. You are writing a code segment that queries the following data from a database:

Customer information
Order information

The code segment does not query the database directly. The code segment calls a stored procedure from the database to perform queries. The stored procedure returns information about a customer based on
the customer ID parameter that the code segment provides. The stored procedure accepts the customer ID as an input parameter and includes only one query. The stored procedure returns the result set to the code segment by using output parameters. You need to evaluate whether the stored procedure is designed for best performance and uses the minimum amount of code. What should you conclude?

Which rationale should you choose?

You create Web-based client applications. You are designing a new Web site for your company. You need to evaluate the design concept for the main page, default.aspx. The default.aspx page contains static information, except for one data grid that displays information about the companys products. The data grid will retrieve the data from a component. The component will retrieve the data from a stored procedure. The page has the appropriate permissions to the Microsoft SQL Server database.

The application design must achieve the following goals without altering the data component:

The default.aspx page must load quickly.
The default.aspx page must contain the latest data from the database.

You decide to use a sqlCacheDependency attribute to ensure that the default.aspx page always displays the latest data in the grid. You need to ascertain whether the use of the sqlCacheDependency attribute meets the requirements of this application. Which rationale should you choose?


Page 4 of 13« First...23456...10...Last »