A new AWS workload uses EC2, an ALB and RDS, with only CloudWatch available. Which alarms do you create first?
BeginnerScenarioCloud Monitoring, Incidents and Migrations
Answer
Situation read → Start with user-facing symptoms at the load balancer, then key resource limits.
What I'd do →
- ALB:
HTTPCode_Target_5XX_CountandHTTPCode_ELB_5XX_Count(as a ratio ofRequestCountwith metric math),TargetResponseTimep99,UnHealthyHostCount > 0. - RDS:
FreeStorageSpace,CPUUtilization,DatabaseConnectionsnearmax_connections,ReplicaLag,FreeableMemory. - EC2:
StatusCheckFailed, and install the CloudWatch agent for memory and disk usage. - Send all alarms to an SNS topic integrated with the paging tool.
- Use a composite alarm to page only when user-facing symptoms fire.
aws cloudwatch put-metric-alarm --alarm-name rds-storage-low \
--namespace AWS/RDS --metric-name FreeStorageSpace \
--dimensions Name=DBInstanceIdentifier,Value=prod-db \
--statistic Minimum --period 300 --evaluation-periods 1 \
--threshold 10737418240 --comparison-operator LessThanThreshold \
--alarm-actions arn:aws:sns:eu-west-1:111122223333:oncall
Why → The ALB sees what users see; resource alarms give early warning.
Interview tip → Mention that EC2 memory is not a default CloudWatch metric.
More on Cloud Monitoring, Incidents and Migrations
The CloudWatch bill jumped from $2k to $15k a month. How do you find and cut the cost?IntermediateYour company has 50 AWS accounts. How do you get one monitoring view?IntermediateYour team uses Prometheus and Grafana, but RDS, SQS and ALB metrics live only in CloudWatch. How do you unify?IntermediateHow do you monitor a fleet of AWS Lambda functions?BeginnerYour RDS PostgreSQL database gets slow every afternoon. What monitoring do you use to find out why?BeginnerFor a new EKS cluster, should you use CloudWatch Container Insights or the Prometheus stack?Intermediate