Interview Prep/AWS/Observability, Secrets, KMS and CloudFormation

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 →

  1. Metric math: 100 * m1 / m2 with m1 HTTPCode_Target_5XX_Count and m2 RequestCount
  2. Alarm: 5-minute period, threshold 2, 1 of 1 or 2 of 3 datapoints
  3. Treat missing data as notBreaching
  4. 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.

aws All AWS questions

More on Observability, Secrets, KMS and CloudFormation