nerdexam
Microsoft

DP-300 · Question #364

SIMULATION You need to generate an email alert to [email protected] when CPU percentage utilization for db1 is higher than average. To complete this task, sign in to the virtual machine. You may…

Azure SQL CPU Alert with Dynamic Thresholds - Exam Explanation --- Overall Goal The task creates an Azure Monitor metric alert that emails [email protected] whenever db1's CPU usage rises above its own historical average - rather than a fixed threshold like "alert at 80%." This…

Submitted by rania.sa· Mar 6, 2026Monitor, configure, and optimize database resources

Question

SIMULATION You need to generate an email alert to [email protected] when CPU percentage utilization for db1 is higher than average. To complete this task, sign in to the virtual machine. You may need to use SQL Server Management Studio and the Azure portal. Answer: Create a CPU status alert for a SQL Server on Azure Create a metric alert with dynamic thresholds (Create an alert when a CPU exceeds an average) Step 1: In the search bar at the top of the Azure portal, type SQL, and select SQL databases. Select the AdventureWorksLT database name listed.[Here db1] Step 2: On the main blade for the database, navigate down to the monitoring section. Select Alerts. Step 3: Select Create alert rule. Step 4: In the Select a signal slide out, select CPU percentage. Step 5: In the Configure signal slide out, select Dynamic for the Threshold property Step 6: Then check that the Operator property is Greater than, the Aggregation type is Average. Select Done. (There is no Threshold value) Step 7: Select the Actions tab. Step 8: In the Actions tab, select Create action group. Step 9: On the Action Group screen, type emailgroup in the Action group name field, and then select Next: Notifications. Step 10: On the Notifications tab, enter the following information: Notification type: Email/SMS message/Push/Voice Note: When you select this option, a Email/SMS message/Push/Voice flyout will appear. Check the Email property and type: [[email protected]] Step 11: Select Review + create, then select Create. Note: Dynamic thresholds apply advanced machine learning and use a set of algorithms and methods to: Learn the historical behavior of metrics Analyze metrics over time and identify patterns such as hourly, daily or weekly patterns Recognize anomalies that indicate possible service issues Calculate the most appropriate threshold for the metric When you use dynamic thresholds, you don't have to know the "right" threshold for each metric, because dynamic thresholds calculate the most appropriate thresholds for you. Reference: https://microsoftlearning.github.io/dp-300-database-administrator/Instructions/Labs/12-create- cpu-status-alert.html https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-dynamic-thresholds

Exhibit

DP-300 question #364 exhibit

Explanation

Azure SQL CPU Alert with Dynamic Thresholds - Exam Explanation


Overall Goal

The task creates an Azure Monitor metric alert that emails [email protected] whenever db1's CPU usage rises above its own historical average - rather than a fixed threshold like "alert at 80%." This is the correct approach because "higher than average" implies a relative baseline, not an absolute number, which maps directly to Azure Monitor's Dynamic Thresholds feature.


Step-by-Step Reasoning

Step 1-2: Navigate to the SQL database (db1) All monitoring for an Azure SQL Database is scoped to the resource itself. You must start from the database blade so the alert is associated with the correct resource. Skipping to Azure Monitor directly is possible but error-prone - you'd have to manually select the resource scope and risk targeting the wrong database or subscription.

Step 3: Open Alerts -> Create alert rule This initiates the alert wizard scoped to db1. The alert rule ties a signal (metric), a condition (threshold logic), and an action (notification) into one unit. All three must exist in the same rule or the alert fires with no way to notify anyone.

Step 4: Select "CPU percentage" as the signal Azure exposes many metrics (DTU, connections, deadlocks, etc.). Selecting CPU percentage specifically tells the alert engine what to watch. Choosing the wrong signal (e.g., DTU percentage) would monitor a different resource dimension and miss CPU spikes.

Step 5: Select "Dynamic" for the Threshold This is the critical step that satisfies "higher than average." Dynamic thresholds use machine learning to analyze historical CPU patterns (hourly, daily, weekly seasonality) and auto-calculate what "normal" looks like. A Static threshold requires you to type a fixed number - which cannot express "higher than average" since the average changes over time.

Step 6: Operator = "Greater than," Aggregation = "Average"

  • Greater than: fires when CPU exceeds the dynamic baseline (not equal to or below).
  • Average: the aggregation window computes the mean CPU over the evaluation period before comparing to the threshold. Using "Maximum" instead would alert on momentary spikes; "Minimum" would be nonsensical for this use case.
  • No manual threshold value appears - this confirms Dynamic mode is active and the system calculates it automatically.

Skipping "Done" leaves the signal unconfigured and the wizard won't let you proceed to Actions.

Step 7-8: Actions tab -> Create action group An alert rule without an action group fires silently - the condition is evaluated but nothing happens. The action group is the delivery mechanism (email, SMS, webhook, etc.). Creating it inline here is the fastest path; reusing an existing group is valid too, but for this exam scenario you're creating fresh.

Step 9: Name the action group "emailgroup" The name is just an identifier. What matters is that you proceed to Notifications to configure how the group acts. An action group with no notification type defined does nothing.

Step 10: Notification type = Email/SMS -> enter [email protected] This is the actual delivery configuration. The exam answer specifically requires Email (not SMS or push), and the exact address [email protected] must match. Selecting the wrong notification type or mistyping the address means the alert fires but the admin never receives it.

Step 11: Review + Create Azure validates the full rule (resource scope + signal + condition + action group) before committing. Skipping Review would risk deploying a misconfigured rule silently.


What Goes Wrong If Steps Are Skipped or Reordered

Skipped StepConsequence
Skipping Dynamic threshold (Step 5)Alert uses static threshold - can't express "higher than average"
Skipping action group (Steps 7-9)Alert fires but no email is sent
Skipping email config (Step 10)Action group exists but has no notification target
Starting from Azure Monitor instead of db1 bladeMust manually scope the resource - higher risk of wrong target

Memory Tip

Think of the alert as three layers:

WHAT to watch -> WHEN to fire -> WHO to notify

  • WHAT: CPU percentage (Step 4)
  • WHEN: Dynamic > Average (Steps 5-6)
  • WHO: Action group -> Email -> [email protected] (Steps 7-10)

Dynamic thresholds = "let Azure figure out normal for me." If the exam says "higher than average" or "compared to baseline," the answer is always Dynamic, never Static.

Topics

#Azure Monitor#Metric Alerts#Dynamic Thresholds#SQL Database Monitoring

Community Discussion

No community discussion yet for this question.

Full DP-300 Practice