Volume 5 · Chapter 10 — Storage and Databases

RDS and Aurora in Depth

Goutham Mayaluri 4 min read AWSCloudRDSAuroraStorageDatabases

10.1 Introduction

Relational databases carry deep exam content beyond Multi-AZ and read replicas: backup and recovery mechanics, the difference between Multi-AZ instance and cluster deployments, cross-Region replicas, RDS Proxy, and Aurora’s distinctive features (cluster endpoints, Serverless v2, Global Database, Backtrack). This chapter provides that depth for designing resilient, scalable relational data tiers.

10.2 Backups, Snapshots, and Point-in-Time Recovery

RDS provides two backup mechanisms.Automated backupsrun daily and capture transaction logs, enabling**point-in-time recovery (PITR)**to any second within the retention window (up to 35 days) - the way to recover from corruption at a known time.Manual DB snapshotsare user-triggered, retained until you delete them, and copyable cross-Region/account for DR and sharing. Restoring any backup creates anewdatabase instance. Storage is encrypted with KMS (enable at creation; to encrypt an existing unencrypted instance you snapshot, copy with encryption, and restore). Knowing PITR versus manual snapshots, the 35-day window, and that restores create new instances are tested details.

10.3 Multi-AZ Instance vs Multi-AZ Cluster; Read Replicas

RDS high availability has two forms.Multi-AZ instance deploymentmaintains a single synchronous standby in another AZ for automatic failover - the standby serves no traffic (availability only).Multi-AZ DB cluster deployment(newer) has one writer andtwo readable standbysacross three AZs, giving both failover and read capacity with lower failover time.Read replicasare asynchronous copies that serve read traffic to scale reads (up to 15 for Aurora, 5 for RDS engines), can becross-Region(for DR and local reads) and even promoted to standalone databases. The exam distinctions: Multi-AZ = availability (sync standby), read replicas = read scaling (async, can be cross-Region); the newer Multi-AZ cluster provides both.RDS Proxypools and shares database connections to handle many short-lived connections (e.g. from Lambda), improving scalability and failover speed.

flowchart TB
  App[Application] --> W[(Writer / Primary)]
  W -.synchronous.-> SB[(Multi-AZ standby - failover only)]
  W -.asynchronous.-> RR1[(Read replica - scale reads)]
  W -.async cross-Region.-> RRX[(Cross-Region replica - DR/local reads)]
  Proxy[RDS Proxy] --> W
  Lam[Lambda / many connections] --> Proxy

10.4 Aurora Architecture and Endpoints

Aurorare-architects MySQL/PostgreSQL-compatible databases with a distributed storage layer that auto-grows and replicates datasix ways across three AZs, with self-healing storage and up to 15 low-latency read replicas sharing that storage. Aurora exposesendpoints: thecluster (writer) endpoint(points to the current primary for writes), thereader endpoint(load-balances across read replicas), andcustom endpoints(a subset of instances). Failover promotes a replica quickly. This endpoint model is how applications connect for writes versus scaled reads, and the six-way storage replication is why Aurora’s durability and failover exceed standard RDS.

10.5 Aurora Serverless, Global Database, and Backtrack

Aurora’s advanced capabilities are exam favourites.Aurora Serverless v2auto-scales capacity in fine-grained increments with load (down to a minimum), ideal for variable or unpredictable workloads without managing instance sizes.Aurora Global Databasereplicates to up to five secondary Regions with typically sub-second replication lag, enabling low-latency global reads and fast cross-Region DR (promote a secondary Region in about a minute) - the answer for global relational data or a very low cross-Region RTO/RPO.Backtrack(Aurora MySQL) rewinds the database to a previous point in time in place, quickly, without restoring a backup - for recovering from an errant change.Aurora replicasalso serve as failover targets. These features distinguish Aurora for demanding, global, or highly-available relational workloads.

10.6 Banking Production Scenario

A bank runs its core ledger on Aurora PostgreSQL: six-way storage across three AZs, the writer endpoint for transactions and the reader endpoint load-balancing many balance/statement reads across replicas, with automatic failover. Aurora Global Database replicates to the DR Region for sub-second lag and ~1-minute failover, meeting a stringent RTO/RPO. Automated backups give 35-day PITR and Backtrack allows quick in-place recovery from a bad migration. A variable internal analytics database uses Aurora Serverless v2 to scale with demand. Lambda-based services connect through RDS Proxy to avoid exhausting connections. All storage is KMS-encrypted with multi-Region keys so the DR replica is decryptable. This complete relational design is professional-level data architecture.

10.7 Chapter Revision Notes

  • Automated backups enable PITR (to any second, up to 35 days); manual snapshots persist until deleted and copy cross-Region/account; restores create new instances.
  • Multi-AZ instance = sync standby for failover (no reads); Multi-AZ cluster = writer + 2 readable standbys (failover + reads); read replicas = async read scaling, can be cross-Region and promoted.
  • RDS Proxy pools connections (great for Lambda) and speeds failover.
  • Aurora: storage six-way across 3 AZs, up to 15 replicas; endpoints = cluster/writer (writes), reader (load-balanced reads), custom (subset).
  • Aurora Serverless v2 (auto-scaling capacity), Global Database (≤5 secondary Regions, sub-second lag, ~1-min failover), Backtrack (in-place rewind).