PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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?

Which code segment should you use?

You create an XML Web service named MyService. You must ensure that this service meets the following URL authorization requirements:

Anonymous access must be disabled for MyService.
An authenticated user named User1 cannot access MyService.
All other authenticated users can access MyService.

You configure Internet Information Services (IIS) to meet these requirements. You now need to configure the authorization section in the Web.config file to properly authorize the users.

Which code segment should you use?

Which version of FabrikamComponent is loaded and from which location is it loaded?

You have an application named MyApp that contains a reference to version 1.0.0.0 of a strongly named serviced component named FabrikamComponent. This component is located in the bin directory of MyApp. You receive version 2.0.0.0 of FabrikamComponent, which you install in the global assembly cache. You reconfigure the application configuration file to redirect calls to version 2.0.0.0. You now receive version 3.0.0.0 of FabrikamComponent, which you install in the global assembly cache. You do not reconfigure the application configuration file. You then run MyApp. Which version of FabrikamComponent is loaded and from which location is it loaded?

Which type of authentication should you use?

You are creating an XML Web service that processes credit card information. This service will be consumed by computers that run on Microsoft Windows operating systems, as well as computers that run on other operating systems. You must ensure that client credentials passed to the service are secure and cannot be compromised. You are not as concerned with the length of time that Web method calls take to maintain this level of security. You need to configure authentication for this service. Which type of authentication should you use?

Which XML output is produced by this code segment?

You are troubleshooting a Visual Studio .NET application that was developed by a former colleague. The application contains a NextToken function. This function reads product names from a file. You find the following code segment within a large assembly:
You find that productNames.xml contains only two entries: prod0 and prod1.

Which XML output is produced by this code segment?