StudyToCert

All certifications / Developer Associate / Lessons

AWS Certified Developer – Associate DVA-C02 · Domain 4: Troubleshooting and Optimization

Common Lambda errors: throttling (429), timeouts, AccessDenied from the execution role, malformed proxy responses (502), API Gateway 504 integration timeouts

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

When a Lambda function sits behind an API, things can go wrong in a few typical ways, and each one shows up as its own error number. Think of a busy sandwich shop. A 429 means "too many customers, please wait": there are not enough workers free, so new orders are turned away. A timeout means a worker took longer than the time limit allowed. AccessDenied means the worker tried to open a cupboard they do not have the key for. A 502 means the sandwich came out wrapped wrong, so the counter could not hand it over. A 504 means the counter waited 29 seconds for the sandwich and then gave up on the customer, even though the kitchen kept cooking. Knowing which number means what tells you exactly where to look.

It is 2 a.m. and your phone buzzes. The mobile app for Harbor Credit Union is showing "Something went wrong" to members trying to check balances. Priya, the on-call support lead, pastes three screenshots into the incident channel: one says 502 Bad Gateway, one says 504 Gateway Timeout, and one says 429 Too Many Requests. All three come from the same API, and all three point at Lambda functions you deployed last week. Priya asks the obvious question: is this one problem or three? You open CloudWatch and realize that each of those numbers is a different clue, pointing at a different fix. Which one do you chase first?

Many troubleshooting questions on the exam describe a symptom and an error code, then ask for the fix. If you can map each common AWS Lambda and Amazon API Gateway error to its cause, these become some of the easiest points available. The five errors to know are throttling (HTTP 429), function timeouts, AccessDenied from the execution role, malformed proxy responses (HTTP 502) and API Gateway integration timeouts (HTTP 504).

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 5 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Developer Associate for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Developer Associate study plan