Interview Prep/Monitoring & Observability/Cloud Monitoring, Incidents and Migrations

How do you monitor a fleet of AWS Lambda functions?

BeginnerScenarioCloud Monitoring, Incidents and Migrations
Answer

Situation read → No servers to watch; focus on invocations, errors, throttles and duration.

What I'd do →

  1. Alarms on Errors / Invocations ratio, Throttles > 0, Duration p99 against the timeout, and IteratorAge for stream consumers.
  2. Watch account-level ConcurrentExecutions against the concurrency quota.
  3. Track cold starts from the REPORT log line (Init Duration) with Logs Insights:
    filter @type = "REPORT" and ispresent(@initDuration)
    | stats count() as coldStarts, avg(@initDuration) by bin(1h)
    
  4. Add tracing with ADOT Lambda layer or X-Ray active tracing; structured JSON logs with request IDs.
  5. Set log group retention.

Why → Most Lambda incidents are throttling, timeouts or downstream failures.

Interview tip → Mention DLQs or on-failure destinations and alarming on their depth.

All Monitoring & Observability questions

More on Cloud Monitoring, Incidents and Migrations