What should the Developer do to reduce the cold start time?
(Choose two.)
Add the Spring Framework to the project and enable dependency injection.
Reduce the deployment package by including only needed modules from the AWS SDK for Java.
Increase the memory allocation setting for the Lambda function.
Increase the timeout setting for the Lambda function.
Change the Lambda invocation mode from synchronous to asynchronous.
Explanations:
Adding the Spring Framework and enabling dependency injection introduces additional overhead, which would likely increase the cold start time, rather than reduce it.
Reducing the deployment package by including only the necessary AWS SDK modules minimizes the size of the package, which in turn reduces the cold start time.
Increasing the memory allocation for a Lambda function can reduce the cold start time by providing more CPU resources, leading to faster initialization.
Increasing the timeout setting does not affect the cold start time; it only defines how long the function can run, not how quickly it initializes.
Changing the invocation mode does not affect cold start times. Synchronous and asynchronous modes are related to how the function is triggered, not the initialization time.