HomeBlogComparison

Amazon DynamoDB vs S3: 3 Checks on Item Size, Request Cost and Recovery

A white robot stacks compute, storage and network blocks into a three tier tower in an outdoor cloud engineering lab

DynamoDB is a key-value and document database for small records you read and update by key in milliseconds; Amazon S3 stores whole files of any size and is far cheaper per gigabyte. Most applications use both: records and metadata in DynamoDB, documents and images in S3, with the S3 object key saved in the DynamoDB item, which is the pattern AWS itself recommends.

Which requirement changes the decision?

Three checks settle it, in this order.

Check 1: is each record under 400 KB?

AWS's guidance on large items states that DynamoDB "limits the size of each item that you store in a table to 400 KB," and writes over that fail. Its options are to compress, split the item, or "store the item as an object in Amazon Simple Storage Service (Amazon S3) and store the Amazon S3 object identifier in your DynamoDB item." S3 objects can be up to 50 TB, per the S3 objects overview.

If you split the data this way, note AWS's caveat: DynamoDB "doesn't support transactions that cross Amazon S3 and DynamoDB," so your code must clean up orphaned objects when a write half-fails.

Check 2: what does the access pattern cost each month?

List prices for US East (N. Virginia), as of December 2026, from the DynamoDB pricing page (on-demand mode) and the S3 pricing page (S3 Standard):

Line itemDynamoDB on-demandS3 Standard
Storage$0.25 per GB-month after 25 GB free$0.023 per GB-month
Writes$0.625 per million write request units (each up to 1 KB)$5.00 per million PUT requests
Reads$0.125 per million read request units (each a strongly consistent read up to 4 KB, or two eventually consistent)$0.40 per million GET requests
Query by attributeYes, with keys and secondary indexesNo; you fetch by key or list by prefix
Typical latencySingle-digit millisecondsHigher; suited to whole-file reads

The prices pull in opposite directions. This example is illustrative: an order-tracking app with 100 GB of data, 10 million small writes and 50 million small reads a month.

  • All in DynamoDB: storage about $18.75 (75 GB over the free 25), writes $6.25, reads $6.25. About $31 a month, with key lookups in milliseconds.
  • All in S3: storage about $2.30, PUTs $50.00, GETs $20.00. About $72 a month, and no way to query by customer or status.
  • Split: order records in DynamoDB and the 90 GB of PDF invoices in S3 keeps the request-heavy part where requests are cheap and the bulky part where gigabytes are cheap.

The on-demand mode guide calls on-demand "the default and recommended throughput option," and notes you pay nothing for throughput when the table is idle.

Check 3: how will you restore it after a mistake?

  • DynamoDB: on-demand backups are stored at $0.10 per GB-month in US East as of December 2026, per AWS's pricing, and AWS documents restores of up to 50 concurrent restores totaling 50 TB in its DynamoDB quotas. Test a restore before you need one, so you know how long it takes.
  • S3: turn on S3 Versioning so overwritten or deleted objects can be recovered, and consider S3 Object Lock for records that must not be changed, both described in the S3 user guide.
  • Split designs: back up both sides on the same schedule so a restored table does not point at objects that no longer exist.

What would change the answer: analytics across all records (put the data in S3 as Parquet and query it with Athena, see Amazon Athena vs S3 Select), or relational joins and reporting (a relational database; see Amazon EC2 vs RDS). For archive tiers on the S3 side, read Amazon S3 Glacier vs S3 and Amazon S3 Glacier Deep Archive vs Glacier. NetSys AWS consulting designs data storage for small applications; to have yours sized, Scope my AWS workload.

More on this topic: AWS operations guides.

Frequently asked questions

Amazon DynamoDB vs S3: which is cheaper?

S3 is cheaper per gigabyte stored ($0.023 against $0.25 per GB-month in US East as of December 2026). DynamoDB is cheaper per small request ($0.625 per million writes against $5 per million S3 PUTs). Which wins depends on whether your bill is mostly gigabytes or mostly requests.

Amazon S3 vs DynamoDB: can I store files in DynamoDB?

Only small ones, because each item is limited to 400 KB. AWS recommends storing larger data in S3 and keeping the S3 object identifier in the DynamoDB item.

Can I query data in S3 like a database?

Not directly. S3 retrieves objects by key. To run SQL over files in S3, use Amazon Athena or a warehouse; for record lookups by key, use DynamoDB.

Sources

Read on December 2, 2026:

AWS Consulting for Business

Discuss AWS Consulting for Business for your business.

Tell us about your current systems, the result you need and your timeline. We will discuss the work, responsibilities and pricing before you decide on an engagement.

Explore AWS Consulting for Business 845-203-3914