A company is modernizing its application by migrating a background processing workload to AWS Lambda. One specific Lambda function receives a high volume of bursty, unpredictable traffic. The solutions architect needs to ensure that this function does not consume the entire account-level concurrent execution pool, which would throttle other critical production functions in the same AWS region.
Which of the following actions should the solutions architect take to resolve this issue?
- AConfigure the Lambda function to use an AWS-managed KMS key to encrypt environment variables in order to isolate execution environments and throttle concurrent requests.
- Configure reserved concurrency on the high-volume Lambda function to limit its maximum concurrent executions and guarantee capacity for other functions.Answer
- CDeploy the Lambda function in a single private subnet using a single NAT Gateway to restrict outbound traffic and manage the invocation rate.
- DApply a rolling update deployment strategy with AWS CodeDeploy to restrict traffic during updates and automatically handle concurrency issues.
Answer
Configure reserved concurrency on the high-volume Lambda function to limit its maximum concurrent executions and guarantee capacity for other functions.
Configuring reserved concurrency on the high-volume function restricts its maximum concurrency to a set value, preventing it from exhausting the regional account-level concurrency pool. It also reserves that capacity for the function, protecting both the bursty function and other critical functions from mutual throttling.
Step-by-Step Solution
Key Concept
AWS Lambda Concurrency Management
Estimated Time:1m 0s