Scenario: Your team is experiencing high latency in AWS Lambda functions due to repeated initialization of resources. How would you redesign the architecture to leverage resource reuse effectively?

  • Create new resources for each invocation
  • Increase the function's memory allocation
  • Initialize resources outside the handler function
  • Use Amazon S3 for resource storage
Initializing resources outside the handler function allows them to be reused across multiple invocations, effectively reducing high latency caused by repeated initializations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *