Skill 2.1.3

Configure and manage scaling in AWS managed databases (for example, Amazon RDS, DynamoDB)

Key Concepts

Amazon RDS scales vertically by modifying the instance class (brief downtime, or a failover with Multi-AZ), scales reads with read replicas (up to 15 for MySQL, MariaDB and PostgreSQL; asynchronous, possibly cross-Region) and scales storage with storage autoscaling up to a maximum threshold. Aurora adds up to 15 Aurora Replicas behind a reader endpoint, with Aurora Auto Scaling adding or removing replicas on CPU or connections, and Aurora Serverless v2 scales each instance's capacity in fine-grained Aurora capacity units (ACUs) between a minimum and maximum.

DynamoDB offers on-demand capacity (pay per request, scales instantly to previously reached traffic and beyond) and provisioned capacity with auto scaling (target utilisation of read and write capacity units). Throttling can still occur on hot partitions, so partition keys must spread traffic; global secondary indexes have their own capacity.