You are an enterprise application developer. The data access layer of an application contains the following code segment. (Line numbers are included for reference only.) 01 static public List GetEmployees
(){02 List employees = new List();03 using (SqlConnection cnn = new SqlConnection(_cnnStr)){04 SqlCommand cmd = new SqlCommand
("GetEmployees", cnn);05 cnn.Open();06 DataSet ds = new DataSet();07 SqlDataAdapter
da = new SqlDataAdapter(cmd);08 da.Fill(ds);09 foreach (DataRow row in ds.Tables[0].Rows){10 Employee
emp = new Employee();11 emp.ID = Convert.ToInt32(row["Id"]);12
emp.Name = Convert.ToString(row["Name"]); //13
employees.Add(emp);14 }15 }16 return employees;17 } You review the code segment and discover that it takes a long time to execute. You need to modify the code segment to improve the performance. What should you do?
You are an enterprise application developer. You plan to create a data access layer for an application. The application will store the data in a relational database. The application supports multiple database
implementations. The application must use the vendor-provided database interaction component libraries whenever they are available. You need to identify a strategy to access data that supports these criteria. Which strategy should you use?
You are an enterprise application developer. You are designing a new component to prioritize security requirements and performance. The component contains methods as shown in the following table. Method
NameFunctionBuildCompositeInputConsolidates input to the component from other components.BuildPrivateInputInputs data that is private to other component
routines.UserInputInputs data from the user. You need to identify the methods that require run time validation of inputs. You also need to ensure that these methods do not add performance overhead. Which methods should you use?
You are an enterprise application developer. You are creating the first version of an application to manage rich text documents.
The application must meet the following design requirements:
You are an enterprise application developer. You create a Web-based application that manages financial transactions for an online investment company. The company requires to meet the following processes:
You are an enterprise application developer. You plan to design the component architecture for a new large- scale enterprise application. You need to design a component architecture that meets the following
requirements: The components must share common method implementations.The components must be able to support custom implementation of specific methods. What should you do?
You are an enterprise application developer. You are designing a monitoring mechanism for an enterprise application. You need to ensure that the monitoring mechanism meets the following requirements: Logs errors
and warningsConfigures source for eventsEnables logging for particular countersTraces the execution path of a process through multiple physical tiers Which monitoring mechanism should you use?
You are an enterprise application
developer. You are creating an
application that has a layered
architecture as shown in the following
diagram.
A component that resides in the workflow layer manages transactions across one or more activities in the
business logic layer. You need to make modifications to the component. You need
to identify the layers that might require modification when the component in the workflow layer is
modified. Which two layers should you identify? (Each correct answer presents part of the solution. Choose
two.)
You are an enterprise application developer. You create a three-tier Web-based application that accesses 10 external Web services to retrieve currency rates. You need to calculate product prices in ten currencies. A
smart client invoicing application accesses the business tier to retrieve and use the product prices in 10 currencies. The business tier calls the 10 external Web services. You create a separate service agent
component to encapsulate the logic of which Web service to call. This component also makes it easier to change the Web references when required. Your team plans to deploy this service agent in the Web
presentation tier. You need to evaluate whether your teams deployment plan meets the requirements and recommend accordingly. What should you conclude?