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 →
- Alarms on
Errors/Invocationsratio,Throttles > 0,Durationp99 against the timeout, andIteratorAgefor stream consumers. - Watch account-level
ConcurrentExecutionsagainst the concurrency quota. - Track cold starts from the
REPORTlog line (Init Duration) with Logs Insights:filter @type = "REPORT" and ispresent(@initDuration) | stats count() as coldStarts, avg(@initDuration) by bin(1h) - Add tracing with ADOT Lambda layer or X-Ray active tracing; structured JSON logs with request IDs.
- 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.
More on Cloud Monitoring, Incidents and Migrations
A new AWS workload uses EC2, an ALB and RDS, with only CloudWatch available. Which alarms do you create first?BeginnerThe 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?IntermediateYour 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