PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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 security and surveillance environment. You are currently developing a video surveillance application for Domain.com.
You perform a code review of the following class:

public class Camera
{
public Camera GetInstance()
{
return _null;
}
}

This class is supposed to make use of the Singleton design pattern to control access to a physical video camera. You need to modify the Camera class.
What should you do? (Choose the correct code segment.)

What should you do?

You create a Windows application by using the .NET Framework 3.5.
You plan to design the deployment of an application.
The requirement specifies that DLL files must be added to the global assembly cache (GAC) as part of the
deployment process.
You need to use the appropriate deployment technique to meet the requirement.
What should you do?

What should you do?

You create a Windows Communication Foundation (WCF) application by using Microsoft Visual Studio 2008 and the .NET Framework 3.5.
You create a WCF service by using the following code segment. (Line numbers are included for reference only.)

01 [ServiceContract]
02 public interface IContosoService
03 {
04 [OperationContract]
06 void ProcessTransaction();
07 }
09 public class ContosoService : IContosoService
10 {
11 public void ProcessTransaction() {
12 try {
13 BusinessComponent.ProcessTransaction();
14 }
15 catch (ApplicationException appEx)
17 {}
18 }
19 }

The BusinessComponent.ProcessTransaction method will only throw exceptions from the ApplicationException type.
You plan to debug the WCF service. You need to ensure that the WCF service meets the following requirements:
– Detailed exception information is provided to the client application.
– Subsequent calls can be issued to the service by using the same proxy intance after an exception is caught in the client application.
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 design and development of applications. You are currently developing an Extensible Markup Language (XML) Web service that when completed will allow client applications the ability to download movie clips. One of the requirements that should be met is that all Web service clients must be able to use the Web service. You should also keep in mind that you should optimize the message transfer for some of the movie clips since fifty percent of the movie clips are quite large.
To this end you decide to make use of Microsoft Visual Studio 2005 and Web Services Enhancements (WSE) 3.0 to develop the Web service. Now you need to modify the Web.config file to meet the requirements.

What should you do? (Choose the correct configuration.)

Which control should you use?

You create a Windows application by using the .NET Framework 3.5.
The application has a complex form that is used to capture information.
Users of the application enter data in the forms quickly by using tabs to navigate through the form controls.
They must be immediately notified when they enter invalid data in the form controls.
You need to notify the users without blocking the data entry process.
Which control should you use?

Which data format should you use?

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) service. The service will be consumed by a client-side code that runs in the Web pages of an ASP.NET AJAX Web application. You need to ensure that data serialization between the service and the application incurs minimum latency. Which data format should you use?

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 design and development of applications. You are currently developing a business logic component that is used in a line-of-business (LOB) application. The business logic component calls a Web method named SeeCustomer in an Extensible Markup Language (XML) Web service. The SeeCustomer Web method throws an exception of a type SoapExtension in the event of the specified customer being non-existent. Now, when this exception is thrown, you must call a Web method named NewCustomer. To this end you need to implement the appropriate exception handling mechanism to meet this requirement.

What should you do?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5.
The application is deployed by using the XCopy command. Updates to the application are made available
through a Web site.
The number of users of the application increases.
You need to ensure that all users use the same version of the application.
What should you do?

What should you do?

You create a Windows Communication Foundation (WCF) service by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The service exposes two endpoints. The first endpoint is configured to use the Issued Tokens authentication method. The second endpoint is configured to use the Digital Certificates authentication method. Additional endpoints along with different authentication mechanisms will be created in the future.
You plan to define the authorization strategy for the service. You need to ensure that the WCF service meets the following requirements:
– Authorization rules for validation are the same, regardless of the type of the user credential.
– Users are prevented from executing restricted WCF operations.
– Fine-grained authorization is provided to protected resources.
What should you do?

What conclusion can you draw?

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 design and development of applications. Domain.com operates as the Emergency unit of the Traffic Department. You are currently busy implementing a Microsoft .NET Remoting component. This component will be used in the traffic control environment. The component will allow the traffic department to guide all traffic officers on duty to the available alternative routes during emergencies. As such the component must meet the following requirements:
1. A specific instance of the component must be allowed to control access to the navigational system on one traffic officer’s vehicle.
2. The component must be instantiated only once while the traffic officer’s navigational system is being controlled.
3. The component must be hosted on a server that is separate from the application. To this end the design suggests making us of single-call activation over Transmission Control Protocol (TCP). You are now required to decide whether or not the design meets the requirements.

What conclusion can you draw?