Microsoft 70-565 Real Exam Questions

Pro: Designing and Developing Enterprise Applications Using the Microsoft .NET Framework 3.5

This exam is targeted at the Professional level developer seeking to prove skills using Visual Studio 2008 and the .NET Framework 3.5.

Questions that contain code will be presented in either VB or C#.  Candidates can select one of these languages when they start the exam.

1: You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. You purchase a logging component along with the source code from a third-party vendor. New versions of the component are frequently released by the same vendor. You require certain additional features that might be present in a future release of the logging component. You need to consume the logging component in the application. You also need to ensure that the component can be replaced with a new version by using the minimum amount of development effort. What should you do?
A.Reference the logging component in the application.Implement additional features as a separate utility class within the application.
B.Add the source code for the logging component in your current application.Implement additional features within the application.
C.Wrap the logging component in a class library.Implement additional features in the class library.Reference the class library in the application.
D.Modify the source code for the logging component.Implement additional features by modifying the code.Reference the modified logging component in the application.
Correct Answers: C

2: You are creating multiple enterprise applications by using the .NET Framework 3.5. All the applications will be deployed on a single computer. You purchase a COM component from a third-party vendor. You plan to reuse a specific functionality of the component in the applications. The COM component will be used by 25 developers who work on different applications. You need to ensure that the types referenced in the COM component are compatible among the developers. What should you do?
A.Use the P/Invoke service.
B.Obtain the primary interop assembly from the vendor.
C.Use the [ComVisible(true)] attribute for all the application assemblies.
D.Ensure that each developer creates a wrapper class for the COM component.
Correct Answers: B

3: You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application includes two namespaces named Contoso.Security and Contoso.Log. Classes in the Contoso.Security namespace will be distributed for use in a data access layer component. Classes in the two namespaces will be distributed for use by other client components in the application. Not all client components will use both the Contoso.Security and Contoso.Log classes. You plan to design a strategy for component reuse. You need to ensure that unnecessary code is not distributed to any client application. You also need to ensure that all necessary code is available to dependent components. What should you do?
A.Create one assembly for the Contoso.Security and Contoso.Log namespace classes.Reference the assembly from the data access layer components.
B.Create one assembly for the Contoso.Security namespace classes.Create one assembly for the Contoso.Log namespace classes.Reference the Contoso.Security assembly from the data access layer components.
C.Create one assembly for the Contoso.Security namespace classes.Create one assembly for the Contoso.Log namespace classes.Reference the Contoso.Log assembly from the data access layer components.
D.Create one assembly for the Contoso.Security namespace classes.Create one assembly for the Contoso.Log namespace classes.Reference the two assemblies from the data access layer components.
Correct Answers: B

4: You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application includes a server component that receives DataTable objects from client components. Each DataTable object contains approximately 2,500,000 rows. The server component must load new and updated records from the DataTable objects into a table in a Microsoft SQL Server 2005 database. The schemas of the database table and the DataTable objects are identical. The database is located on a different server than the application server component. You need to identify a method that provides the best performance to load the data into the database table. Which method should you use ?
A.Use the bcp utility.
B.Use a SqlBulkCopy object.
C.Use the BULK INSERT statement.
D.Use a parameterized stored procedure.
Correct Answers: B

5: You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application contains several components that interact to implement complex business logic. You need to describe the message flows among the components. What should you do?
A.Create a state diagram for the component.
B.Create a component diagram for the application.
C.Create a Use case diagram for the business logic.
D.Create a sequence diagram for the business logic.
Correct Answers: D

6: You are designing a class library by using the .NET Framework 3.5 and Microsoft SQL Server 2008.
The class library will be used by several .NET applications. The class library will contain a utility class that executes advanced mathematical operations.
You need to design the utility class to meet the following requirements:
    It can be accessed only by other classes in the same .NET assembly.
    It can be instantiated only once.
What should you do?
A.Create a public class along with an internal constructor.
B.Create an internal class along with an internal constructor.
C.Create a public class along with a private constructor. Expose a public static method that returns an instance of the class.
D.Create an internal class along with a private constructor. Expose an internal static method that returns an instance of the class.
Correct Answers: D

7: You are designing an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application implements the following design:
   Client applications will be accessed by using a mobile device or a browser.
   All client applications will connect to a Windows Communication Foundation (WCF) service.
   All client applications will use Microsoft SQL Server Compact 3.5.
You need to ensure that the client applications can perform the following tasks:
   Maintain local copies of data offline.
   Synchronize changes.
   Detect data conflicts.
What should you do?
A.Use LINQ to SQL.
B.Use merge replication.
C.Use Entity Framework.
D.Use the Microsoft Sync Framework.
Correct Answers: D

8: You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
You plan to implement a data access component to retrieve product data from a corporate database. The component will return data for the products that meet the defined criteria.
You need to ensure that the component conforms to the following requirements:
   Access to the database is provided only when necessary.
   The database schema is hidden from the application that calls the component.
   Calls are returned by the component as quickly as possible.
What should you do?
A.Create a typed collection.Use System.Linq to verify the cached collection.Retrieve all products if data is not cached.
B.Create a typed collection.Use System.Linq to verify the cached collection.Retrieve a subset of products if data is not cached.
C.Create a DataTable object.Use the Select method to verify whether the object contains the necessary data.Retrieve all products if data is not cached.
D.Create a DataTable object.Use the Select method to verify whether the object contains the necessary data.Retrieve a subset of products if data is not cached.
Correct Answers: B

9: You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application uses a Web farm to host several Windows Communication Foundation (WCF) services. The services receive messages from several clients over the Internet that implement the same data contract.
You develop a new version of the data contract. An older version of the data contract had elements that were optional that are now required. Default element is an acceptable variation for the optional element.
Not all customers will be able to implement the new version of the data contract before you complete deployment to the entire Web farm.
You need to define a validation strategy that will ensure that all the clients can successfully communicate by using the new data contract.
What should you do?
A.Use a message filter.
B.Use a message inspector.
C.Use a custom WCF transport.
D.Use a rules-driven WCF router.
Correct Answers: B

10: You create an ASP.NET application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application uses a Microsoft SQL Server database.
During testing, the application intermittently logs the following exception message:
"Transaction (Process ID xxx) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction."
The error cannot be reproduced in the development environment.
You need to identify the root cause of the exception.
What should you do?
A.Use Event Viewer.
B.Use SQL Server Profiler.
C.Use Performance Monitor.
D.Configure the system.transactions trace source in the Web.config file.
Correct Answers: B

Download  |  Password: certificatexam.com