SAP-C02 · Question #315
A utility company wants to collect usage data every 5 minutes from its smart meters to facilitate time-of-use metering. When a meter sends data to AWS, the data is sent to Amazon API Gateway…
The correct answer is A. Increase the write capacity units to the DynamoDB table. B. Increase the memory available to the Lambda functions. There are 2 issues here. Issue 1 - Lambda function started taking more time when the load increases. Fix : Increase Lambda CPU by increasing the memory. Issue 2 - TooManyRequetsException from DynamoDB. Fix: Increate WCU of DynamoDB Since this change has already passed the pilot…
Question
A utility company wants to collect usage data every 5 minutes from its smart meters to facilitate time-of-use metering. When a meter sends data to AWS, the data is sent to Amazon API Gateway, processed by an AWS Lambda function and stored in an Amazon DynamoDB table. During the pilot phase, the Lambda functions took from 3 to 5 seconds to complete. As more smart meters are deployed, the Engineers notice the Lambda functions are taking from 1 to 2 minutes to complete. The functions are also increasing in duration as new types of metrics are collected from the devices. There are many ProvisionedThroughputExceededException errors while performing PUT operations on DynamoDB, and there are also many TooManyRequestsException errors from Lambda. Which combination of changes will resolve these issues? (Choose two.)
Options
- AIncrease the write capacity units to the DynamoDB table.
- BIncrease the memory available to the Lambda functions.
- CIncrease the payload size from the smart meters to send more data.
- DStream the data into an Amazon Kinesis data stream from API Gateway and process the data in
- ECollect data in an Amazon SQS FIFO queue, which triggers a Lambda function to process each
How the community answered
(44 responses)- A80% (35)
- C7% (3)
- D2% (1)
- E11% (5)
Explanation
There are 2 issues here. Issue 1 - Lambda function started taking more time when the load increases. Fix : Increase Lambda CPU by increasing the memory. Issue 2 - TooManyRequetsException from DynamoDB. Fix: Increate WCU of DynamoDB Since this change has already passed the pilot phase and the issue is happening in the production workload, the simple fix should be considered.
Community Discussion
No community discussion yet for this question.