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 creating a .NET Remoting object named Dealer for an automobile dealership. Dealer exposes a method named SaveSales that saves sales information for the dealership.

Dealer is configured to use Integrated Windows authentication to authenticate its callers. You must ensure that all users of SaveSales are members of the Manager group before allowing the code within SaveSales to run.

Which code segment should you use?

What should you do?

You create a .NET Remoting object named PatientInfo that exposes medical patient information. Because of the confidential nature of the information, you must ensure that the data remains secure.

You want client applications to connect to PatientInfo over a secure communication channel. You want to accomplish this task by writing the minimum amount of code.

What should you do?

Which type of exception will be caught?

You are creating an ASP.NET application named MyWebApp. To MyWebApp, you add a Web reference to an XML Web service named UserService.

UserService consists of a Web method named RetrieveUserInfo. This Web method takes a user ID as input and returns a DataSet object containing user information. If the user ID is not between the values 1 and 1000, a System.ArgumentException is thrown.

In MyWebApp, you write a try/catch block to capture any exceptions that are thrown by UserService. You invoke RetrieveUserInfo and pass 1001 as the user ID.

Which type of exception will be caught?

What should you do?

You have a .NET Remoting object named ProductLoader. The
ProductLoader class is a server-activated Singleton object.

The ProductLoader class loads product data into a Microsoft SQL Server database. The Load method of the ProductLoader class is a time-consuming method to call.

You are developing a client application that uses the ProductLoader class. You want to ensure that the client application can continue to respond to user input while the Load method of the ProductLoader class is called.

What should you do?

Which attribute should you use?

You create an assembly that contains a collection of serviced components. You want to secure these components by using a collection of COM+ roles. Different groups of roles will secure different components. You need to ensure that role-based security is enforced in the assembly. You want to accomplish this goal by adding an attribute to the project source code. Which attribute should you use?

What should you do?

You are creating an XML Web service named ListBoxService. This service provides content, such as states, countries, and geographical regions, for use in drop-down list boxes.

ListBoxService contains a Web method named RetrieveRegionsListBox. This method returns a DataSet object that contains every geographical region in the world.

RetrieveRegionsListBox calls a Microsoft SQL Server database to load the DataSet object with region data. You want to minimize the amount of time the method takes to return to the caller.

What should you do?

NET application should you use?

Your company provides a credit card processing application for its customers. The current application supports only computers that run on a Microsoft Windows operating system.

You are asked to rewrite the current application as a .NET application. This .NET application does not need to be backward compatible with the current application.

You must ensure that this new application meets the following requirements:
Must support asynchronous processing.
Must be able to pass data through firewalls.
Must pass only SOAP-compliant formatted data validated by using an XSD schema. Must not be limited to client computers running on a Microsoft operating system.

You want to accomplish this task by using the minimum amount of development effort.

Which type of .NET application should you use?

During which SoapMessageStage should you call EncryptMessage?

You are creating an XML Web service that processes highly confidential messages. The service exposes a Web method named RetrieveMessage that takes as input a code name and returns an encrypted message.

You create a SOAP extension and override the extension’s ProcessMessage method so that you can encrypt the message before it is sent back to the caller. You need to encrypt only the data within the RetrieveMessageResult node of the SOAP response. You create a function named EncryptMessage that encrypts the RetrieveMessageResult node.

You need to ensure that this method gets called before sending the message back to the caller.

During which SoapMessageStage should you call EncryptMessage?

How many of the three services are now installed on Computer1?

You create three Windows services named myService1, myService2, and myService3. You want to install all three services on a computer named Computer1 by using the Installer tool (Installutil.exe).

On the command line of Computer1, you enter and run the following command:
Installutil myService1 myService2 myService3

During the installation process, myService3 throws an installation error. The installation process completes.

How many of the three services are now installed on Computer1?

You need to write code to encrypt the sensitive data that is in a local variable named myData

You are creating an XML Web service that will be accessed by callers who cannot use SSL encryption because of firewall restrictions. To protect sensitive data, you want to encrypt a portion of the data returned from the service by using objects in the Cryptography namespace.

The service will use a standard encryption routine to encrypt the data before it is sent to the caller. The caller will decrypt the data by using instructions provided by you.

You need to write code to encrypt the sensitive data that is in a local variable named myData. First, you create an instance of a Cryptography Service Provider.

What should you do next?


Page 1 of 912345...Last »