MS SQL Server – 55 – Lock Modes MCQ

55 – Lock Modes MCQ

1 / 25

1. What is the purpose of a lock in MS SQL Server?

2 / 25

2. Which SQL Server lock mode allows other transactions to read but not modify locked data?

3 / 25

3. What is lock granularity in SQL Server?

4 / 25

4. What is lock escalation in SQL Server?

5 / 25

5. In SQL Server, which command is used to explicitly release locks held by a transaction?

6 / 25

6. Which system view in SQL Server can be used to display information about current locks?

7 / 25

7. What is a shared lock (SHAREin SQL Server?

8 / 25

8. Which lock mode in SQL Server allows a transaction to both read and modify data while preventing other transactions from accessing it?

9 / 25

9. What is the primary purpose of an intent lock (INTENT) in SQL Server?

10 / 25

10. What is a page-level lock in SQL Server?

11 / 25

11. Which statement is true about deadlocks in SQL Server?

12 / 25

12. What is the purpose of a lock timeout in SQL Server?

13 / 25

13. Which lock mode in SQL Server is typically used to prevent other transactions from modifying data while a transaction is reading it?

14 / 25

14. What is lock compatibility in SQL Server?

15 / 25

15. What happens when a deadlock is detected in SQL Server?

16 / 25

16. Which command is used to forcibly terminate a SQL Server session to resolve a deadlock?

17 / 25

17. What is lock contention in SQL Server?

18 / 25

18. What does the “WITH (NOLOCK)” hint do in SQL Server?

19 / 25

19. Which system dynamic management view (DMV) in SQL Server provides information about deadlocks?

20 / 25

20. In SQL Server, what is the purpose of an update lock (UPDATE)?

21 / 25

21. What is the purpose of a schema modification lock in SQL Server?

22 / 25

22. Which statement is true regarding lock escalation in SQL Server?

23 / 25

23. What is the purpose of the “SET DEADLOCK_PRIORITY” statement in SQL Server?

24 / 25

24. Which lock mode in SQL Server allows a transaction to acquire locks, but it does not block other transactions from reading data?

25 / 25

25. In SQL Server, what is a deadlock graph?

Your score is

0%