
Answer-first summary for fast verification
Answer: Implement AWS Step Functions to manage API call frequency with a Wait state for retries.
The correct answer is A. Using AWS Step Functions to manage API call frequency with a Wait state for retries ensures that the function respects the rate limits imposed by the third-party service. This approach is operationally efficient because Step Functions can orchestrate the Lambda function invocations, handle errors, and introduce necessary delays without adding unnecessary complexity. While other options provide some level of rate control, they either introduce additional complexity or do not adequately address the issue of exceeding both the minute and daily rate limits.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A developer migrated a legacy application to AWS Lambda, which uses a third-party API for monthly data retrieval and report generation. With new API call limits, how can the application be refactored for operational efficiency?
A
Implement AWS Step Functions to manage API call frequency with a Wait state for retries.
B
Utilize Amazon SQS to queue API calls, adjusting Lambda polling to respect API limits.
C
Employ CloudWatch Logs and alarms to monitor and restrict Lambda invocations exceeding API thresholds.
D
Adopt Amazon Kinesis Data Firehose for batching API calls to S3, triggering Lambda for processing.
No comments yet.