Complete the code to specify the runtime environment for an AWS Lambda function.
Runtime = "[1]"
The runtime environment defines the language and version your Lambda function uses. Here, nodejs14.x is a valid and common runtime.
Complete the code to set the memory size for an AWS Lambda function.
MemorySize = [1]MemorySize is set in megabytes. 512 MB is a common balanced choice for Lambda functions.
Fix the error in the handler configuration for an AWS Lambda function.
Handler = "[1]"
The handler is specified as fileName.functionName. Here, index.handler means the handler function inside the index file.
Fill both blanks to configure the timeout and environment variables for an AWS Lambda function.
Timeout = [1] Environment = {"Variables": {"STAGE": "[2]"}}
Timeout is set in seconds; 30 seconds is a common timeout. Environment variables are key-value pairs; here, STAGE is set to dev to indicate the development environment.
Fill all three blanks to define the AWS Lambda function's role, runtime, and handler.
Role = "[1]" Runtime = "[2]" Handler = "[3]"
The Role is the IAM role ARN that grants permissions. The Runtime specifies the language version, here Python 3.9. The Handler points to the function inside the code file.