PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to resolve this problem

You create a collection of serviced components that performs bank transfers. All the components are marked with the Transaction(TransactionOption.Required) attribute. All the methods in the components are marked with the AutoComplete() attribute. You discover that incorrect balance amounts are being transferred. You decide to debug the components. During debugging, a System.Runtime.InteropServices.COMException is thrown. The HRESULT for the exception is 0x8004E002. The exception includes the following message: “The root transaction wanted to commit, but transaction aborted.” You find that this exception occurs only during the debugging session, and not when the components run outside of the debugger. This exception is preventing you from continuing to debug the components. You need to resolve this problem. What should you do?

What should you do?

You have a .NET Remoting object named BatchOrder. The BatchOrder class allows remote client applications to submit orders in batches. Each BatchOrder object holds state information that is specific to each remote client application. The BatchOrder class has overloaded constructors for initializing an object. You want to develop a server application to host BatchOrder objects. What should you do?

Which code segment should you use?

You are using Visual Studio .NET to develop an application that uses a non-COM DLL named UsefulFunctions.dll. This DLL is written in unmanaged code. The DLL contains a function that parses a string into an array of string words and an array of numbers. A call to the function includes the following pseudocode: input = “A string with 6 words and 2 numbers” words = null numbers = null Parse(input, words, numbers) After execution, words contains all string words found in input and numbers contains all integers found in input. You need to enable your application to call this function. Which code segment should you use?

Which type of authentication should you use?

You are creating an XML Web service named myWebService. This service will be used to exchange highly confidential information over the Internet with your company’s business partner named Fabrikam, Inc. You want only callers from Fabrikam, Inc., to be able to access myWebService. You do not want to have to accept a user name and password from callers. Once callers are authenticated, you want to use Windows user accounts to authorize access to the Web methods exposed by the Web service. You set up two Windows user accounts named FabrikamAssociate and FabrikamManager. You need to configure myWebService to meet these security requirements. Which type of authentication should you use?

What should you do?

You create a class named Billings that stores billing information. Billings connects to a local Microsoft SQL Server database to store the billing information. Billings must run under a local user account to connect to the database.

The Billings class includes the following code:

public class Billings {
public void Submit(string name, DateTime date,
float hours) {
// Method implementation goes here.
}
// Private implementation goes here.
}

You want client applications on other computers to be able to use the Billings class through .NET Remoting.

What should you do?

What should you do?

You are creating an XML Web service named WeatherService that provides the current weather conditions for cities around the world. Your development cycle includes three stages:
development, testing, and production. In each stage, WeatherService will be deployed on a different server. For testing, you create an ASP.NET application named WeatherTest. To WeatherTest, you add a Web reference to WeatherService. You then build a user interface and add the necessary code to test the service. The WeatherService interface will not change between testing and deployment. You want to ensure that you do not have to recompile WeatherTest every time WeatherService is moved from one server to another. What should you do?

You need to write a client application that includes a class named ChatClient to communicate with

You create a .NET Remoting object named ChatServer. ChatServer is the central server for a group of chat client applications.

Client applications send string chat messages to ChatServer. ChatServer then broadcasts each message to all registered chat client applications. ChatServer uses an HTTP remoting channel to communicate with the client applications.

The ChatServer class includes the following code segment:
You need to write a client application that includes a class named ChatClient to communicate with
ChatServer. You want ChatClient to send and display chat messages.

What should you do?

you need to ensure that the method calls are processed as quickly as possible

You create a serviced component named OrderStatus that is in an assembly named NorthwindOrders. OrderStatus is in its own COM+ application named Northwind Traders. OrderStatus is used by multiple client applications to look up the status of orders. Because you anticipate that client applications will frequently access OrderStatus, you need to ensure that the method calls are processed as quickly as possible. What should you do?

You need to maximize the security on the deployment computer

You are preparing to deploy a serviced component named
ProductAvailability. This component will be used by multiple client applications to look up the current availability of products. Some of these client applications were written by other developers and are installed on computers at other locations. You need to maximize the security on the deployment computer. You want to configure the component’s COM+ application to run under a restricted user
account named OutsideUser. What should you do?