Microsoft
70-518 · Question #59
70-518 Question #59: Real Exam Question with Answer & Explanation
Sign in or unlock 70-518 to reveal the answer and full explanation for question #59. The question stem and answer options stay visible for context.
Question
You 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?
Options
- AUse TransactionScope in a using block on the UI thread.
- BMove the database update logic to a BackgroundWorker thread.
- CUse TransactionScope in a using block on the main thread.
- DUse TransactionScope in a using block on the UI thread.
Unlock 70-518 to see the answer
You've previewed enough free 70-518 questions. Unlock 70-518 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.