Soru

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

A company is modernizing its application by migrating legacy APIs to Amazon API Gateway and AWS Lambda. The system consists of a high-volume telemetry ingestion endpoint and a critical payment processing endpoint, both running in the same AWS account and Region. During performance testing, a massive surge in telemetry traffic causes the payment processing Lambda function to be throttled with HTTP 429 errors. Which configuration change will guarantee that the payment processing function has dedicated execution capacity?

  1. A
    Configure a linear deployment strategy in AWS CodeDeploy to route traffic gradually to the payment processing Lambda function.
  2. B
    Rely on the regional unreserved concurrency pool and increase the account-level concurrency limit via AWS Support.
  3. Configure reserved concurrency specifically for the payment processing Lambda function.Cevap
  4. D
    Configure an AWS-managed KMS key to encrypt the environment variables and payload of the payment processing Lambda function.

Cevap

Configure reserved concurrency specifically for the payment processing Lambda function.
Configuring reserved concurrency for a Lambda function guarantees that a specific number of concurrent executions are set aside exclusively for that function. This prevents other high-volume functions (like the telemetry function) from exhausting the regional concurrency pool and throttling the critical payment processing function.

Adım Adım Çözüm

1
Analyze the cause of the throttling.
The payment processing Lambda function is being throttled because the high-volume telemetry Lambda function is consuming all available concurrency in the shared regional account pool.
By default, all functions in a Region share a common concurrency pool, and an unconfigured function can consume all executions.
2
Determine the correct Lambda configuration to isolate execution capacity.
Reserved concurrency must be allocated to the payment processing function.
Reserved concurrency reserves a dedicated portion of the account concurrency limit specifically for that function, preventing other functions from exhausting it.

Anahtar Kavram

Lambda Reserved Concurrency prevents resource exhaustion by allocating dedicated execution capacity to critical functions.
Bu soruyu puanla