DVA-C02 · Question #89
DVA-C02 Question #89: Real Exam Question with Answer & Explanation
Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #89. The question stem and answer options stay visible for context.
Question
A developer created an AWS Lambda function that accesses resources in a VPC. The Lambda function polls an Amazon Simple Queue Service (Amazon SQS) queue for new messages through a VPC endpoint. Then the function calculates a rolling average of the numeric values that are contained in the messages. After initial tests of the Lambda function, the developer found that the value of the rolling average that the function returned was not accurate. How can the developer ensure that the function calculates an accurate rolling average?
Options
- ASet the function's reserved concurrency to 1. Calculate the rolling average in the function. Store
- BModify the function to store the values in Amazon ElastiCache. When the function initializes, use
- CSet the function's provisioned concurrency to 1. Calculate the rolling average in the function.
- DModify the function to store the values in the function's layers. When the function initializes, use
Unlock DVA-C02 to see the answer
You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.