Q31 — AWS DVA-C02 Ch.1

Question 31 of 100 | ← Chapter 1

A developer is investigating an issue in an integration environment where an application consumes messages from an Amazon Simple Queue Service (Amazon SQS) queue and an AWS Lambda function processes those messages. The Lambda function invokes a third-party service’s API. Application usage has increased significantly. The third-party API frequently returns HTTP 429 Too Many Requests errors. These errors prevent successful processing of many messages. How should the developer resolve this issue?

Correct Answer: D. Configure maximum concurrency on the SQS event source based on the third-party service’s documented rate limits.

Explanation

Configuring maximum concurrency on the SQS event source ensures that Lambda invocations are throttled to respect the third-party service’s documented rate limits, preventing HTTP 429 errors. This approach directly controls the rate of concurrent Lambda executions triggered by SQS, offering precise, scalable, and native integration-level throttling.