Bird
0
0

You defined a GSI on a DynamoDB table but your application reports 'ValidationException: Index not found'. What is the most likely cause?

medium📝 Debug Q6 of 15
AWS - DynamoDB
You defined a GSI on a DynamoDB table but your application reports 'ValidationException: Index not found'. What is the most likely cause?
AThe GSI has a different sort key than the base table.
BThe GSI uses the same partition key as the base table.
CThe GSI was not created or is still being created.
DThe table has no provisioned throughput.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the error meaning

    'Index not found' means the requested GSI does not exist or is not ready.
  2. Step 2: Check GSI creation status

    GSI creation is asynchronous; if still creating or failed, queries fail with this error.
  3. Final Answer:

    The GSI was not created or is still being created. -> Option C
  4. Quick Check:

    GSI must exist and be active before querying [OK]
Quick Trick: Wait for GSI creation to complete before querying [OK]
Common Mistakes:
  • Assuming error due to key schema mismatch
  • Ignoring GSI creation status
  • Confusing throughput issues with index errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes