A company's production AWS account recently experienced a sudden, unexpected spike in data transfer costs due to a misconfigured third-party application. A SysOps administrator is tasked with implementing a solution that automatically detects these types of anomalous, variable cost spikes using machine learning and immediately triggers an AWS Systems Manager Automation runbook to restrict outbound network traffic. Which solution will meet these requirements with the least operational overhead?
- Create an AWS Cost Anomaly Monitor using the AWS services monitor type. Create an Amazon EventBridge rule that filters for events originating from the AWS Cost Anomaly Detection service, and configure the rule to target the AWS Systems Manager Automation runbook.Answer
- BCreate an AWS Budget with a usage budget type targeting data transfer costs. Set an alert threshold at 110% of the budgeted amount, and configure a budget action to execute the AWS Systems Manager Automation runbook when the threshold is exceeded.
- CEnable billing alerts in the AWS Billing console and create an Amazon CloudWatch alarm on the EstimatedCharges metric. Configure the alarm to send a notification to an Amazon Simple Notification Service (Amazon SNS) topic, and subscribe the Systems Manager Automation runbook directly to the SNS topic.
- DConfigure an AWS Cost Explorer report to monitor daily data transfer costs. Create an AWS Lambda function that executes hourly, calls the GetCostAndUsage API to retrieve the report data, analyzes the trends for anomalies, and calls the Systems Manager Automation API to run the runbook.
Answer
Create an AWS Cost Anomaly Monitor using the AWS services monitor type, create an Amazon EventBridge rule that filters for events originating from the AWS Cost Anomaly Detection service, and configure the rule to target the AWS Systems Manager Automation runbook.
The correct solution uses AWS Cost Anomaly Detection to monitor costs dynamically using machine learning baselines. When a cost anomaly is detected, the service automatically publishes an event to Amazon EventBridge (source: `aws.cost-anomaly-detection`). An EventBridge rule can match these events and directly invoke the AWS Systems Manager Automation runbook to remediate the network issue immediately with no custom polling code or intermediary components, satisfying the requirement for minimal operational overhead.
Step-by-Step Solution
Key Concept
AWS Cost Anomaly Detection ML-driven alerting and EventBridge integration