PrepAway - Latest Free Exam Questions & Answers

Category: 70-554

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

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 approach should you choose?

You are an enterprise application developer. You create a large-scale, managed application that needs a consistent approach to event logging. The application must format and log events to 20 destinations. Events from 15 sources must be collated onto a single computer. The application must perform the following tasks:

* Maintain consistent logging and instrumentation practices, both within an application and across the enterprise.
* Ease the learning curve for developers by using a consistent architectural model.
* Support custom implementations of formatters and event sinks.
* Generate log entries as discrete events or as part of a traced process.

You need to select an appropriate implementation approach. Which approach should you choose?

What should you do?

You are an enterprise application developer. You create an application that consists of a data access component and a business component. The business component calls the data access component to persist business objects. The Quality Analysis team tests both components and finds errors in the data access component. These errors result in retrieval of wrong data. You need to reduce the errors in your code before the components are retested by the Quality Analysis team.
What should you do?

What should you recommend?

You are an enterprise application developer. Your team has created a distributed application that permits users to generate reports. The reports aggregate data from existing databases. You must move your new application into a test environment. You propose the following criteria:

* Compile the application components in release mode.
* Publish the ASP.NET files to the test Web server.
* Install the serviced components in component services on the application server.
* Backup the development database and restore it on the test database server.

You need to evaluate the proposal and recommend accordingly. What should you recommend?

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?


Page 33 of 43« First...1020...3132333435...40...Last »