Grab a pen and notepad, and jot down your answers as you go, then check your answers at the key at the bottom of the page.
Q1. What does the sys.dm_os_wait_stats dynamic management view show?
- The time for waits that have completed
- The titles of Tom Waits songs
- The time for waits that are in progress
- The time for waits that have not yet begun
Q2. How do you recognize lock waits in sys.dm_os_wait_stats?
- They contain the letters ‘WAIT’
- They begin with the prefix ‘LCK’
- They show up as part of the latch waits
- Lock waits aren’t in sys.dm_os_wait_stats
Q3. What does it mean if wait_time_ms is 0 for a wait type?
- The wait type isn’t measurable by time
- The instance has never had this type of wait, at least since you installed it
- The wait time had an integer overflow
- This wait type is probably ignorable, at least for the time since the instance has started up
Q4. Which of the following do you need to set up for the SQL Server Agent to send an email for an alert? (check all that apply)
- Configure Database Mail successfully
- Configure the SQL Server Agent properties to use the Database Mail profile
- Set up an Extended Events trace
- Configure Operators in the SQL Server Agent
Q5. Which type of alert do you set up to tell SQL Server to notify you if the “Processes Blocked” counter rises above zero?
- Severity Error Alert
- Service Broker Alert
- Performance condition alert
- WMI Alert
Q6. What does the column that sp_WhoIsActive shows at the very *left* of the results pane (by default) tell you?
- The session id that a query is blocked by
- Whether the query is SQL Server or Oracle
- The session status (sleeping, runnable, suspended)
- How long that query has been running
Q7 How can you see the text of the query a session is running in sp_WhoIsActive?
- You can’t do this yet, it might be in the next version
- Click on the sql_text column to open the query in a new window
- Run sp_WhoIsActive with @get_sql=1
- Look at the session in Activity Monitor
Scroll down for the answer key 👇
- A1. 1. The time for waits that have completed
- A2. 2. They begin with the prefix ‘LCK’
- A3. 4. This wait type is probably ignorable, at least for the time since the instance has started up
- A4. All are correct, EXCEPT 3. ‘Set up an Extended Events trace’
- A5. 3. Performance condition alert
- A6. 4. How long that query has been running
- A7. 2. Click on the sql_text column to open the query in a new window