<< Prev Question

Question 24/24

You are developing a .NET Core on-premises application that updates multiple Azure SQL Database instances. The application must log all update commands attempted to a separate Azure SQL database instance named AuditDb.
You define an outer TransactionScope with a loop to enumerate and run the SQL commands on each customer database connection and an inner TransactionScope to record all transactions attempted within the outer TransactionScope to the AuditDb database.
You need to develop a method to perform the updates to the databases. The solution must meet the following requirements:
All rows written to the AuditDb database must be committed even if the outer transaction fails.

If an error occurs writing to the AuditDb database, the outer transaction must be rolled back.

If an error occurs writing to the Customer databases, only the outer transaction must be rolled back.

Values for TransactionScopeOption must be specified for the customer databases.

Values for TransactionScopeOption must be specified for the AuditDb database.

Which TransactionScopeOption values should you use?

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (24q)
Question 1: Note: In this section, you will see one or more sets of ques...
Question 2: You create an Azure Time Series Insights event handler. You ...
Question 3: Note: This question is a part of a series of questions that ...
Question 4: You have implemented code that uses elastic transactions spa...
Question 5: Note: In this section, you will see one or more sets of ques...
Question 6: Note: This question is a part of a series of questions that ...
Question 7: Note: This question is a part of a series of questions that ...
Question 8: Note: This question is a part of a series of questions that ...
Question 9: You are developing a speech-enabled home automation control ...
Question 10: Note: In this section, you will see one or more sets of ques...
Question 11: A company sells products worldwide and provides customer ser...
Question 12: You host an on-premises ASP.NET Web API at the company headq...
Question 13: A company named Contoso Ltd., has a single-domain Active Dir...
Question 14: You develop a payment processing solution by using a .NET Fr...
Question 15: You have 100 Standard_F2s_v2 Azure virtual machines. Each vi...
Question 16: You have an Azure subscription used for testing and developm...
Question 17: Note: In this section, you will see one or more sets of ques...
Question 18: Note: In this section, you will see one or more sets of ques...
Question 19: You plan to develop an Azure Stream Analytics job that inges...
Question 20: A company plans to automate specific sections of a customer ...
Question 21: Your company has 300 virtual machines hosted in a VMWare env...
Question 22: You plan to move a web application named App1 from an on-pre...
Question 23: You are building a custom Azure function app to connect to A...
Question 24: You are developing a .NET Core on-premises application that ...