Which code segment should you use?

Posted by: Pdfprep Category: 70-487 Tags: , ,

You need to update the ImportBooks() method to use database transactions.

Which code segment should you use?
A . SqlConnection.BeginTransaction(IsolationLevel.RepeatableRead);
B . SqlConnection.BeginTransaction(IsolationLeve.ReadUnconvnited);
C . SqlConneetion.BeginTransaction(IsolationLevel.Serializable);
D . SqlConnection.BeginTransaction(IsolationLevel.Snapshot);

Answer: B

Explanation:

* scenario: The ImportBooks() method must keep a copy of the data that can be accessed while new books are being imported without blocking reads.

* ReadUncommitted

A dirty read is possible, meaning that no shared locks are issued and no exclusive locks are honored.

Leave a Reply

Your email address will not be published.