What should the developer do to meet this requirement?
Increase the runtime engine version.
Increase the timeout.
Increase the number of Lambda layers.
Increase the memory.
Explanations:
Increasing the runtime engine version may provide access to new features or improvements but does not directly affect the CPU power allocated to the Lambda function. CPU power is tied to the memory allocation.
Increasing the timeout allows the Lambda function to run longer but does not provide additional CPU resources. The performance of the function is determined by the amount of memory and CPU allocated, not the execution time.
Increasing the number of Lambda layers allows for additional libraries or code to be included in the function, but it does not affect the CPU power allocated to the Lambda function. Layers do not provide additional resources.
Increasing the memory allocated to a Lambda function also increases the CPU power available. AWS Lambda allocates CPU power proportional to the amount of memory configured, so by increasing memory, the developer effectively increases the CPU resources for executing complex code.