DVA-C02 · Question #464
A developer has an application that uses AWS Lambda functions and AWS CloudFormation templates. Usage of the application has increased. As a result, the Lambda functions are encountering rate limit…
The correct answer is D. Add an SSM dynamic reference as an environment variable to the Lambda functions resource in. An SSM dynamic reference allows Lambda functions to retrieve values from AWS Systems Manager Parameter Store only once during deployment, rather than on every invocation. Since the parameter changes only during new deployments, this solution avoids repeated calls to Parameter…
Question
A developer has an application that uses AWS Lambda functions and AWS CloudFormation templates. Usage of the application has increased. As a result, the Lambda functions are encountering rate limit errors when they retrieve data. The Lambda functions retrieve an advanced parameter from AWS Systems Manager Parameter Store on every call. The parameter changes only during new deployments. Because the application's usage is unpredictable, the developer needs a way to avoid the rate limiting. Which solution will meet these requirements MOST cost-effectively?
Options
- AConfigure the Lambda functions to use reserved concurrency that is equal to the last month's
- BAdd a retry mechanism with exponential backoff to the call to Parameter Store.
- CRequest a service quota increase for Parameter Store GetParameter API operations to match the
- DAdd an SSM dynamic reference as an environment variable to the Lambda functions resource in
How the community answered
(36 responses)- A22% (8)
- B6% (2)
- C14% (5)
- D58% (21)
Explanation
An SSM dynamic reference allows Lambda functions to retrieve values from AWS Systems Manager Parameter Store only once during deployment, rather than on every invocation. Since the parameter changes only during new deployments, this solution avoids repeated calls to Parameter Store and thereby prevents rate limiting. It's also a cost-effective solution because it minimizes the number of Parameter Store API calls without needing to reserve concurrency or request a quota increase.
Community Discussion
No community discussion yet for this question.