exam questions

Exam AZ-302 All Questions

View all questions & answers for the AZ-302 exam

Exam AZ-302 topic 6 question 1 discussion

Actual exam question from Microsoft's AZ-302
Question #: 1
Topic #: 6
[All AZ-302 Questions]

Note: This question is a part of a series of questions that presents the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others not have a 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 links between the shard databases.
You need to implement a strategy that allows a group of operations that are performed on multiple Azure databases to be rolled back on all databases 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 in each stored procedure.
✑ Establish a new transaction scope in a using block. Within the block, establish connections to each Azure SQL Databases instance and run the stored procedure.
✑ If no exception occurs, commit the scoped transaction.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
haribabu
4 years ago
https://docs.microsoft.com/en-us/azure/azure-sql/database/elastic-transactions-overview
upvoted 1 times
...
Phoenixj
4 years, 5 months ago
If exception, should rollback.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago