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 two code segments are possible ways to achieve this goal? (Each correct answer presents a complete solut

You create an XML Web service named PhoneNumberService that returns the telephone numbers of people in a specified geographical region. If an error occurs when the service is processing requests, a custom application exception named PhoneNumberException is thrown.

You create an ASP.NET application named MyPhoneBook that contains a Web reference to PhoneNumberService. You need to wrap any calls made to PhoneNumberService in a try/catch block to catch any PhoneNumberException that may be thrown.
Which two code segments are possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

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?

You need to test your application immediately

You are developing a Windows-based application that requires the use of a calculation function named CalculateValue. This function includes the following signature:

int CalculateValue(int);

CalculateValue is located in an unmanaged DLL named UsefulFunctions.dll, and is not part of a COM interface. You need to be able to use CalculateValue in your application. Your project directory contains a copy of UsefulFunctions.dll.

While you are working in Debug mode, you attempt to run your application. However, a System.DllNotFoundException is thrown.

You verify that you are using the correct function name. You also verify that the code in the DLL exposes CalculateValue. You have not modified the project assembly, and you have not modified machine-level security. You need to test your application immediately.
What should you do?

What should you do?

You are creating an XML Web service named StockService. The service contains a Web method named RetrieveStockInfo. RetrieveStockInfo takes as input a stock symbol and returns a DataSet object that contains information about that stock. You want to capture all incoming SOAP messages in RetrieveStockInfo and write the messages to a file for future processing. What should you do?

What should you do?

You are creating a Visual Studio .NET assembly, which will run as a shared assembly with other applications. The assembly will be installed in the global assembly cache. You will distribute the assembly to many customers outside your company. You must ensure that each customer receives your assembly without alteration, in a way that reliably specifies the origin of the code. 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?

You need to add additional code to myService to invoke the ProcessOrders method

You create a Windows service named myService that queries a table named Orders in a Microsoft SQL Server database. You want myService to check every 30 seconds for new rows in Orders.

You create the following method in myService:

private void ProcessOrders(object source,
ElapsedEventArgs eventArgs) {
// Logic to process Orders table goes here.
}
You need to add additional code to myService to invoke the ProcessOrders method. What should you do?

Which security mechanism should you use?

You are creating an XML Web service named LegalService. This service exposes two Web methods named SendMessage and ReceiveMessage. SendMessage is used to send highly confidential messages to its customers. ReceiveMessage is used to receive highly confidential messages from its customers and to process these messages for future use. You need to ensure that these messages cannot be intercepted and viewed by anyone other than LegalService and the customers who access LegalService. Which security mechanism should you use?


Page 7 of 9« First...56789