A simple JSON-transform Lambda ships a 250 MB deployment package, slowing updates and cold starts. What should the developer do?
Select an answer to reveal the explanation.
Short Explanation
Hauling a 250 MB suitcase for a JSON tweak is why deploys crawl and cold starts sting. Trim unused libs, and park shared heavyweight code in layers. Maxing memory or stuffing zips into DynamoDB does not fix a fat package.
Full Explanation
Large Lambda deployment packages increase upload time and can worsen cold-start behavior. Best practice is to remove unused dependencies, keep the function package lean, and place shared libraries in Lambda layers when appropriate. Maximizing memory alone, multi-Region manual zip copies, or using DynamoDB as an artifact store do not address package hygiene.