Topic 3, Mix Questions
Note: this question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You use ASP.NET Core MVC with ADO.NET to develop an application. You implement database sharding for the application by using Azure SQL Database. You establish communication to implement a strategy that allows a group of operations that are performed on multiple Azure databases to be rolled back on all database if any of the operations fail.
Solution
• Create stored procedures in each Azure SQL database instance to perform operations for each respective database.
• Invoke a named transaction and use the same name for the transaction in each stored procedure.
• Establish a new transaction scope in a using block. Within the block, establish connections to each Azure SQL Database instance and run the stored procedure.
• If no exception occurs, commit the scoped transaction.
Does the solution meet the goal?
A . Yes
B . No
Answer: B