AWS Certified DevOps Engineer – ProfessionalIncident and Event ResponseEasy

A global e-commerce company uses AWS Lambda functions for its serverless backend. During peak sales events, they observe occasional spikes in error rates for specific Lambda functions. They need an automated solution to detect these anomalies in real-time and trigger an alert to the operations team without setting static thresholds, which are difficult to maintain due to fluctuating traffic patterns. Which AWS service should the DevOps team implement for this purpose?

  1. AUtilize CloudWatch Anomaly Detection on Lambda error metrics.
  2. BImplement CloudWatch Alarms with static thresholds on Lambda error metrics.
  3. CConfigure Amazon SNS topics for Lambda function execution failures.
  4. DUse AWS Health Dashboard to monitor Lambda service events.
Show answer & explanation

Correct answer: A. Utilize CloudWatch Anomaly Detection on Lambda error metrics.

CloudWatch Anomaly Detection automatically identifies unusual patterns in metrics without requiring static thresholds. It learns normal behavior and alerts when metrics deviate significantly, which is perfect for dynamic workloads like Lambda functions during peak events.

Why the other options are wrong

  • B. Static thresholds are difficult to maintain with fluctuating traffic, as stated in the problem, leading to false positives or negatives.
  • C. SNS topics can be a target for alerts, but don't provide anomaly detection capability themselves.
  • D. AWS Health Dashboard monitors AWS service health, not specific application metric anomalies within Lambda functions.

CloudWatch Anomaly Detection

A CloudWatch feature that uses machine learning to detect unusual metric patterns without requiring manually set static thresholds.

  • Learns normal metric behavior over time.
  • Dynamically adjusts expected ranges based on patterns.
  • Reduces false positives compared to static thresholds.

Memory trick: Anomaly Detection is smart enough to know what's weird.

More Incident and Event Response questions