exam questions

Exam DP-700 All Questions

View all questions & answers for the DP-700 exam

Exam DP-700 topic 3 question 6 discussion

Actual exam question from Microsoft's DP-700
Question #: 6
Topic #: 3
[All DP-700 Questions]

You have a Fabric workspace that contains a warehouse named Warehouse1. Data is loaded daily into Warehouse1 by using data pipelines and stored procedures.
You discover that the daily data load takes longer than expected.
You need to monitor Warehouse1 to identify the names of users that are actively running queries.
Which view should you use?

  • A. sys.dm_exec_connections
  • B. sys.dm_exec_requests
  • C. queryinsights.long_running_queries
  • D. queryinsights.frequently_run_queries
  • E. sys.dm_exec_sessions
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GHill1982
Highly Voted 6 months ago
Selected Answer: E
Use sys.dm_exec_sessions. This view has info about all active user sessions, including user names, session IDs and status.
upvoted 11 times
doctordodge
5 months, 1 week ago
Don't we want to know about actively-running queries? Shouldn't we run sys.dm_exec_requests as that will give us that information? https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-exec-requests-transact-sql?view=sql-server-ver16
upvoted 3 times
8d6881f
5 months ago
I think the STATUS field in sys.dm_exec_sessions gives us that info
upvoted 2 times
...
...
...
smanzana
Most Recent 2 weeks, 1 day ago
Selected Answer: E
E is correct
upvoted 1 times
...
DarioReymago
3 weeks, 4 days ago
Selected Answer: E
select distinct nt_user_name from sys.dm_exec_sessions where nt_user_name is not null
upvoted 1 times
...
PBridge
1 month, 1 week ago
Selected Answer: B
Option View Name Purpose A sys.dm_exec_connections Shows connection info, not detailed query/user-level execution. B sys.dm_exec_requests Shows active requests including user and query details. C queryinsights.long_running_queries Shows historical long-running queries, not real-time monitoring. D queryinsights.frequently_run_queries Shows frequently run queries, not active users or sessions. E sys.dm_exec_sessions Shows session-level info, but lacks specifics about running queries.
upvoted 2 times
a823528
1 month ago
We have to identify the names of users that are actively running queries. sys.dm_exec_requests only gives us user_id but sys.dm_exec_sessions gives us the name (nt_user_name).
upvoted 1 times
...
...
prabhjot
4 months ago
Selected Answer: E
sys.dm_exec_connections: This view returns information about the current connections to the database instance, such as the client IP address, the login time, and the number of reads and writes. It focuses on connection details rather than identifying specific user queries. sys.dm_exec_requests: This view provides information about requests currently executing on the server, including the session ID, request status, and resource consumption. While it can show active requests, it doesn’t necessarily identify the specific users running the queries. The sys.dm_exec_sessions view, on the other hand, contains information about all active user connections and internal tasks, including details like the session ID and login name. This makes it more suitable for identifying which users are actively running queries in your database.
upvoted 3 times
...
38578c4
4 months, 1 week ago
Selected Answer: E
sys.dm_exec_sessions is a server-scope view that shows information about all active user connections and internal tasks
upvoted 1 times
...
Tuki93
5 months ago
Selected Answer: E
sys.dm_exec_sessions
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...