Skip to main content

AZ-104 practice question · Monitor and maintain Azure resources

An administrator wants to be notified when a custom query that counts application error records in a Log Analytics…

An administrator wants to be notified when a custom query that counts application error records in a Log Analytics workspace returns more than 50 results in a 5-minute window. The condition should be checked at a regular frequency. Which type of Azure Monitor alert rule should the administrator create?

  • AA log search alert rule
  • BA metric alert rule
  • CAn activity log alert rule
  • DA smart detection alert
Show the answer and explanation

Correct answer: A) A log search alert rule

When an alert depends on the result of a custom query over Log Analytics data checked at a set frequency, use a log search alert rule. Metric alerts, activity log alerts, and smart detection each work on different signals.

Why each option is right or wrong

  • A) Correct. A log search alert rule runs a Log Analytics (KQL) query at a set frequency and fires when the results meet the condition, for example when the number of rows returned exceeds a threshold.
  • B) Incorrect. Metric alert rules evaluate precomputed metric time series, such as platform or custom metrics. They don't run custom queries against Log Analytics data.
  • C) Incorrect. Activity log alerts fire when a matching event appears in the Azure activity log, such as a resource being deleted or a role being assigned. They don't evaluate custom queries over workspace data.
  • D) Incorrect. Application Insights smart detection uses machine learning to spot abnormal failure rates on its own. It doesn't evaluate an administrator-defined query against a fixed threshold.
Exam domain
Monitor and maintain Azure resources · 15% of AZ-104
Question type
Multiple choice (one answer)

Practise the full AZ-104 exam

This question is one of a small free sample from the CertRidge AZ-104 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Microsoft; never copied from the real exam.

Worth reading: AZ-104 passing score (700/1000), what 700 means on Microsoft's scaled score, and why it isn't 70%.