PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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 development and deployment of client applications forms part of your responsibilities at Domain.com. You have developed a serviced component that will be used by both managed and unmanaged applications within Domain.com. A remote computer will be hosting this serviced component. The serviced component will be accessible through DCOM. The computers that host the client applications have the .NET Framework 2.0 installed. You have received instruction to allow both managed and unmanaged client applications to reference the serviced component.

What should you do?

What should you do?

You create a Windows application by using the .NET Framework 3.5.
The application has a function that uses a COM+ object written in C++. The function is used to retrieve
data from a separate weather service application.
You discover that resources used by the application increase over time. You also discover that in the list of
processes in Task Manager, three instances of the weather service application exist.
You need to ensure that the application releases resources properly.
What should you do?

Which storage mechanism should you use?

You create an ASP.NET application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application retrieves a large amount of application-wide data from a database. The data retrieval is very slow. The data gets refreshed every 30 minutes.
You need to ensure that the data is available for frequent access. You also need to make the most efficient use of resources.
Which storage mechanism should you use?

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 development and deployment of client applications forms part of your responsibilities at Domain.com. You implemented a strong-named managed assembly that makes use of Enterprise Services. The assembly is not registered for use within a COM+ context. And no RunInstaller attributes have been applied to any of the classes in the assembly. You have been instructed to register the assembly with COM+ to accommodate the COM clients.

What should you do?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5.
The application makes function calls to an unmanaged library to control the operation of a robot.
You create a class that consumes significant memory during function calls to the unmanaged library. You
discover that memory consumption increases over time.
You need to ensure that the application consistently consumes minimum memory.
What should you do?

What should you do?

You create an application by using Microsoft Visual Studio 2008 and the .NET Framework 3.5.
The application is hosted on a Web server that runs Microsoft Windows Server 2003. It connects to a third-party system by using Web service calls.
The third-party system experiences occasional unplanned outages. When a system outage occurs, the application must perform the following tasks:
– Log error details.
– Notify an on-call technician.
You need to develop a strategy to perform the required tasks.
What should you do?

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 development and deployment of client applications forms part of your responsibilities at Domain.com. The exhibit below illustrates the currently existing class definition:

public class PropertyManager : ServicesComponent
{
public void MoveInNewCustomer(Customer customer, Unit unit) {
}
}

Client applications call the MoveInNewCustomer method to move a new customer into a unit. You have been instructed to ensure that this process occurs within the context of a transaction. If a transaction does not already exist when this method is called, a transaction should be created. Exclusively in the event of an exception being thrown you want the transaction to abort.

To this end you need to modify the class to meet these requirements. What should you do? (Choose the correct code segment.)

What should you do?

You create a Windows Forms application by using the .NET Framework 3.5. The application is used
for audio/video management.
The application provides the following features:
Usage license for music or video can be purchased from an online store.
Backup of music and video for disaster recovery can be done.
Custom playlists can be created to organize downloaded content.
The application has the following requirements:
A license file is required to play local music or video.
Users can access previously-purchased content from any computer that runs the application.
User theme settings for the UI might only be customized for each computer.
You need to design a state and data management strategy that meets the requirements.
What should you do?

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application exposes a Windows Communication Foundation (WCF) Web service. The Web service is consumed by third-party applications.
You need to ensure that the WCF service provides interoperable and secure end-to-end communications.
What should you do?

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. Domain.com operates as an Internet Auctioneer. The development and deployment of Microsoft.NET Remoting components forms part of your responsibilities at Domain.com. You have been instructed to develop an OrderProcessor class that is responsible for charging a customer’s credit card, notifying the shipping department of the particular product that must be shipped, as well as updating the product inventory database. A COM+ application will be hosting the OrderProcessor class. To this end you need to create the class definition.

What should you do? (Choose the appropriate code segment.)