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 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?

Which myCommand method should you use?

Your Microsoft SQL Server database has a stored procedure that sums the total number of orders received each day. The stored procedure returns a result that is a single data value of type integer. You need to write code that will execute the stored procedure and return the result as an integer value. You instantiate a SqlCommand object named myCommand and initialize all appropriate parameters. Which myCommand method should you use?

What should you do?

You are developing an application that receives product information from external vendors in the form of XML documents. The information will be stored in a Microsoft SQL Server database. The application must validate all incoming XML data. It uses an XmlValidatingReader object to read each XML document. If any invalid sections of XML are encountered, the inconsistencies are listed in a single document. You must ensure that the validation process runs as quickly as possible.
What should you do?


Page 8 of 9« First...56789