Bird
0
0

A developer tries to add a new LSI to an existing DynamoDB table but receives an error. What is the reason?

medium📝 Debug Q7 of 15
AWS - DynamoDB
A developer tries to add a new LSI to an existing DynamoDB table but receives an error. What is the reason?
ALSIs must have a HASH key different from the base table.
BLSIs require a different partition key than the base table.
CLSIs consume separate read and write capacity units.
DLSIs can only be defined when the table is created and cannot be added later.
Step-by-Step Solution
Solution:
  1. Step 1: Recall LSI modification rules

    LSIs must be created with the table; they cannot be added or removed after creation.
  2. Step 2: Analyze other options

    Claims about different partition key, separate capacity units, or different HASH key are incorrect or describe GSI traits.
  3. Final Answer:

    LSIs can only be defined when the table is created and cannot be added later. -> Option D
  4. Quick Check:

    LSI modification = Only at table creation [OK]
Quick Trick: LSIs fixed at creation, no later additions allowed [OK]
Common Mistakes:
MISTAKES
  • Trying to add LSI after table creation
  • Confusing LSI and GSI capabilities
  • Misunderstanding key requirements for LSI

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes