Q20 Monitor Domain 4 · 20–25% of exam

An Azure Function app needs to track custom business metrics (e.g., orders processed). Which Application Insights API should be used?

  1. A TrackRequest()
  2. B TrackEvent() and/or TrackMetric() (correct answer)
  3. C TrackException()
  4. D TrackDependency()

Shortcut: , 'OrderProcessed') with custom properties. , processing_time_ms). Both appear in the customEvents / customMetrics tables.

TrackEvent() logs named custom events (e.g., 'OrderProcessed') with custom properties. TrackMetric() logs custom numeric measurements (e.g., processing_time_ms). Both appear in the customEvents / customMetrics tables.