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 creating an Internet banking application. Bank account holders will use this application. The application uses a set of Web services to retrieve account information. One of these Web services is used to retrieve a list of transactions. This Web service returns the list as an XML document.

The application must meet the following requirements:

Data from the XML document has to be retrieved, formatted, and displayed in the user interface. Any changes to the way the data is formatted and to the amount of data displayed should not require the code to be recompiled.

The current design of the application specifies that the XML document will be accessed through an XMLDocument object, and XPath expressions will be used to extract portions of the document to populate controls on a Web form. You need to evaluate the current design of the application and make recommendation for changes, if required. What should you recommend?

What should you do?

You create Web-based client applications. You are creating an application for a Web site. The Web site uses the application to simulate mortgage loans. Your application calculates the monthly payment for loans. The monthly payment is based on the number of payments, rate, and the amount of loan. You need to create the unit testing strategy for the application. What should you do?

What should you recommend?

You create Web-based client applications. You are creating a Web site that displays product information for your company.

The application must meet the following requirements:
Support at least 20 concurrent users.
Consume less than 40 percent of the CPU time during peak usage. Process at least five requests per second during peak usage, which is estimated to be between 20 and 30 users.

A Web test is created to verify the requirements by recording how a regular user would interact with the site. Then, based on the Web test, a load test is created. The load test simulates 30 users who execute the Web test simultaneously. You need to decide whether the current strategy is enough to verify the requirements, and recommend changes. What should you recommend?

Which code segment should you recommend?

You create Web-based client applications. You are reviewing a Web application page that populates the list of all employees for your company. The following code segment loads the list of employees from a database.
You analyze the code segment. You find that the database connection fails to close properly when the GetEmployees method throws an exception. You need to recommend a change in the code segment to ensure that every possible code path closes the database connection. Which code segment should you recommend?

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?

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?

Which approach should you choose?

You create Web-based client applications. You are creating an application to display the local weather details at the bottom of the home page. You include a third-party software component for this purpose. On testing, you find that the home page fails to load and throws a cryptic error message. The error message displays line numbers that represent the lines that call the third-party software component. You need to ensure that the home page loads even if the local weather details fail to display. You also need to ensure that the home page displays a message if the local weather report fails to display. You need to implement the solution in the shortest possible time. Which approach should you choose?

What should you do?

You create Web-based client applications. You create a public function for your application that must connect to a data source. The public function must also perform a series of updates to the data. Some of the operations will result in exceptions if there are errors.

Your exception handling mechanism must meet the following requirements:

Callers of the function must be able to ascertain whether the function succeeded or failed. If the function failed, callers of the function must be able to find where and why it failed. If there is any error, the function must immediately stop processing.

You need to identify the best exception handling mechanism. What should you do?

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?


Page 5 of 12« First...34567...10...Last »