Lesson 04Build

Tuning memory and timeout

More memory also means more CPU — and a timeout set too short kills a slow response before it ever finishes.

Two numbers control how much room a function has to do its job: how much memory it gets, and how long it's allowed to run before Lambda kills it. Both default to modest values — 128 MB and 3 seconds — fine for a trivial handler, tight for anything doing real work.

Locked

Complete the previous step first

This exercise builds on Setting log retention — run synth & validate there until every assertion passes, then this code will unlock.

Go to Setting log retention