You are designing the data access layer (DAL) for an application that uses Microsoft SQL Server 2008, Microsoft ADO.NET, and Microsoft Visual Studio 2010.
Conflicts are occurring in the SQL Server database due to concurrent updates.
You need to design a database locking strategy that meets the following requirements: Resolves concurrent update conflicts without loss of data Ensures that data conflicts can be resolved by users Locks only the data necessary for updates
What should you do?
A. Use optimistic locking. Terminate the update when a DBConcurrencyException occurs.You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
The application will run on Windows 7-based kiosks that are located indoors and outdoors. The kiosk displays have a photo sensor that will update the application with the current ambient luminosity.
You need to ensure that the user interface (UI) of the application dynamically changes the application theme based on the ambient luminosity.
What should you use?
A. a RenderTransform control applied to the root canvasYou are analyzing a Windows client application that uses Microsoft Visual Studio 2010 and Microsoft SQL Server 2008.
The application updates two database tables from the main user interface (UI) thread.
You need to ensure that the following requirements are met:
The database tables are either updated simultaneously or not updated at all.
Users are notified of the success or failure of the updates.
Users are able to perform other tasks during the update process.
What should you do?
A. ?Use TransactionScope in a using block on the UI thread. ?Batch the database updates by setting the DbDataAdapter.UpdateBatchSize property to 2.You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
The application allows users to view product details. Product managers can modify the product details for the products that they manage.
You plan to design the application by using the Model-View-ViewModel (M-V-VM) pattern.
You need to ensure that the product details can be viewed by all users and modified only by product managers.
What should you do?
A. ?Create a separate StackPanel in the window to modify data. ?Create a separate StackPanel in the window to view data.You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4.
You create a photo album-browsing application. When the user opens an album, pictures in the album are displayed in sets of 10. Pictures are obtained from a windows Communication Foundation (WCF) service.
Most of the memory of the application is allocated in the native heap. The memory usage of the application increases when new albums are opened.
You need to ensure that the memory usage of the application remains within a specific range.
What should you do?
A. Use a reduced color palette to render pictures.You are designing a complex and critical Windows desktop application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
You plan to implement a logging strategy for the application.
You need to record all unexpected errors that occur in the application.
What should you do?
A. Subscribe to the unhandled exception event handler for the AppDomain object. Record relevant application-specific information to an external log.You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
You need to use a replacement culture for the application at runtime. You also need to ensure that the information in the custom culture will be available to the application.
Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Restart the process that is displaying the user interface,You are designing a Windows Presentation Foundation (WPF) client application that requests reports from a Windows Communication Foundation (WCF) Web service.
Users must be able to perform other tasks while the WCF Web service generates the report.
You need to recommend a message exchange pattern for the communication between the WPF application and the WCF Web service.
What are two possible message exchange patterns that will meet the requirements? (Each correct answer presents a complete solution. Choose two.)
A. Datagram with sessionYou are designing a .NET Framework 4 solution that contains a Windows Presentation Foundation (WPF) application. The WPF application includes CPU-intensive calculations. The calculations can be run on a separate process and can
effectively be isolated from the rest of the WPF application.
You need to recommend a deployment strategy that maximizes the scalability of the calculations for each user.
What should you recommend?
A. Deploy the calculation logic as a separate assembly along with the WPF application to each client computer. Invoke methods in the assembly asynchronously.You are developing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application will consume a Windows Communication Foundation (WCF) service. The WCF service will provide data to the application. You plan to use the ADO.NET Entity Framework to create a data model that will be used by the
application.
Another development team makes changes to the WCF service data contract. You need to ensure that changes made to the WCF service data contract do not require the application to be recompiled.
What should you do?
A. Create a conceptual model and a storage model based on the existing version of the WCF service.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.