Study. uk . com
  1. Home
  2. All questions
  3. Question 410

AWS Certified Solutions Architect study material · question 410 of 500

Where does code written outside a Lambda function's main handler run?

  1. Only when provisioned concurrency is enabled
  2. After the handler returns, during teardown
  3. During the Init phase, not on every invocation
  4. At the start of every invocation
Show the answer

Answer: C. During the Init phase, not on every invocation

Initialization code runs once when the execution environment is created, which is why reused environments skip it.

Source: Understanding Lambda function scaling (Amazon Web Services) — Understanding and visualizing concurrency

Challenge yourself on this topic → Study as cards