Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Identify performance issues using dynamic management views (DMVs)

A worked example

Multiple answers

You have VIEW DATABASE STATE permission on an Azure SQL Database single database. The user database has a database ID of 7. During a period of slow performance, you query sys.dm_exec_requests and get the output shown in the exhibit (fragment).

session_idstatuscommandwait_typewait_timewait_resource
61suspendedINSERTPAGELATCH_UP452:1:1
64suspendedUPDATEPAGELATCH_EX307:1:15020
80suspendedSELECTRESOURCE_SEMAPHORE12500

Which conclusions are supported by the output? Select two.

Choose 2 answers.
Why

A PAGELATCH_* wait alone does not prove tempdb contention. You must check that wait_resource starts with database ID 2, which is true for session 61 but not for session 64 (database 7). Page latch waits without IO in the name are not storage I/O problems, unlike PAGEIOLATCH_* waits. RESOURCE_SEMAPHORE on session 80 means the query is waiting for a memory grant before it can start running.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free