You are designing a Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008. You need to design a data access strategy that meets the following requirements:
Automatically tracks changes Maps the database data model to the object model
Which data access technology should you use?
A. LINQ to SQLYou design a Windows Presentation Foundation (WPF) application that interacts with a Windows Communication Foundation (WCF) Web service. The WCF Web service throws exceptions of type Exception.
The WPF application crashes when the WCF Web service throws an exception.
You need to recommend an error-handling strategy that allows users to submit updated data to the WCF Web service without restarting the WPF application.
What should you recommend?
A. Modify the Web service to throw custom exceptions derived from the Exception class.You are designing a Windows Forms application.
You intend to display graphics on a form in the application by using a third-party Windows Presentation Foundation (WPF) control.
You need to recommend a control for hosting the third-party WPF control.
What should you recommend?
A. An ElementHost controlYou are working with an existing Windows Presentation Foundation (WPF) application in Microsoft Visual Studio 2010. The WPF application requires approximately one minute to initialize before displaying its main window.
You have the following requirements:
Immediately display a splash screen when the WPF application launches.
Allow for the display of an initialization progress bar on the splash screen.
Close the splash screen when the WPF application is ready to display the main window.
You need to recommend an approach for meeting the requirements.
What should you recommend?
A. Launch a custom splash screen by using a Window object. When the initialization completes, launch the main window from the splash screen.You are designing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application includes Windows Workflow Foundation (WF) hosts that run thousands of workflow instances. Workflows usually take 2 hours of time to complete. The application also includes a Windows Communication Foundation (WCF)
service that contains a method to check the completion status of a workflow stored in a database.
External applications that use the WCF service to check the status of workflows every minute causes performance degradation of the workflow that hosts the application.
You need to eliminate the performance degradation caused by workflow status checks.
What should you do?
A. Cache the status of the workflow. Assign a callback function based on a SqlDependencyobject. Reload the cache in the callback function.You are deploying an application on Windows client computers by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
You need to ensure that the deployment package meets the following requirements:
Grants only the necessary permissions Adds a shortcut to the Windows Start menu Registers the application within Programs and Features Can be published to a Web site
Which deployment strategy should you use?
A. XCopyYou are designing a Windows Presentation Foundation (WPF) application that displays thumbnail images of photographs. The thumbnails are arranged in rows and columns.
The number of columns must automatically update based on the size of the application window.
You need to recommend a container for displaying all the thumbnail images at the same size.
Which container should you recommend?
A. a WrapPanel controlYou are designing updates to a Windows solution that processes complex scientific data. The solution extracts analyzed data from Microsoft Excel by using an application-level add-in.
You have the following requirements:
Deploy the Excel add-in to client machines with the application.
Ensure that the solution supports Excel 2007 and Excel 2010.
Minimize the size of the deployment package.
You need to recommend an approach that meets the requirements.
What should you recommend?
A. Include the primary interop assembly for Excel 2007.You are updating a Windows desktop client application that was created by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application displays data derived from several database queries. The display takes a long time to update.
The application currently uses a BackgroundWorker thread and a Parallel.ForEach statement on that thread.
Users have requested a modification to the program that would allow them to interrupt the display of data and begin processing a new and different query.
You decide to provide a new Stop button on the user interface (UI) to allow the user to terminate the current data display and initiate the new query.
The main UI thread must be notified when the current data processing is terminated so that the new query can be started.
You need to implement the Stop button event handler.
What should you do?
A. Use the DoWork handler of the worker thread and test a shared status value. Use a break statement to terminate the Parallel.ForEach loop.You are designing an application by using Microsoft NET Framework 4 and Microsoft Visual Studio 2010.
Your development team consists of designers and C# developers. You need to ensure that the application meets the following requirements:
Kit allows separation of user interface (UI) code and business logic.
"It allows the UI to be data-bound without requiring a code-behind file.
Which technology should you use?
A. Windows Forms along with Model View Presenter (MVP)Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-518 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.