nerdexam
Microsoft

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.

Monitor and manage an Azure data platform solution

Question

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. What should you use?

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)
  • A
    4% (1)
  • C
    92% (22)
  • D
    4% (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.

Athe sp_who2 stored procedure

sp_who2 provides basic information about current users, sessions, and processes, but it does not offer detailed wait type information for active requests.

Bthe sys.syscacheobjects view

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.

Cthe sys.dm_exec_requests viewCorrect

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.

Dthe sys.dm_exec_connections view

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

#SQL Server DMVs#query performance monitoring#wait types

Community Discussion

No community discussion yet for this question.

Full 70-473 Practice