DOP-C02 Question 246
Single answerYour team is responsible for monitoring the performance of an e-commerce platform hosted on AWS. Recently, there have been unpredictable traffic spikes during flash sales, causing false alarms from CloudWatch alarms. You are tasked with implementing a solution that reduces false positives while still identifying real anomalies in the traffic patterns. Which approach should you take?
- A
Enable CloudWatch anomaly detection on the metric monitoring traffic and configure the alarm to use the anomaly detection band.
- B
Increase the threshold of your existing CloudWatch alarm to account for higher traffic during flash sales.
- C
Create a custom Lambda function to analyze traffic patterns and trigger a CloudWatch alarm only when anomalies are detected.
- D
Use Amazon QuickSight to visualize traffic patterns and manually monitor for anomalies during flash sales.
Show answer and explanation
Correct answer: A
Explanation
CloudWatch anomaly detection is specifically designed to handle scenarios with unpredictable patterns by creating dynamic models based on historical data. By enabling anomaly detection on the metric used for monitoring traffic, you can reduce false positives without compromising the ability to detect genuine anomalies, making it the most suitable and efficient solution in this case.
- A. Correct.
This is the correct option. Enabling CloudWatch anomaly detection allows you to dynamically analyze historical data to establish expected ranges of metric values. This helps reduce false positives by accounting for unpredictable patterns such as traffic spikes.
- B. Incorrect.
Increasing the threshold does not effectively address the issue of unpredictable traffic spikes. It might reduce false positives, but it also increases the risk of missing actual anomalies.
- C. Incorrect.
While implementing a custom Lambda function might work, it is not the most efficient or cost-effective solution when CloudWatch anomaly detection already provides a built-in, managed way to handle this use case.
- D. Incorrect.
Amazon QuickSight is a visualization tool and is not designed for real-time anomaly detection or alerting. Relying on manual monitoring is not a scalable or reliable solution for this scenario.