Skip to main content
InterviewHubPRO
Section Overview
Q37

Question 37 of 50

Part 3: Advanced Architecture, Scale & Internals (Senior / Lead)

74%
Amazon DynamoDB (50 Qs)•Part 3: Advanced Architecture, Scale & Internals (Senior / Lead)

Global Secondary Indexes (GSI) vs Local Secondary Indexes (LSI).

senior LevelMost AskedSystem Design

In Simple Words:

  • Local Secondary Index (LSI): Must share the same Partition Key as the base table, with an alternative Sort Key. Can only be created when creating the table (cannot be added later). Shares the base table's provisioned throughput.
  • Global Secondary Index (GSI): Can have a completely different Partition Key and Sort Key. Can be created or deleted dynamically on live tables at any time. Has its own independent provisioned throughput and scales independently.