
Ultimate access to all questions.
A company is developing a gaming application intended for mobile devices, which will interact with a Lambda function-based RESTful API. This application assigns a unique identifier to each API request. Given that the volume of API requests can fluctuate unpredictably at any time, there may be instances of request throttling, necessitating the application to retry certain requests. The API must efficiently manage duplicate requests to ensure consistency and prevent data loss.
Which of the following solutions would you recommend to meet these requirements?
A
Persist the unique identifier for each request in a DynamoDB table. Change the Lambda function to send a client error response when the function receives a duplicate request
B
Persist the unique identifier for each request in an ElastiCache for Memcached cache. Change the Lambda function to check the cache for the identifier before processing the request
C
Persist the unique identifier for each request in an RDS MySQL table. Change the Lambda function to check the table for the identifier before processing the request
D
Persist the unique identifier for each request in a DynamoDB table. Change the Lambda function to check the table for the identifier before processing the request