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 URL should you use?
You create an XML Web service named myService. This service exposes a Web method named MyMethod. You need to register myService in UDDI. First, you add a new business name and a new tModel. You now need to list a valid access point to myService. Which URL 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 code segment should you use?
You are creating a Windows-based application named MyWinApp. To the application, you add a Windows Form named MyForm and a reference to a SingleCall .NET Remoting object named TheirObject. You need to ensure that MyForm creates an instance of TheirObject to make the necessary remote object calls. Which code segment should you use?
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 query should you use?
You are developing an application that queries a Microsoft SQL Server database. The application will package the results of the query as XML data. The XML data will be retrieved directly from the database and transmitted electronically to a business partner. The query must retrieve all rows and all columns from a database table named Customers. Which query should you use?
Which code segment should you use?
Your Microsoft SQL Server database has a stored procedure named GetCompanyName. GetCompanyName accepts one parameter named @CustomerID and returns the appropriate company name. You instantiate a SqlCommand object named myCommand. You need to initialize myCommand to return the company name for @CustomerID with a value of “ALFKI”. Which code segment 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?