Monitoring, Logging, Analysis, Remediation, and Performance Optimization

An API's latency follows a strong daily pattern, so a fixed threshold either misses slowdowns in quiet hours or alarms falsely at peak. An alarm that invokes a remediation Lambda function must go off only when latency rises above its expected range for that time of day. Which steps meet this requirement? (Choose two.)

Choose 2 answers

Show the answer

Correct answersB. Train a CloudWatch anomaly detection model on the latency metric.D. Use the model's band as the alarm threshold, alarming when latency is above the band.

AWhy not this: A single static threshold set at the past peak would miss slowdowns during quiet hours, which is the problem to solve.

BWhy this is right: Anomaly detection models the metric's normal values, including its daily pattern, to produce an expected band.

CWhy not this: CloudTrail Insights detects unusual rates of management API calls or errors, not changes in an application's latency.

DWhy this is right: An anomaly detection alarm compares the metric with the band and changes state when it is above the upper bound.

EWhy not this: Composite alarms combine other alarms' states; they don't change a threshold by time of day, so each child alarm still uses one fixed value all day.

CloudWatch anomaly detection learns a metric's expected values, including daily and weekly patterns, and an alarm can use the resulting band as its threshold and invoke the Lambda function when latency goes above it. CloudTrail Insights looks for unusual management API call or error rates, not application latency.