
Ultimate access to all questions.
An AWS Lambda function in a VPC polls an SQS queue via a VPC endpoint to calculate a rolling average of numeric message values. The developer encounters inaccuracies in the calculated average. What is the best approach to ensure accurate calculations?
A
Limit function concurrency to one and use ElastiCache to store and calculate the rolling average.
B
Utilize ElastiCache to maintain message values for initializing and calculating the rolling average.
C
Set provisioned concurrency to one and use ElastiCache for rolling average storage and calculation.
D
Store message values in Lambda layers for initializing and calculating the rolling average.