PrepAway - Latest Free Exam Questions & Answers

Tag: 70-554

Exam 70-554: UPGRADE: MCSD Microsoft .NET Skills to MCPD Enterprise Application Developer by Using the Microsoft .NET Framework: Part 2

Which three sets of unit tests should you write?

You are an enterprise application developer. You are designing unit test cases for an account management system of a regional bank. Before creating the application, you create the unit test scenarios by using use cases.
Three high-level use cases are outlined as shown in the following exhibit.

You need to write unit tests to test the functionality inside the system. Which three sets of unit tests should you write? (Each correct answer presents part of the solution. Choose three.)

Which class should you choose?

You are an enterprise application developer. You create a Web service that wraps a business component to expose it through the Web. The business component contains two classes, the Utility class and the Facade class. The Utility class has private methods and internal methods. The Facade class has public methods. The Web service component has a Web service class that is named Services. The Services class performs security verification before the functions in the business component are called. The Services class relies on a class that is named Security in the Web service to implement the security verification. You have completed unit testing both components. You need to choose the class for which to write test cases for integration testing.
Which class should you choose?

What should you conclude and recommend?

You are an enterprise application developer. You are manipulating a collection of customer, product, and supplier objects.
The collection objects must fulfill the following requirements:

* The objects must use custom sort methods on different properties of the respective classes.
* The objects must be strongly typed.

A developer from your team decides to use the following collection classes.

abstract class MyCollectionBase : System.Collections.CollectionBase
{
abstract public void Sort();
}

public class CustomerCollection : MyCollectionBase
{
//Code overriding CollectionBase methods

public override void Sort()
{
//Customer sorting code
}
}

public class SupplierCollection : MyCollectionBase
{
//Code overriding CollectionBase methods

public override void Sort()
{
//Supplier sorting code
}
}

public class ProductCollection : MyCollectionBase
{
//Code overriding CollectionBase methods

public override void Sort()
{
//Product sorting code
}

}

You need to review the code and recommend improvements to simplify maintenance, if necessary. What should you conclude and recommend?

What should you conclude and recommend?

You are an enterprise application developer. You create a data access layer for an order processing application.
The data access layer meets the following criteria:

* The data access layer contains a GetConnectionString method to retrieve and return the connection string for the database.
* The data access layer contains a stored procedure named GetTotalOrderAmount.
* The stored procedure runs a select query to return only the sum of the OrderAmount column for the active orders. At times, there might be no active orders.

You create the following method to execute the stored procedure and return the total.

public double GetTotalOrderAmount()
{
SqlConnection con = new SqlConnection(GetConnectionString()); string sql = GetTotalOrderAmount;
SqlCommand cmd = new SqlCommand(sql,con);
IDataReader rd; con.Open(); rd = cmd.ExecuteReader(); double amt = 0.0;

if (rd.Read())
{
amt = rd.GetDouble(0);
}

rd.Close();
con.Close();
return amt;
}

You need to review the code and recommend modifications to simplify the code and improve performance, if necessary. What should you conclude and recommend?

Which object should you choose?

You are an enterprise application developer. You create a distributed application that transfers data across tiers. The application transfers multiple rows of data per transaction to business components through a Microsoft .NET Framework remoting channel. The application binds this data to user interface components. The .NET Framework remoting channel is configured to use binary serialization.
After the data is retrieved from the data source, the data is not changed. The distributed application must meet the following criteria:

* Consume minimum memory for any data location.
* Make minimum use of the processor for any data location.

You need to identify the type of object to serialize. Which object should you choose?

Which feature should you choose?

You are an enterprise application developer. You create a Microsoft Windows-based service application.
The application must perform the following tasks:

* Monitor running processes for critical events.
* Log critical events to an e-mail and send the e-mail to the system administrators.
* Record and include stack information as part of the critical event.

You must be able to configure application event logging at run time. Application event logging must have minimal impact on runtime performance. You need to choose an appropriate monitoring feature to fulfill these requirements. Which feature should you choose?

What should you do?

You are an enterprise application developer. You create 10 applications. Your companys application server will host the applications. You are responsible for designing a monitoring solution for the applications.
Your monitoring solution must meet the following criteria:

* The solution must be reusable.
* The solution must aggregate all data into one display.

You need to design a solution to meet the requirements. What should you do?

Which component type should you choose?

You are an enterprise application developer. A Web-based application manages the employee information in your company. A rapid increase in the number of employees renders scalability difficult. You must suggest a component strategy that permits the application to scale as the number of employees grows.
The component must implement the following application features:

* It resides completely behind a company firewall.
* It has complex transactional and auditing requirements.
* It operates across multiple servers within the company.
* It provides runtime identity services for each employee.

You need to choose a component type that implements these features in a scalable manner. You need to achieve this goal by using the least coding effort. Which component type should you choose?

What should you choose?

You are an enterprise application developer. You are developing several Web services that are accessed by smart client applications. The Web services might be installed on different Web servers. The smart client applications must authenticate users by using credentials issued by a single sign-on service. The single sign-on service was developed by a different group in your organization.
The security policy of the application includes the following requirements:

* User identity must be transmitted across application boundaries.
* User identity must be logged for auditing purposes.

You need to choose a strategy to propagate user information securely across the application boundaries.
What should you choose?

What should you choose?

You are an enterprise application developer. You create a distributed invoicing solution. Operating requirements state that the memory that is used by the Microsoft Windows-based applications must not exceed a specified value. Technology requirements state that all execution failures must be reported.
The Windows-based application must meet the following criteria:

* Alert system administrators when the memory usage reaches a critical value.
* Alert system administrators when a technical exception occurs.
* Log processor and disk space usage on all client computers.

You need to select an event management implementation to meet the criteria. What should you choose?


Page 30 of 40« First...1020...2829303132...40...Last »