Interview practice question
Function slow and using little memory
Data Engineering · AWS Lambda · Beginner
A Lambda configured with 128 MB of memory takes 40 seconds to process each file. How would you improve it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Low memory also means low CPU.
- Increase memory to get more CPU.
- Test different sizes with Power Tuning.
- Compare cost: shorter duration can offset higher memory.
- Optimize code if still slow.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.