Complete the code to create a billing alarm that triggers when the estimated charges exceed $100.
AlarmName: "BillingAlarm" MetricName: "EstimatedCharges" Namespace: "AWS/Billing" Statistic: "Maximum" Period: 21600 EvaluationPeriods: 1 Threshold: [1] ComparisonOperator: "GreaterThanThreshold"
The threshold should be set to 100 to alert when charges exceed $100.
Complete the code to specify the currency unit for the billing metric.
MetricName: "EstimatedCharges" Namespace: "AWS/Billing" Dimensions: - Name: "Currency" Value: [1]
The billing alerts typically use USD as the currency unit.
Fix the error in the alarm action to notify the billing team via SNS topic ARN.
AlarmActions:
- [1]The alarm action requires the full SNS topic ARN as a quoted string.
Fill both blanks to complete the CloudFormation snippet for billing alarm with SNS notification.
Resources:
BillingAlarm:
Type: "AWS::CloudWatch::Alarm"
Properties:
AlarmName: "BillingAlarm"
MetricName: "EstimatedCharges"
Namespace: "AWS/Billing"
Statistic: "Maximum"
Period: 21600
EvaluationPeriods: 1
Threshold: [1]
ComparisonOperator: [2]
AlarmActions:
- "arn:aws:sns:us-east-1:123456789012:BillingAlerts"The threshold should be 100 and the comparison operator should be GreaterThanThreshold to alert when charges exceed $100.
Fill all three blanks to complete the billing alert setup with metric dimension and SNS action.
Resources:
BillingAlarm:
Type: "AWS::CloudWatch::Alarm"
Properties:
AlarmName: "BillingAlarm"
MetricName: "EstimatedCharges"
Namespace: "AWS/Billing"
Dimensions:
- Name: [1]
Value: [2]
Threshold: 100
ComparisonOperator: "GreaterThanThreshold"
AlarmActions:
- [3]The dimension name is "Currency" with value "USD" and the alarm action is the SNS topic ARN as a quoted string.