PrepAway - Latest Free Exam Questions & Answers

Category: 70-320

Exam 70-320: Developing XML Web Services and Server Components with Microsoft Visual C# .NET and the Microsoft .NET Framework

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?

Which code segment should you use?

You are creating an XML Web service named AccountInformation for a community bank. AccountInformation exposes a Web method named GetAccountBalance that returns the account balance as a string. You must limit access to GetAccountBalance to users who have credentials stored in your Microsoft SQL Server database.

You need to design GetAccountBalance to receive encrypted user credentials by using two custom fields named Username and Password in the SOAP header. To accomplish this goal, you must write the code for GetAccountBalance.

Which code segment should you use?


Page 6 of 9« First...45678...Last »