Skill 3.3.2

Designing database architectures

Key Concepts

RDS Multi-AZ instance keeps one synchronous standby for failover (typically 60-120 seconds). RDS Multi-AZ DB cluster (MySQL, PostgreSQL) has a writer and two readable standbys with faster failover. Aurora separates compute from a distributed storage layer (six copies across three AZs) for fast failover, quick replicas, cloning and backtracking.

Aurora Global Database replicates to up to 10 secondary Regions with typically under one second of lag for global reads and DR; write forwarding lets secondary Regions send writes to the primary. DynamoDB global tables provide multi-Region, multi-active replication.

Add RDS Proxy for connection pooling, ElastiCache for hot data, and design DynamoDB tables around access patterns (partition keys with high cardinality, GSIs for alternate queries, single-table designs). Storage: gp3 or io2 Provisioned IOPS for RDS and storage autoscaling to avoid running out of space.