What should you do?
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<Employee> GetEmployees(){02 List<Employee> employees = new List<Employee>();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?
What should you do?
You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the testing and stabilization of applications. Domain.com operates in the international retail environment. Domain.com works in joint ventures with courier companies world-wide due to the nature of the business. These courier companies are responsible for the delivery of the order. A method named Ship is implemented to invoke a Web method of an Extensible Markup Language (XML) Web service at these courier companies. You are currently developing an order fulfillment solution for Domain.com. In this solution, the Domain.com customer’s order is represented by the Order class. The Order class in turn has a Web method named Ship. The Ship method is designed as follows:
1. It accepts a DateTime instance that represents the earliest date that an order should be shipped.
2. It throws an exception if it is passed a data that is earlier than the current date.
3. It allows multiple threads to call it at the same time.
4. It invokes the Web method of the Web service asynchronously.
You are required to unit test and conclude that the previous design aspects are implemented correctly. To this end you need to perform an additional unit test so as to ensure that the Ship method will be functional under all production scenarios.
What should you do?
What should you do on your Groove Server Relay server?
You install a Groove Server Relay server. You need to configure Groove Server Relay to support management from any computer on the network by using Microsoft Internet Explorer 5.5 or later. What should you do on your Groove Server Relay server?
Which code segment should you use?
You create the following Web user control named ErrorMessages.
<%@ Control Language=”VB” AutoEventWireup=”false”
CodeFile=”ErrorMessages.ascx.vb” Inherits=”ErrorMessages” %> <script>
Protected m_Text As String = “This is a default message!”
Public Property Text() As String
Get
Return m_Text
End Get
Set(ByVal value As String)
m_Text = value
End Set
End Property
</script>
The ErrorMessages control uses a public property that displays the error message. You need to change the default error message property on the Web Form in which the control is implemented. Which code segment should you use?
Which three actions should you perform?
You are an enterprise application developer. You develop an application by using Microsoft Visual Studio .NET 2005 and .NET Framework 2.0. You are designing a business component that
is used to process sales orders. You need to ensure that the component meets the following requirements: It is available to Windows and Web-based applications on the local network.It uses the most efficient network access protocol. Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)
What should you do?
You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the testing and stabilization of applications. Domain.com operates in the international retail environment. You are currently developing an order fulfillment solution for Domain.com. In this solution, the Domain.com customer’s order is represented by the Order class. The Order class has a property named Status. It is possible to set Status to one of the following enumeration members:
1. Created – the order has been created.
2. BackOrdered – the order has been placed on backorder.
3. Scheduled – the order is scheduled for delivery.
4. Cancelled – the order has been cancelled.
5. Shipped – the order has been shipped.
6. Delivered – the order has been delivered.
Domain.com works in joint ventures with courier companies world-wide due to the nature of the business. A method named Ship is implemented to invoke a Web method of an Extensible Markup Language (XML) Web service at these courier companies. The courier companies are then responsible for the delivery of the order. When the Ship method is called, the Status property is set to Shipped. You are required to unit test the Ship method to ensure that the test passes.
What should you do?
What should you do on the Groove Server Data Bridge server?
You install a Groove Server Data Bridge server. You need to enable a custom application to communicate with the Groove Server Data Bridge server. What should you do on the Groove Server Data Bridge server?
Which code segment should you use?
You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.
Dim ar As IAsyncResult = cmd.BeginExecuteReader()
You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing. Which code segment should you use?
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 do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The creation and assessment of serviced components form part of your responsibilities at Domain.com. After receiving the instruction, you complied and have just created a private message queue on an application server. You have configured the message queue in such a way than whenever a message arrives in the queue, you will need to simultaneously run two executables to process the message. To this end you need to create a rule or more rules and triggers to ensure that these two executables run simultaneously when a message arrives in the queue.
What should you do?