Interview Prep/AWS/S3, RDS and DynamoDB

When do you choose DynamoDB over RDS?

IntermediateScenarioS3, RDS and DynamoDB
Answer

Situation read → Known access patterns, massive scale, single-digit-millisecond latency, little ops.

What I'd do →

  1. Use DynamoDB for key-value or single-table designs like sessions, carts, IoT
  2. Use RDS or Aurora for relational joins, ad hoc queries and transactions across entities
  3. Model DynamoDB around queries, using GSIs for alternate access
  4. Prove the access patterns before committing

Why → DynamoDB is hard to retrofit with new query patterns, so choose it on certainty.

Interview tip → Say "access patterns first".

aws All AWS questions Roadmap: AWS core services

More on S3, RDS and DynamoDB