PrepAway - Latest Free Exam Questions & Answers

Category: 70-549

Exam 70-549: PRO: Designing and Developing Enterprise Applications by Using the Microsoft .NET Framework

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?

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 recommend?

You are an enterprise application developer. You design and develop an event logging strategy for a distributed system. The distributed system consists of a Web-based application, a Microsoft Windows service, and several Microsoft Windows-based applications. The event logging strategy
must meet the following requirements:

All system errors are logged and available to a central administration application.
The data is available for historical analysis.
The delivery mechanism is fault-tolerant and reliable. You need to recommend a system-wide event logging strategy. What should you recommend?


Page 19 of 21« First...10...1718192021