educative.io

RDS vs DynamoDB for storing session data

Hi,
For the following question, the options A and C are different only wrt to the datastore - DynamoDB vs RDS respectively.

From a cost perspective, RDS is cheaper. Then why isn’t C the correct answer?

An architect is designing a serverless application that will accept images uploaded by users from around the world. The application will make API calls to backend services and save the user’s session state data to a database.

Which combination of services would provide a solution that is cost effective while delivering the least latency?

Hi @Vijay4

There’s not much cost difference between RDS and DynamoDB. DynamoDB is preferred worldwide because it’s faster. Since RDS is not as persistent as DynamoDB and also least latency is required, DynamoDB is preferred.

If you still face any queries, feel free to ask.