Bird
0
0

Why does AWS Lambda sometimes reuse the same execution environment for multiple invocations instead of creating a new one each time?

hard📝 Conceptual Q10 of 15
AWS - Lambda
Why does AWS Lambda sometimes reuse the same execution environment for multiple invocations instead of creating a new one each time?
ATo save costs by charging only once per environment
BTo maintain user session data permanently
CTo reduce latency and improve performance by avoiding cold starts
DTo allow multiple functions to share the same memory space
Step-by-Step Solution
Solution:
  1. Step 1: Understand purpose of environment reuse

    Reusing environments avoids cold start delays, reducing latency and improving performance.
  2. Step 2: Rule out incorrect reasons

    Lambda does not maintain permanent session data; billing is per invocation, not environment; functions do not share memory space.
  3. Final Answer:

    To reduce latency and improve performance by avoiding cold starts -> Option C
  4. Quick Check:

    Environment reuse reduces cold start latency [OK]
Quick Trick: Reuse avoids cold starts, speeding up Lambda calls [OK]
Common Mistakes:
  • Thinking reuse stores session data
  • Believing billing depends on environment count
  • Assuming shared memory between functions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes