Home › AWS Developer Associate › cloudcomputing › awsdevtroubleshooting › Which CloudWatch construct fires a notification …
Which CloudWatch construct fires a notification (or auto-scaling action) when a metric crosses a threshold for N consecutive periods?
AAn IAM trust policy
BA VPC peering connection
CA CloudWatch alarm
DAn S3 bucket policy
Answer & Solution
Correct answer: C. A CloudWatch alarm
Alarms watch a metric, evaluate against a threshold/period, and emit to SNS / Auto Scaling / EC2 actions. The other options are unrelated services or IAM constructs.
Related questions
A serverless app's Lambda functions are billed per-millisecond. Which cost-optimization stWhich CloudWatch construct sends an SNS notification when a Lambda's error rate exceeds 5%An application sends events to an SQS queue. Suddenly the queue's `ApproximateNumberOfMessA Lambda function in a VPC hits an external HTTPS API. Cold starts now take 8+ seconds insA team needs to query Lambda logs ad-hoc with SQL-like syntax (filter by request id, errorWhich CloudWatch feature lets a developer build a dashboard showing graphs of multiple metA Lambda function called from API Gateway returns 502 Bad Gateway under load. Logs show "TA Lambda function's 99th-percentile latency is dominated by cold starts. Which optimisatio