You need to be paged when 5xx errors on the ALB exceed 2 percent for 5 minutes. How?
BeginnerScenarioObservability, Secrets, KMS and CloudFormation
Answer
Situation read → A CloudWatch alarm using metric math.
What I'd do →
- Metric math:
100 * m1 / m2with m1HTTPCode_Target_5XX_Countand m2RequestCount - Alarm: 5-minute period, threshold 2, 1 of 1 or 2 of 3 datapoints
- Treat missing data as
notBreaching - Action to an SNS topic wired to PagerDuty or Chatbot
Why → Percentages beat raw counts, since traffic varies.
Interview tip → Mention treating missing data deliberately.
More on Observability, Secrets, KMS and CloudFormation
How do you centralize application logs from many EC2 and ECS services?BeginnerCloudWatch costs exploded. Where do you look?IntermediateInvestigate a latency spike across microservices on AWS. What tools do you use?IntermediateAn auditor asks for proof of every configuration change to security groups for 12 months. What do you provide?IntermediateAuto-remediate any security group opened to 0.0.0.0/0 on port 22.AdvancedWhere should application database passwords live and how do they rotate?Intermediate