How should you complete the code?

HOTSPOT
You are developing an ASP.NET Web API to process customer and product data that is stored in separate Azure SQL Database instances. The API will use the latest versions of the .NET Framework and ADO.NET to access and modify data.
Connection stings for the customer and product databases are stored in string variables named connectionStringCustomers and connectionStringProducts, respectively. The API must elastic database transactions.
You need to implement the distributed transaction.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

microsoft-exams

3 thoughts on “How should you complete the code?

  1. Answer:
    1. new SqlConnection(connectionstringProducts)
    2. Open
    3. new SqlConnection(connectionStringCustomers)
    4. Open

    1. A little more information to support azure tester’s comment:

      Elastic Database Transactions:- https://docs.microsoft.com/en-us/azure/azure-sql/database/elastic-transactions-overview#

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.