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

CertStreak
Menu

Configure job alerts and notifications

A worked example

Single answer

You administer SQL Server 2022 on an Azure virtual machine. An operator named DBA-Team is already configured to receive email. You want DBA-Team to be emailed when the Page Life Expectancy counter falls below a threshold that you define. A drop in Page Life Expectancy does not raise any error message, and it can happen at any time, independently of any SQL Server Agent job.

What should you create in SQL Server Agent?

Choose one answer
Why

SQL Server Agent alerts can respond to SQL Server events, SQL Server performance conditions or WMI events. Low Page Life Expectancy is a server condition measured by a perfmon counter that the database engine tracks, not an error number. Therefore, the correct choice is a performance condition alert with a response that notifies the DBA-Team operator.

  • Not correct: A job notification set to When the job fails. Job notifications report the completion, success or failure of a job. They do not monitor server performance counters.
  • Correct: A SQL Server performance condition alert. Performance condition alerts watch perfmon metrics that the database engine tracks, such as Page Life Expectancy, and can notify an operator.
  • Not correct: A SQL Server event alert for error number 825. Error 825 is a storage error condition. An alert on that error number fires only when that error is logged, not when a performance counter falls.
  • Not correct: A SQL Server event alert for severity 16. Event alerts respond to matching errors in the Windows application log. The scenario states that the Page Life Expectancy drop does not raise an error message.

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