examerioLogin
← Cloud & DevOpsQuestion 32 of 50

Do variables persist across AWS Lambda invocations?

πŸ“˜ Explanation

Lambda reuses execution environments for performance, so variables declared outside the handler can persist between invocations, which is handy for caching but risky if treated as reliable state. There's no error at deploy time for outer-scope variables, no guaranteed global state manager, and environments aren't recreated on every call, so the other options are incorrect.

Related questions

← PreviousNo login needed