crafted.dataLong-form notes on databases, cloud and AI, with the code.

Databases

Database Choices That Quietly Kill Your AWS Bill

Database spend on AWS doesn't need one dramatic mistake to hurt. It can leak through a dozen small defaults that looked reasonable on the day and never got a second look.

A blue database cylinder leaking coins through lines to four labels: Oversized, Snapshots, Cross-AZ and Idle
On this page
  1. Why is your RDS instance probably too big?
  2. Is Aurora actually cheaper than RDS?
  3. Are you paying for DynamoDB capacity nobody uses?
  4. Where does cross-AZ traffic sneak into your bill?
  5. Why do snapshots and idle environments keep growing?
  6. How do you find the database leaks in your AWS bill?
  7. What does a good database cost habit look like?
  8. Questions people ask

Some of the most expensive database decisions aren’t decisions at all. They’re defaults: an instance class picked during a launch crunch, still running years later at a fraction of its CPU. Nobody chooses that bill. Everybody pays it, month after month, and no alarm goes off unless someone built one.

When an AWS bill gets uncomfortable, the reflex is to hunt for one big mistake: a forgotten GPU instance, a runaway Lambda loop, something dramatic enough to screenshot into Slack. Database spend doesn’t need a dramatic mistake to grow. It can leak through a dozen small choices that each looked reasonable on the day someone made them, and then never got looked at again.

So this isn’t a tour of AWS pricing pages. It’s the specific defaults that hide inside database bills: the oversized instance, the wrong I/O model, the capacity mode nobody revisited, and the snapshots and traffic nobody meters. For each one I’ll also name where the saving stops being worth it, because cheap and fragile isn’t the goal.

Why is your RDS instance probably too big?

Because it was likely sized for a guess, made on the most optimistic day of the project, and nobody scheduled a second look. Launch-day sizing tends to estimate traffic, double it for safety, then go one instance class up just in case. Undersizing hurts immediately and publicly; oversizing hurts slowly and invisibly. So every incentive in the room points up.

Nothing forces that second look. A production database can keep its launch-day instance class through product pivots and traffic declines, because the bill arrives as one line and nobody owns it. When was the last time anyone on your team re-read that instance class and asked whether it still describes the workload?

The check is thirty minutes in CloudWatch:

  1. Pull CPUUtilization, FreeableMemory and ReadIOPS for the last 30 days.
  2. Look at the 95th percentile, not the average. Averages flatter idle systems.
  3. If p95 CPU sits under 25 percent and memory never gets tight, you’re likely paying for a size class the workload doesn’t occupy.
  4. While you’re there, check the storage type and the instance family. For RDS for PostgreSQL in us-east-1, gp3 costs the same $0.115 per GB-month as gp2 but includes a baseline of at least 3,000 IOPS at any size, where gp2’s baseline is 3 IOPS per GB (Amazon RDS DB instance storage). Intel classes can often move to Graviton too: a db.r6g.large for PostgreSQL lists at $0.225 an hour against $0.25 for a db.r5.large, and on a managed engine the move is an instance-class change, provided your engine version supports it.

Changing the instance class is a modify operation, not a migration project. It does involve downtime, so schedule it; a Multi-AZ deployment keeps that window short. That’s what makes it the highest-return hour in this whole article.

Sizing is half of the conversation. The other half is whether the workload is on the right service at all, which when to use each AWS database service maps out engine by engine.

Is Aurora actually cheaper than RDS?

Sometimes, and when it isn’t, the reason is often I/O pricing rather than compute. Aurora isn’t simply RDS but better; it’s a genuinely different storage architecture with a genuinely different bill. Aurora Standard charges $0.20 for every million I/O requests your workload makes against its storage layer in us-east-1, and on the wrong workload that line can rival the instance cost.

For a well-indexed OLTP workload, the I/O line item stays polite. For anything scan-heavy, write-heavy or analytics-flavored, it grows into a surcharge, and it does so without any infrastructure change you can point to. The bill just gets worse as the product gets used more.

The trap is choosing Aurora for the resilience story, then paying an I/O tax on a workload shape Aurora Standard prices badly. The engine choice and the pricing-model choice get conflated into one decision, when they’re two.

OptionHow I/O shows up on the billWhen it fits
Aurora Standard$0.20 per million I/O requests, with storage at $0.10 per GB-monthWell-indexed OLTP where I/O stays modest
Aurora I/O-OptimizedNo I/O charges; instance rates about 30 percent higher and storage at $0.225 per GB-monthI/O above 25 percent of your Aurora spend
RDS with gp3 storageNo per-request I/O charge; IOPS above the included baseline are provisioned and billed per IOPS-monthWorkloads that don’t use what makes Aurora Aurora

AWS’s own pricing page puts the threshold plainly: if your I/O spend exceeds 25 percent of your total Aurora spend, I/O-Optimized can save up to 40 percent (Amazon Aurora pricing). So the real question isn’t Aurora or RDS. It’s what one month of your actual I/O costs under each model. That’s a Cost Explorer filter, not a re-architecture, and it’s the same cost-per-operation thinking I apply to AI features in the real cost of an LLM call vs a SQL query.

Where’s the line? Aurora earns its price when you’re using what makes it Aurora: fast failover, many low-lag read replicas, storage that grows without downtime, or Global Database for cross-region reads. If you need those, the I/O model is a configuration detail to get right, not a reason to leave. The mistake isn’t choosing Aurora. It’s choosing it by reflex and never opening the I/O line item.

Are you paying for DynamoDB capacity nobody uses?

If a table sits in provisioned mode because a calculator said so two years ago, quite possibly. The pricing math is easy to run once, at design time, when provisioned capacity looks obviously cheaper per request, and never again. Then traffic changes shape and nobody re-runs the numbers. Provisioned capacity bills for what you reserve, not for what you use.

Autoscaling softens that, but it still has a floor, and the floor bills at 3am on a Sunday exactly like it bills at peak. What does your table actually do on a Sunday night? The arithmetic at us-east-1 rates is simple: a million on-demand writes cost $0.625, while a million writes on fully used provisioned capacity cost about $0.18 ($0.00065 per write-capacity-unit hour). On-demand costs about 3.5 times as much per request, and reads follow the same ratio, so it wins whenever provisioned capacity would average below roughly 29 percent utilization. Spiky and low-volume tables (internal tools, event archives, the feature two customers use) are the ones most likely to sit below that line.

Global secondary indexes make this worse, quietly. On a provisioned table every GSI has its own read and write capacity, every GSI stores its own copy of the projected attributes, and every table write that touches an attribute the index keys on or projects also writes to the index, twice when an index key value changes (Using global secondary indexes). A table with three GSIs that project all attributes can bill close to four tables’ worth of writes and storage. Audit GSIs the way you audit manual snapshots: each one made sense to someone once.

Storage has its own lever. Tables holding cold data (audit trails, old events, anything read a few times a year) can move to the Standard-Infrequent Access table class. In us-east-1 its storage costs $0.10 per GB-month instead of $0.25, while reads and writes cost about 25 percent more. It’s a per-table setting you can change later, and for tables where storage dominates the bill it’s a straightforward saving.

Table shapeUsually cheaper
Spiky, unpredictable or low volumeOn-demand capacity
Steady, sustained, forecastable throughputProvisioned capacity, plus reserved capacity at high volume
Cold data read a few times a yearStandard-Infrequent Access table class

Where’s the line? Steady, sustained, forecastable throughput is exactly what provisioned mode is for, and at high utilization it beats on-demand by a wide margin, wider still with reserved capacity on top. The point isn’t “always use on-demand.” It’s that capacity mode is a decision with a shelf life. Re-run the comparison once a year against real traffic, and let the boring numbers decide.

Where does cross-AZ traffic sneak into your bill?

Between your application and its database, in both directions, one gigabyte at a time. In us-east-1, cross-AZ data transfer costs $0.01 per GB in each direction, and it hides inside a line item that’s easy to scroll past because it’s never dramatic on any single day. The replication inside a Multi-AZ RDS deployment isn’t the problem: AWS doesn’t charge for it.

The problem is everything your application does. A service fleet spread evenly across three availability zones, talking to a primary that lives in one of them, sends roughly two-thirds of its database traffic across an AZ boundary. Add an application reading from a replica in another AZ, an ORM that fetches whole rows to update one column, and a job that pages through a large table nightly, and the gigabytes compound.

Attribution is the hard part. Cost Explorer shows regional data transfer (the DataTransfer-Regional-Bytes usage type in us-east-1) without saying who caused it. VPC Flow Logs, aggregated by source and destination, will name the chatty pairs. Check the boring explanations first, such as one internal service doing something wasteful on a loop.

Watch the path, not just the distance. Traffic that reaches a database through a NAT gateway pays the NAT processing rate, $0.045 per GB in us-east-1, on top of any transfer charge. That can happen with a self-managed database in another VPC, a third-party data API or a replication job routed the scenic way. One misplaced route can add $0.045 to every gigabyte. The NAT gateway gets its own section in the AWS services you’re paying for and probably don’t need.

The cheap fixes are locality and restraint:

  • AZ-aware routing, so services prefer a reader in their own zone.
  • Caching the reads that never change. Read replicas vs caching vs both covers when each one pays.
  • Trimming SELECT * habits, so you stop shipping columns nobody reads.

Why do snapshots and idle environments keep growing?

Because nothing in AWS deletes itself, and database storage only moves in one direction. Manual snapshots never expire and outlive the instance they came from. A dev or staging database left running bills for all 168 hours of the week, whether anyone uses it or not. And RDS storage can grow, automatically even, but it can’t be shrunk in place.

Start with backups, because the two kinds share an allowance but age differently:

Automated backupsManual snapshots
CostCount toward a free allowance equal to your total database storage in the RegionCount toward the same allowance; beyond it, backup storage bills $0.095 per GB-month (RDS for PostgreSQL)
LifetimeExpire with the retention windowLive until someone deletes them, including after the instance is gone

The allowance is the trap. It’s shared across the Region and sized to the database storage you currently provision, so a pile of old manual snapshots can push total backup storage over it, and snapshots kept after an instance is deleted still use the allowance while that instance’s storage no longer adds to it (Amazon RDS FAQs, Demystifying Amazon RDS backup storage costs). Years of snapshot-before-the-migration, just in case, adds up to a museum nobody visits and everybody funds.

Idle environments follow the same physics: nobody turns them off, so they bill through every night and weekend. Stopping non-production RDS instances outside working hours is unglamorous and effective: a stopped instance still bills for storage and backups, but not for instance hours, and instance hours are often the bigger part. A db.r6g.large for PostgreSQL with 100 GB of gp3 lists at about $175.75 a month in us-east-1, and $164.25 of that is the instance. The fix doesn’t need a platform team either. A pair of EventBridge Scheduler schedules, one calling StopDBInstance at 8pm and one calling StartDBInstance at 8am, covers the basic case.

Then there’s the one-way valve. RDS storage can grow, automatically if you’ve enabled autoscaling, but RDS won’t reduce allocated storage. Delete half your rows and the bill doesn’t move, because RDS bills allocated storage and the freed space goes back to the engine as reusable pages, not back to AWS. That’s why storage autoscaling deserves a maximum limit, set on the day you enable it, and why it’s worth knowing what’s actually occupying the volume:

sql
-- Largest tables, with dead rows that vacuum can reuse but never return
SELECT relname,
       pg_size_pretty(pg_total_relation_size(relid)) AS total_size,
       n_dead_tup
FROM pg_stat_user_tables
ORDER BY pg_total_relation_size(relid) DESC
LIMIT 10;
sql
-- Indexes that have never been scanned since the last stats reset
SELECT indexrelname,
       pg_size_pretty(pg_relation_size(indexrelid)) AS index_size
FROM pg_stat_user_indexes
WHERE idx_scan = 0
ORDER BY pg_relation_size(indexrelid) DESC;

Unused indexes are a double charge. They occupy storage, and they add work to every write that has to maintain them. Dropping the dead ones is one of the few changes that makes a database both cheaper and faster on the same day. For the other side of that trade, which indexes earn their keep, see indexing strategies: when each index type actually pays off.

Where’s the line? Retention that exists for compliance or audit is legitimate, and the fix there is automation, not deletion. Move real requirements into AWS Backup plans with lifecycle rules, so old backups expire on schedule instead of depending on someone’s memory; AWS Backup doesn’t tier RDS or Aurora backups to cold storage, so expiry is the lever. And don’t stop-start an environment whose whole job is realistic performance testing, since cold caches will skew the results.

How do you find the database leaks in your AWS bill?

Ask four questions every month, with the graphs open: what 30-day p95 utilization looks like, what share of each engine’s bill is I/O, what runs between midnight and six in the morning, and which manual snapshots you’d keep if they were boxes in your office. None of it needs a FinOps team or a tooling purchase.

To see where the money goes first, open Cost Explorer, group by service and filter to Relational Database Service (Aurora bills under it), DynamoDB and ElastiCache, then add a second grouping by usage type to separate compute, storage, I/O and data transfer. Tag instances by team or product before you start, or the numbers stay anonymous and nobody owns the fix. Then ask:

  1. What’s the 95th percentile utilization over the last 30 days? For every production database: CPU, memory, IOPS. If p95 is a fraction of what you’re paying for, that’s the finding.
  2. What is I/O costing as a share of each engine’s bill? Aurora Standard versus I/O-Optimized, gp2 versus gp3, provisioned IOPS someone set during an incident in 2024. The share, not the absolute number, tells you when a pricing model stopped fitting the workload.
  3. What runs between midnight and six in the morning, and why? Idle dev instances, autoscaling floors, replicas serving no one. For a business-hours product, night-time spend is the cleanest measure of waste, because there’s little traffic to justify it.
  4. What would you keep if snapshots were boxes in your office? Walk the manual snapshot list with that framing. Most of it becomes obviously deletable, and the rest becomes obviously worth automating.

If any of these takes more than an hour to answer, that’s a finding too. It means the account has no tagging, no ownership and nobody looking, which is the exact condition every leak in this article depends on. The same discipline applies before you add infrastructure, not only after: most teams don’t need a vector database makes that case for one popular addition, and the databases hub collects the rest.

What does a good database cost habit look like?

It’s boring on purpose: a one-hour database cost review on the calendar, monthly, owned by an engineer rather than a spreadsheet. Right-size against p95, match the I/O model to the workload, re-run the DynamoDB math yearly, name your cross-AZ chatter, and automate retention. None of it is clever. All of it compounds in your favor instead of against you.

The cautionary version is the team that skips the hour, watches the bill climb for two years, and then launches a panicked cost-reduction migration that consumes a quarter of engineering capacity to escape decisions no one remembers making. That migration can cost more than the waste did.

Databases don’t need one dramatic choice to inflate an AWS bill. Quiet ones, left alone long enough to feel like infrastructure, do the job. Find them while they’re still just defaults.

Key takeaways

  • Database overspend on AWS often comes from defaults nobody revisited, not one bad call: instance size, I/O model, capacity mode, retention.
  • A launch-day instance size can still be running years later. Right-sizing against 30 days of real utilization is a modify operation, not a migration, which makes it one of the quickest savings to make.
  • Aurora versus RDS is an I/O profile question. AWS says I/O-Optimized can save up to 40 percent once I/O passes 25 percent of your Aurora spend, and the wrong pricing model on the right engine burns money every month.
  • Cross-AZ traffic at $0.01 per GB in each direction, snapshots that outgrow the free backup allowance and idle environments bill quietly and are easy to miss in a design review.
  • A one-hour monthly cost review of your databases is enough to surface each of these leaks before it compounds into a budget conversation.

Questions people ask

How do I find which database is driving my AWS bill?

Open Cost Explorer, group by service, then filter to Relational Database Service (Aurora bills under it), DynamoDB and ElastiCache. Add a second grouping by usage type to separate compute, storage, I/O and data transfer. Tag instances by team or product first, or the numbers stay anonymous and nobody owns the fix.

Is Aurora more expensive than RDS PostgreSQL?

It can be, and the I/O line is the first place to look. Aurora Standard bills $0.20 per million I/O requests in us-east-1, a charge RDS with gp3 storage doesn't have. Aurora I/O-Optimized removes that charge in exchange for higher instance and storage rates. Compare a real month of your own I/O, not the calculator.

Should I use DynamoDB on-demand or provisioned capacity?

Use on-demand for spiky, unpredictable or low traffic, and provisioned for steady throughput you can forecast. At us-east-1 rates, on-demand costs about 3.5 times fully used provisioned capacity per request, so it wins below roughly 29 percent utilization. Autoscaling still bills its floor all night. Re-run the comparison yearly, because traffic drifts.

Do RDS snapshots cost money?

Sometimes. Automated backups and manual snapshots share one free allowance equal to your total database storage in the Region; beyond it, RDS for PostgreSQL bills $0.095 per GB-month in us-east-1. Manual snapshots never expire and outlive their instance, so they quietly eat the allowance. Audit them quarterly and move real retention needs into AWS Backup.

Can I shrink RDS storage after deleting data?

Not in place. RDS lets you increase allocated storage but not reduce it, even after you delete rows or drop tables. Reclaiming the space means moving to a new, smaller volume through a dump and restore, DMS or a blue/green deployment, which supports storage shrink on PostgreSQL 12 and later. Set a storage autoscaling maximum from day one.

Naveen Chandra
Naveen Chandra

Cloud, DevOps and Database Engineer. I write crafted.data so the next person can skip the painful part.

More about me

Get the next article by email

One email when a new deep-dive is out: databases, cloud and AI, with the code. Unsubscribe in one click.

Email signups open soon. Until then, new articles are announced on Instagram.

crafted.data

New deep-dives by email

One email when a new article is out: databases, cloud and AI, with the code. Unsubscribe in one click.

Email signups open soon. Until then, new articles are announced on Instagram.

Short videos too: crafted.data on Instagram