AWS Database 面试高频

AWS Database 面接速習

AWS Database Interview Guide

databaseinterviewRDSDynamoDB
最終整理

Data Model、Access Pattern、Scaling、Availability、Recovery で RDS、Aurora、DynamoDB、Cache を選びます。

Access Pattern から始める

Database 選択は Data Model、Query Pattern、Consistency、Latency、Throughput、Scaling、Recovery Objective から始めます。

要件候補
Relational、SQL、JoinRDS / Aurora
Key-value / Document、1 桁 ms、水平 ScaleDynamoDB
Cassandra CQL 互換Keyspaces
MongoDB 互換 DocumentDocumentDB
GraphNeptune
Time SeriesTimestream
Microsecond Cache、Session、LeaderboardElastiCache

頻出ポイント

  • RDS Multi-AZ は HA、Read Replica は Read Scaling です。
  • Aurora Writer Endpoint は書き込み、Reader Endpoint は一般的な読み取り入口です。
  • RDS Proxy は Lambda の Connection Storm を Pooling で緩和し、Query Cache ではありません。
  • DynamoDB Partition Key は分散を決め、GSI は Access Pattern、DAX は Eventually Consistent Read の Cache です。
  • Cache-aside / Write-through には Invalidation、TTL、Stampede 対策が必要です。
  • Backup / PITR、Multi-AZ、Cross-Region DR は別の能力です。

回答構造

Data Model → Access Pattern → Capacity / Partition → HA → Backup / DR → Security → Monitoring / Cost。

要点

Service 名より先に Data と Query を説明し、HA、Read Scale、Cache、Backup を分けます。