70-473 · Question #110
You have a Microsoft SQL Server instance that is hosted on a Microsoft Azure virtual machine. You need to identify the most recent wait type for all of the currently running queries in the instance. W
The correct answer is C. the sys.dm_exec_requests view. To identify the most recent wait type for all currently running queries in a SQL Server instance, use the sys.dm_exec_requests dynamic management view.
Question
Options
- Athe sp_who2 stored procedure
- Bthe sys.syscacheobjects view
- Cthe sys.dm_exec_requests view
- Dthe sys.dm_exec_connections view
How the community answered
(24 responses)- A4% (1)
- C92% (22)
- D4% (1)
Why each option
To identify the most recent wait type for all currently running queries in a SQL Server instance, use the sys.dm_exec_requests dynamic management view.
sp_who2 provides basic information about current users, sessions, and processes, but it does not offer detailed wait type information for active requests.
sys.syscacheobjects provides information about objects in the cache, such as prepared queries and execution plans, not details about currently executing requests and their wait types.
The sys.dm_exec_requests dynamic management view returns information about each request currently executing in SQL Server, including the wait_type column which indicates the last wait type for the request. This view is specifically designed to provide details on actively running queries and their current state, including any waits they are encountering.
sys.dm_exec_connections returns information about the connections established to the instance, but it does not provide details about the wait types of currently executing requests within those connections.
Concept tested: Identifying SQL Server query wait types with DMVs
Source: https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-exec-requests-transact-sql
Topics
Community Discussion
No community discussion yet for this question.