Soru

Zorluk: KolayModernizing Workloads with Serverless Architectures (Lambda and API Gateway)

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?

  1. A
    Configure the Lambda function to use an AWS-managed KMS key to encrypt environment variables in order to isolate execution environments and throttle concurrent requests.
  2. Configure reserved concurrency on the high-volume Lambda function to limit its maximum concurrent executions and guarantee capacity for other functions.Cevap
  3. C
    Deploy the Lambda function in a single private subnet using a single NAT Gateway to restrict outbound traffic and manage the invocation rate.
  4. D
    Apply a rolling update deployment strategy with AWS CodeDeploy to restrict traffic during updates and automatically handle concurrency issues.

Cevap

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.

Adım Adım Çözüm

1
Analyze the impact of bursty Lambda function traffic on the AWS account's regional concurrency pool.
Uncapped bursty functions can consume the entire shared regional concurrency pool, causing other functions in the account to be throttled.
By default, all Lambda functions in an AWS account share the regional concurrency limit (usually 10001{}000).
2
Determine the mechanism to limit the maximum executions of a specific function and isolate its concurrency impact.
Reserved concurrency limits the maximum executions for a specific function and reserves a portion of the pool specifically for it.
Setting reserved concurrency prevents the function from scaling past the designated limit and ensures other functions always have execution capacity.

Anahtar Kavram

AWS Lambda Concurrency Management
Tahmini Süre:1m 0s
Bu soruyu puanla