DVA-C02 · Question #2
A developer is creating an application that will be deployed on IoT devices. The application will send data to a RESTful API that is deployed as an AWS Lambda function. The application will assign eac
The correct answer is B. Create an Amazon DynamoDB table. Store the unique identifier for each request in the table.. The resolution is to make the Lambda function idempotent. https://repost.aws/knowledge-center/lambda-function-idempotent https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
Question
A developer is creating an application that will be deployed on IoT devices. The application will send data to a RESTful API that is deployed as an AWS Lambda function. The application will assign each API request a unique identifier. The volume of API requests from the application can randomly increase at any given time of day. During periods of request throttling, the application might need to retry requests. The API must be able to handle duplicate requests without inconsistencies or data loss. Which solution will meet these requirements?
Options
- ACreate an Amazon RDS for MySQL DB instance. Store the unique identifier for each request in a
- BCreate an Amazon DynamoDB table. Store the unique identifier for each request in the table.
- CCreate an Amazon DynamoDB table. Store the unique identifier for each request in the table.
- DCreate an Amazon ElastiCache for Memcached instance. Store the unique identifier for each
How the community answered
(18 responses)- A17% (3)
- B67% (12)
- C11% (2)
- D6% (1)
Explanation
The resolution is to make the Lambda function idempotent. https://repost.aws/knowledge-center/lambda-function-idempotent https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
Community Discussion
No community discussion yet for this question.