CertKeen

Fabric Data Engineer (DP-700) · Free practice question 8 of 12

Killing a running warehouse query

A runaway ad hoc query has been running for 50 minutes in a Fabric warehouse at Thurlow Brands and is blocking other work. A workspace admin wants to find its session and end it immediately. Which approach should she use?

  1. A.Query queryinsights.frequently_run_queries and delete the row that matches the runaway query
  2. B.Pause the Fabric capacity for one minute
  3. C.Run DBCC FREEPROCCACHE on the warehouse
  4. D.Query sys.dm_exec_requests to find the session_id, then run KILL with that session_id
Show answer and explanation

Correct answer: D. Query sys.dm_exec_requests to find the session_id, then run KILL with that session_id

Why: sys.dm_exec_requests shows currently running requests with their session IDs and elapsed time, and an admin can end the offending session with KILL. Query insights only covers completed queries, and deleting from a view isn't possible. Pausing the capacity stops every workload, and clearing the plan cache doesn't stop a running query.

More free Fabric Data Engineer (DP-700) questions