Interview practice question
Lambda triggering itself in a loop
Data Engineering · AWS Lambda · Beginner
After deploying an S3-triggered Lambda, the bill and invocation count suddenly spike. You find it's writing output into the same bucket that triggers it. What do you do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Stop the loop immediately, for example disable the trigger or set concurrency to zero.
- Write output to a different bucket or prefix.
- Add prefix or suffix filters to the trigger.
- Check recursive loop detection and add budget alarms.
- Clean up duplicate outputs.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.