Which change will reduce the Lambda function’s runtime duration?
Configure Lambda to run the function on an Amazon EC2 burstable instance type.
Configure Lambda to run the function on an Amazon EC2 instance type that is recommended for high performance computing (HPC) workloads.
Configure Lambda to run the function with a larger reserved concurrency value.
Configure Lambda to run the function with a larger memory value.
Explanations:
AWS Lambda does not allow direct configuration of specific EC2 instance types like burstable instances. Lambda functions are abstracted from the underlying EC2 infrastructure, and performance improvements are based on resource allocation such as memory and concurrency.
AWS Lambda does not allow configuration of specific EC2 instance types for high-performance computing workloads. Lambda abstracts the underlying infrastructure, and performance is managed by adjusting memory and runtime settings rather than choosing EC2 instance types.
Increasing reserved concurrency affects the number of concurrent Lambda executions, not the duration of individual executions. It does not directly influence the runtime or efficiency of a single invocation.
Allocating more memory to a Lambda function increases the CPU power available to it, which can reduce the execution time. Lambda provides more compute resources (CPU) as the memory allocation increases, leading to potentially faster execution for CPU-intensive tasks.