PrepAway - Latest Free Exam Questions & Answers

Which isolation level should you use?

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.
You need to prevent the application from reading data that is locked by other transactions. You also need to
prevent exclusive range locks. Which isolation level should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
ReadCommitted

B.
Serializable

C.
Repeatable

D.
ReadUncommitted

7 Comments on “Which isolation level should you use?

  1. chilly says:

    ReadUncommitted:
    No shared locks are issued; exclusive locks are not honored. The important implication is that this isolation level can result in a dirty read, which is almost always undesirable.
    ReadCommitted:
    Shared locks are held during reads. This has the result of avoiding dirty reads, unlike ReadUncommitted. However, the data can be changed before the end of the transaction, resulting in nonrepeatable reads or phantom data.




    0



    0

Leave a Reply