Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing

Question

Your Lambda function initializes a lot of external dependencies such as database connections and HTTP endpoints, which are required for data processing. It also fetches static data with a size of 20 MB from a third-party provider over the Internet every time the function is invoked. This adds significant time in the total processing, which greatly affects the performance of their serverless application. Which of the following should you do to improve the performance of your function?
  • Increase the CPU allocation of the function by submitting a service limit increase ticket to AWS.
  • Allocate more memory to your function.
  • Use unreserved concurrency for your function.
  • Store the external files in the "/tmp" directory of the execution context which you can reuse for succeeding invocations.
Answer- D