Administering a SQL Database Infrastructure — Question 83

You use Microsoft SQL Server 2016 to write code for a transaction that contains several statements.
There is high contention between readers and writers on several tables used by your transaction. You need to minimize the use of the tempdb space.
You also need to prevent reading queries from blocking writing queries.
Which isolation level should you use?

Answer options

Correct answer: C

Explanation

The correct answer is READ COMMITTED SNAPSHOT, as it allows readers to access a version of the data without blocking writers, thus minimizing contention. SERIALIZABLE and REPEATABLE READ can lead to increased blocking, while SNAPSHOT provides similar benefits but may not prevent all read queries from interfering with writes as effectively as READ COMMITTED SNAPSHOT.