Lesson 6 of 30
The Frontend Practices track covers observability as a principle — logs, metrics, traces, the three pillars. This lesson is the concrete AWS tooling underneath: what CloudWatch actually collects, and how to turn 'something is wrong' into 'here's exactly what and when.'
12 min read
Every option explains itself — why the right one is right, and why each wrong one is wrong. Miss one and it comes back later on a spaced-repetition schedule.
Question 1 of 3
A CloudWatch alarm on a Lambda function's error rate is configured to require 3 out of 3 evaluation periods breaching the threshold before firing, instead of just 1. Why?
Hints without spoilers, and a plain explanation of why a wrong answer was wrong — answered only from this lesson. Free account, no card.
Sign up freeWhat interviewers actually ask about this, and what a strong answer has to cover.
A strong answer covers
Likely follow-ups
CloudWatch is AWS's monitoring service, and almost everything else on AWS ships data into it automatically, in three shapes:
console.log output here automatically, with zero configuration.AWS/Lambda, AWS/RDS) and broken down by dimensions (which specific function, which specific database).Errors metric crosses its threshold and fires — the first signal something is wrong, often before a single user complains.fields @timestamp, @message | filter @message like /ERROR/ | sort @timestamp desc."How would you find out why a Lambda function started failing at 2am?" tests whether a candidate has a concrete answer — check the alarm that fired, narrow the log group to that time window with Logs Insights, find the stack trace — versus a vague "I'd look at the logs," which doesn't say where, how, or in what order.