nerdexam
Microsoft

DP-300 · Question #405

Hotspot Question You have an Azure subscription that contains a SQL Server instance on a virtual machine named Server1. You execute the following T-SQL statement on Server1. For each of the…

The correct answer is An alert will be generated when a fatal error occurs. = Yes; A SQL Server Agent job will run when an alert is generated. = No; An email will be sent to [email protected] when an alert is generated. = Yes. The T-SQL statement creates a SQL Server Agent alert using sp_add_alert with a severity level of 20 (fatal errors affecting all connections), which means an alert is triggered on fatal errors. The alert is configured with a notification operator linked to an email address…

Submitted by yuriko_h· Mar 6, 2026Monitor and Optimize Operational Resources / Configure alerts, notifications, and automated responses in SQL Server on Azure Virtual Machines

Question

Hotspot Question You have an Azure subscription that contains a SQL Server instance on a virtual machine named Server1. You execute the following T-SQL statement on Server1. For each of the following statements, select Yes if the statement is true, otherwise select No. NOTE: Each correct selection is worth one point. Answer:

Exhibits

DP-300 question #405 exhibit 1
DP-300 question #405 exhibit 2

Answer Area

  • An alert will be generated when a fatal error occurs.Yes
  • A SQL Server Agent job will run when an alert is generated.No
  • An email will be sent to [email protected] when an alert is generated.Yes

Explanation

The T-SQL statement creates a SQL Server Agent alert using sp_add_alert with a severity level of 20 (fatal errors affecting all connections), which means an alert is triggered on fatal errors. The alert is configured with a notification operator linked to an email address ([email protected]) via sp_add_notification, so an email is sent when the alert fires. However, no job_id or job_name parameter is specified in the alert definition, meaning no SQL Server Agent job is associated with or executed when the alert is generated - only the operator notification (email) is configured.

Topics

#SQL Server Agent#Alerts and Notifications#T-SQL Administration#Azure SQL on VM

Community Discussion

No community discussion yet for this question.

Full DP-300 Practice