Aurora Serverless

Difficulty: Intermediate

Question

What is Aurora Serverless, how does it scale, and when is it a good fit compared with provisioned Aurora?

Answer

Aurora Serverless is an on-demand capacity mode for Amazon Aurora (MySQL- and PostgreSQL-compatible) where the database automatically scales compute up and down based on load, and you pay for the capacity used per second instead of picking a fixed instance size. The current version, Aurora Serverless v2, scales in fine-grained steps within seconds and can now scale down to zero and pause when idle.

How capacity works

Capacity is measured in Aurora Capacity Units (ACUs). One ACU is roughly 2 GiB of memory with matching CPU and networking.

  • You set a minimum and maximum ACU per cluster (the maximum can go up to 256 ACUs).
  • Aurora adjusts capacity in increments as small as 0.5 ACU, based on CPU, memory and connection pressure, without dropping connections.
  • Since late 2024, the minimum can be 0 ACUs: after a period of inactivity the instance auto-pauses and you pay only for storage. The first connection after a pause resumes the instance, which adds a noticeable delay to that request.

Storage is the normal Aurora distributed storage layer: six copies across three AZs, growing automatically.

v1 vs v2

Aurora Serverless v1 scaled in coarse doubling steps, had to find a quiet point to scale, and lacked features like read replicas and Global Database. AWS ended support for v1 in 2025, so new answers should be about v2.

v2 is effectively a normal Aurora instance class (db.serverless), so it supports:

  • Multi-AZ with readers, and mixed clusters where some instances are provisioned and others serverless.
  • Aurora Global Database, RDS Proxy, Performance Insights, IAM authentication.
  • The RDS Data API (HTTP-based SQL), handy from Lambda.

When it fits, and when it does not

ScenarioServerless v2Provisioned
Spiky or unpredictable traffic (flash sales, exam results day)Strong fitMust over-provision
Dev, test and preview environments idle most of the dayStrong fit with scale to zeroPaying 24x7
Many tenant databases with varied loadGood fitHard to size each
Steady, high, predictable loadOften more expensive per unitCheaper, especially with Reserved Instances
Latency-critical first request after idleAvoid auto-pauseAlways warm

Per ACU-hour, serverless costs more than equivalent provisioned capacity, so the savings come from not paying for idle peaks.

Practical gotchas

  • Set the minimum ACU high enough for your buffer pool. If min is too low, the cache shrinks during quiet periods and the first burst after that is slow while data is re-read from storage.
  • Connection limits scale with max capacity; use RDS Proxy or pooling for Lambda-heavy apps.
  • Do not enable scale to zero for production APIs that need consistent latency.
  • Watch the ServerlessDatabaseCapacity and ACUUtilization CloudWatch metrics to tune min and max.
A day in the life of a v2 cluster. Capacity follows load in small steps, and can pause entirely when idle.
  1. Night: idle: Scales to the minimum, or pauses at 0 ACU.
  2. Morning: first connection: Paused instance resumes after a short delay.
  3. Traffic grows: ACUs rise in 0.5 steps without dropping connections.
  4. Peak sale hour: Scales toward the configured maximum ACU.
  5. Evening: load drops: Capacity scales back down and billing falls.

Code examples

Create an Aurora Serverless v2 PostgreSQL cluster

# Cluster with a capacity range of 0 to 16 ACUs
aws rds create-db-cluster \
  --db-cluster-identifier orders-dev \
  --engine aurora-postgresql \
  --master-username appadmin --manage-master-user-password \
  --serverless-v2-scaling-configuration MinCapacity=0,MaxCapacity=16,SecondsUntilAutoPause=600

# Serverless v2 instances use the db.serverless instance class
aws rds create-db-instance \
  --db-instance-identifier orders-dev-writer \
  --db-cluster-identifier orders-dev \
  --engine aurora-postgresql \
  --db-instance-class db.serverless

MinCapacity=0 allows auto-pause after 10 idle minutes, which suits a dev environment; for production you would set a non-zero minimum. Scale to zero requires a recent engine version.

Key points

  • Capacity is measured in ACUs; one ACU is about 2 GiB of memory.
  • v2 scales in 0.5 ACU steps within seconds without dropping connections.
  • Minimum can be 0 ACU with auto-pause; the first request after a pause is slower.
  • v1 is end of life; v2 supports readers, Global Database, RDS Proxy and mixed clusters.
  • Best for spiky or idle-heavy workloads; provisioned is cheaper for steady load.

Common follow-up questions

  • How would you pick the minimum and maximum ACU values?
  • Why can Aurora Serverless be more expensive than provisioned Aurora?
  • How do you handle Lambda connection storms against Aurora?
  • Can you mix serverless and provisioned instances in one cluster? Why would you?

Interview tips

  • Talk about v2 specifically and mention that v1 is retired; it shows current knowledge.
  • Explain the cost trade-off honestly: serverless is not automatically cheaper.
  • Mention the cold buffer pool problem with a too-low minimum ACU; it is a real production issue.

Concepts covered

Aurora Capacity Units, Aurora Serverless v2, Auto-pause, Auto Scaling, Aurora MySQL and PostgreSQL

More AWS & Cloud Fundamentals questions