单项选择题
A Windows Azure application stores data in a SQL Azure database.
The application will start an operation that includes three insert statements.
You need to recommend an approach for rolling back the entire operation if the connection to SQL Azure is lost.
What should you recommend?()
A. Ensure that all statements execute in the same database transaction.
B. Create a stored procedure in the database that wraps the insert statements in a TRY CATCH block.
C. Create a stored procedure in the database that wraps the insertstatements in a TRANSACTION block.
D. Open a new connection to the database. Use a separate transaction scope to roll back the original operation.
相关考题
-
单项选择题
You are designing a Windows Azure application that will store data in two SQL Azure databases. The application will insert data in both databases as part of a single logical operation. You need to recommend an approach for maintaining data consistency across the databases. What should you recommend?()
A. Execute database calls on parallel threads.
B. Wrap the database calls in a single transaction scope.
C. Use Microsoft Distributed Transaction Coordinator (MSDTC).
D. Handle errors resulting from the database calls by using compensatory logic. -
单项选择题
An application connects to a SQL Azure database. The application occasionally loses the connection to the SQL Azure database. You need to recommend an approach for reliably completing data access operations. What should you recommend?()
A. Use Microsoft ADO.NET connection pooling.
B. Pass exceptions to the user interface layer.
C. Implement a retry policy in the data access layer.
D. Begin a transaction before each data access operation. -
单项选择题
You are designing an application that will use Windows Azure Table storage to store millions of data points each day. The application must retain each day’s data for only one week. You need to recommend an approach for minimizing storage transactions. What should you recommend?()
A. Use a separate table for each date. Delete eachtable when it is one week old.
B. Use a separate table for each week. Delete each table when it is one week old.
C. Use a single table, partitioned by date. Use Entity Group Transactions to delete data when it is one week old.
D. Use a single table, partitioned by week. Use Entity Group Transactions to delete data when it is one week old.
