Which class should you choose?
You are an enterprise application developer. You develop a component that gathers data from multiple Web services and loads the data into a DataTable. You need to identify a class to persist the information stored in the DataTable to a Microsoft SQL Server database by using the most time-efficient method.
Which class should you choose?
What should you do?
You are an enterprise application developer. You are developing a smart client application. You write a method that reads a registry value. Your application runs from a partially trusted environment. The method must not throw an exception when it reads the registry value. You need to ensure that your code is authorized to read the registry key before it attempts to read the value.
What should you do?
What should you do?
You are an enterprise application developer. You are designing an event logging mechanism for a Web-based application. The application uses Windows authentication. The application retrieves data from a Microsoft SQL Server database. The event logging mechanism must meet the following requirements: All logon and logoff events are logged.All exceptions are logged.All access to the database is logged. All application start and end events are logged. You need to ensure that all the requirements are met by using the minimum amount of coding effort. What should you do?
Which type of files should you deploy?
You are an enterprise application developer. You have created an application that uses a logging exception mechanism to monitor bugs. The monitoring mechanism must log the source code line number where the exception is thrown. You need to deploy the application binaries to meet the monitoring requirements.
Which type of files should you deploy?
What should you do?
You are an enterprise application developer. You plan to design the component architecture of a new large-scale application. You need to design a component architecture to meet the following requirements: Class objects must consist of multiple aggregate objects.Multiple aggregate objects must be instantiated only through the object that is enclosed within the class.Certain aggregate objects must be directly instantiated by user code.Multiple aggregate objects must allow user code to override properties within the object.All class objects must be versioned together.
What should you do?
Which type of object(s) should you choose?
You are an enterprise application developer. You are creating a distributed application. The application transfers a parent table and a child table from a business component. The application modifies the two tables and transfers updates to the business component. The distributed application must enforce the constraints for referential integrity. The components must provide access to values of the correct type at compile time. You need to identify the type of object for serialization.
Which type of object(s) should you choose?
What should you do?
You are an enterprise application developer. You are reviewing the following code segment.
(Line numbers are included for reference only.)
01 public class MyResource: IDisposable
{
02
03 private bool disposed = false;
04
05 public void Dispose()
{
06 Dispose(true);
07
}
08
09 private void Dispose(bool disposing)
{
10 if(!this.disposed)
{
11 if(disposing)
{
12 ReleaseManagedResources();
13
}
14 ReleaseUnmanagedResources();
15 disposed = true;
16
}
17
}18
19 ~MyResource()
{
20 ReleaseManagedResources();
21 ReleaseUnmanagedResources();
22
}
23
}
You discover that the Dispose pattern is implemented incorrectly. You need to modify the code segment to ensure that the dispose pattern is implemented correctly.
What should you do?
What should you do?
You are an enterprise application developer. You develop an application that contains a service component that is exposed as a Web service. You plan to expose the service component by using Remoting and Microsoft Message Queuing (MSMQ). You need to test the service component. You also need to ensure that the tests can be reused, regardless of the technology used for communication.
What should you do?
What should you do?
You are an enterprise application developer. You review the design of a component. The component processes billing for an online store application. The application is developed by using ASP.NET 2.0. The component must be highly available during business hours. You need to ensure that the component meets the following requirements: It reads all orders that must be billed. It sends an e-mail notification to the users.It receives confirmation for credit card and bank account transactions.
What should you do?
What should you do?
You are an enterprise application developer. You are creating an ASP.NET Web service. You identify an existing COM component that provides the necessary functionality required by your Web service. You need to wrap the COM component so that it can be accessed by your Web service. You also need to minimize marshalling overhead.
What should you do?