AWS Database 面试高频

AWS Database Interview Guide

AWS Database Interview Guide

databaseinterviewRDSDynamoDB
Last organized

Choose RDS, Aurora, DynamoDB, and caching services through data model, access pattern, scaling, availability, and recovery.

Start with access patterns

Database selection begins with data model, query patterns, consistency, latency, throughput, scaling, and recovery objectives, not with a service name.

RequirementCandidate
Relational model, SQL, joinsRDS / Aurora
Key-value/document, single-digit-ms latency, horizontal scaleDynamoDB
Cassandra CQL compatibilityKeyspaces
MongoDB-compatible documentsDocumentDB
Graph relationshipsNeptune
Time seriesTimestream
Microsecond cache, sessions, leaderboardElastiCache

Frequent questions

  • RDS Multi-AZ is for availability, not read scale; read replicas scale reads and can be promoted.
  • Aurora’s writer endpoint handles writes; its reader endpoint is a common entry for reads.
  • RDS Proxy pools connections for Lambda connection storms; it is not a query cache.
  • A DynamoDB partition key controls distribution; GSIs add access patterns, while DAX caches eventually consistent reads.
  • Cache-aside and write-through need an invalidation strategy, TTL, and stampede protection.
  • Backup/PITR, Multi-AZ, and cross-Region DR are different capabilities.

Answer structure

Data model → access pattern → capacity and partitioning → HA → backup/DR → security → monitoring and cost.

Remember

Describe data and queries before naming a service. Availability, read scaling, caching, and backup are four separate problems.