AWS Certified DevOps Engineer - Professional free question 7 / 10 · Domain 4: Monitoring and Logging
The request count of an application follows strong daily and weekly patterns, so a static alarm threshold is either noisy at peak hours or blind off-peak. A deployment last week also caused unusual traffic that the team does not want the baseline to learn. What should the team do?
- Enable anomaly detection and rely on CloudWatch to leave the deployment period out of training by itself
- Wait for the metric to collect two weeks of data before enabling anomaly detection on it
- Create an alarm with a static threshold set to the highest expected peak and keep the daily and weekly patterns out of it
- Enable anomaly detection, exclude the deployment period from training, and alarm on the anomaly detection band
Show the answer and explanation
Answer: D
Why this is correct
CloudWatch anomaly detection builds a model of expected values from the metric's past data and assesses trends and hourly, daily and weekly patterns, which suits a metric with strong seasonality. Alarms based on the model compare the metric to the band of expected values and have no static threshold. The model trains on up to two weeks of data but can be enabled earlier. You can exclude specified time periods from training, which is how a deployment with unusual traffic is kept out of the baseline.
Why the other options are wrong
"Create an alarm with a static threshold set to the highest expected peak and keep the daily and weekly patterns out of it" … The anomaly detection model accounts for hourly, daily and weekly patterns, which a static threshold does not follow. Anomaly detection alarms don't have a static threshold.
"Wait for the metric to collect two weeks of data before enabling anomaly detection on it" … The algorithm trains on up to two weeks of data, but you can enable anomaly detection on a metric even if it does not have a full two weeks of data.
"Enable anomaly detection and rely on CloudWatch to leave the deployment period out of training by itself" … You choose which time periods to exclude from model training after enabling anomaly detection, so that deployments and other unusual events do not shape the model.
Key points
Anomaly detection handles seasonality without a static threshold, and excluded time periods keep deployments out of the model.