1. What is concurrency in AWS Lambda?
Answer: Concurrency in AWS Lambda is the number of requests that a function can handle at the same time.
2. What is reserved concurrency in AWS Lambda?
Answer: Reserved concurrency is the number of concurrent executions that are reserved for a specific function. It guarantees the maximum number of concurrent instances for the function and splits the pool of available concurrency into subsets.
3. What is provisioned concurrency in AWS Lambda?
Answer: Provisioned concurrency initializes a requested number of execution environments so that they are prepared to respond immediately to a function's invocations. It ensures that all requests are served by initialized instances with low latency and runs with consistent start-up latency.
4. What is the difference between SnapStart and provisioned concurrency in AWS Lambda?
Answer: SnapStart is a performance optimization that helps improve startup performance for latency-sensitive applications by up to 10x at no extra cost. Provisioned concurrency keeps functions initialized and ready to respond in double-digit milliseconds but incurs charges to the AWS account.
5. Can a function use both SnapStart and provisioned concurrency at the same time in AWS Lambda?
Answer: No, a function cannot use both SnapStart and provisioned concurrency at the same time in AWS Lambda.