AWS Certified Solutions Architect - Professional 2020

Sign Up Free or Log In to participate!

Only 5 global secondary indexes?

At approximately 6:35, it is stated that a DynamoDB table supports "Max 5 local and 5 global secondary indexes". AWS docs state that up to 20 global secondary indexes are supported.


Is this an error, or have I misunderstood something?

2 Answers

Hi Brett,

Looks like AWS raised the limit of global secondary indexes to 20 in December.   The slide needs an update.

What’s odd is the Github versions of the docs still show 5 as the limit…hah


5, or even 20 GSIs might not sound like a lot, but actually if you design your table correctly, 5 is more than enough. 

There is an excellent talk from re:invent on how to structure your ddb tables, and Rick the presenter tells us that you shouldn’t need more than 5 GSIs if you structure your table correctly from the outset.

Warning – this is extreme 400 level!

Otto Jongerius

Thanks for the link to that talk, awesome!

Cameron Tod

It is indeed a fantastic talk and really changed the way I think about Dynamo. It changed my perception from ‘DDB is not good for relational data’ to something more like ‘DDB is very powerful if you know your access patterns ahead of time. RDMS is more appropriate if your access patterns are not clear or may change’. Highly recommended!

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?