AWS Builder Center
Unique Quirks of DynamoDB: Things You Will Notice When Building at Scale

Unique Quirks of DynamoDB: Things You Will Notice When Building at Scale

DynamoDB manages infrastructure, but your keys still determine the work. A practical look at indexes, consistency, capacity, and TTL before scale exposes the assumptions.

DynamoDB can remove a lot of database operations from a team's workload. It doesn't remove the consequences of its access patterns.
I think of a partition key as an address on an envelope. A good address gets a request to the right place. Adding more sorting offices won't rescue a workload that sends nearly everything to one address. The analogy is about traffic concentration, not a literal description of DynamoDB's storage internals.
The useful question is what each read and write asks the service to do. These are the quirks I'd make visible in a design review, before a quiet table becomes a busy one.
This is an updated adaptation of  my original article . Technical references were reviewed on November 8, 2026.

Flexible schema moves validation into your application

Items in one table can have different attributes. That helps when product categories or event types evolve, but it doesn't eliminate schema decisions.
Define the required attributes, their types, and how older records will be interpreted. If a reader assumes every item has a field that older writers never supplied, the database is behaving correctly while the application fails.
A useful review artifact is a short access-pattern list: who reads the data, which key they know, how results must be ordered, and what consistency they require. Model the keys from that list. Don't assume that a later filter expression will make an unsuitable key efficient.

The primary key is already an index

You do not need a secondary index to avoid scanning every item. A primary-key lookup or a Query with a suitable partition key is the normal starting point.
Suppose the application lists a user's posts in creation order. One possible key shape is:
PK = USER#<user-id>
SK = POST#<sortable-created-at>#<post-id>
This is a modeling sketch, not a complete social-network schema. It answers one concrete query. A global chronological feed is a different access pattern, with different distribution and ordering concerns.
A secondary index gives another path through the data. It also copies selected attributes and adds storage and write work. Choose its projection deliberately. A GSI and an LSI aren't interchangeable: their key constraints, creation rules, and consistency options differ. AWS's  secondary-index guide  is the reference I'd keep next to the schema.

Read consistency belongs in the API contract

A successful write followed by an eventually consistent read can temporarily return an older view. Base tables and LSIs can serve strongly consistent reads; GSIs cannot.  DynamoDB's consistency documentation  makes that distinction explicit.
If the UI writes a post and immediately queries a GSI to display it, decide how that temporary gap should appear. Reading the item by its primary key or showing the confirmed write result may fit better than pretending the GSI is a synchronous read model.
Also distinguish a recent read from a protected update. Another writer can change the item after the read. Use an appropriate conditional write when the update depends on the current value.

Automatic scaling still has boundaries

On-demand capacity is useful for variable traffic, but it is not permission to ignore quotas, traffic ramps, or concentrated keys. Provisioned capacity with auto scaling has a different operating model; don't describe both as the same instantaneous mechanism.
AWS documents  on-demand scaling behavior , including previous traffic peaks and table limits. Check those against the intended ramp, not just the average request rate.
Then check distribution. A table can have spare total capacity while one access pattern is constrained. Item size and index writes also affect the work behind a single application operation. The  partition-key design guidance  is useful here.
I'd load-test the busiest expected key and the busiest index path separately. A uniform random test can make an application look healthier than its real traffic will be.

TTL is cleanup, not a precise expiry timer

DynamoDB TTL uses a numeric Unix timestamp in seconds. Expired items are typically deleted within a few days, rather than exactly at that timestamp. They can remain visible until the background deletion occurs. See the  TTL documentation .
For session validity, enforce expiry in the application when it reads the record. Let TTL clean up the storage later. The same distinction matters for time-limited offers and temporary authorization: a record still existing must not make it valid.
A TTL deletion can appear in Streams, but that event is not a deadline scheduler. If work must happen at a particular time, choose a mechanism with the timing contract you need.
These TTL observations also need scoping: MRSC global tables currently do not support TTL. Check the  global-table mode's constraints  before transferring a single-Region design unchanged.

Conclusion

I'd approve a DynamoDB model when the team can explain its main queries, index costs, hottest keys, consistency choices, and expiry behavior in concrete terms.
The service can manage capacity and storage infrastructure. The application still owns what its keys mean and which guarantees its callers receive. Make those decisions explicit while changing the model is still cheap.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article