Topic 1 Question 450
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?
Configure the Lambda functions to use reserved concurrency that is equal to the last month’s average number of concurrent invocations.
Add a retry mechanism with exponential backoff to the call to Parameter Store.
Request a service quota increase for Parameter Store GetParameter API operations to match the expected usage of the Lambda functions.
Add an SSM dynamic reference as an environment variable to the Lambda functions resource in the CloudFormation templates.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: D
D is correct The application experiences rate limiting because Lambda calls the Parameter Store every time the function is run. This means that as the number of Lambda calls increases, each call also triggers a request from the Parameter Store, which increases the number of requests and leads to exceeding the limit.
Using an SSM dynamic reference as an environmental variable in CloudFormation will allow Lambda to load the value only once on startup, and there will be no need to request the value of the variable from the Parameter Store on each call. This way, the value is obtained directly from the pre-loaded environmental variable instead of sending additional requests.
👍 3Saudis2024/11/05 - 正解だと思う選択肢: D
D is answer
👍 1bp072025/01/12
シャッフルモード