Bird
0
0

A developer tries to buy Reserved Capacity using a DynamoDB API call but gets an error. What is the likely cause?

medium📝 Debug Q14 of 15
DynamoDB - Cost Optimization and Monitoring
A developer tries to buy Reserved Capacity using a DynamoDB API call but gets an error. What is the likely cause?
AReserved Capacity requires table to be in on-demand mode.
BReserved Capacity cannot be purchased via API calls.
CThe API call syntax is incorrect.
DReserved Capacity is only for global tables.
Step-by-Step Solution
Solution:
  1. Step 1: Check how Reserved Capacity is purchased

    Reserved Capacity is bought only through AWS Console or CLI, not through DynamoDB API calls.
  2. Step 2: Understand error cause

    Trying to buy it via API results in error because the API does not support this operation.
  3. Final Answer:

    Reserved Capacity cannot be purchased via API calls. -> Option B
  4. Quick Check:

    Reserved Capacity purchase method = Console/CLI only [OK]
Quick Trick: Reserved Capacity purchase via API causes error [OK]
Common Mistakes:
MISTAKES
  • Assuming API calls can buy Reserved Capacity
  • Blaming syntax errors without checking purchase method
  • Confusing Reserved Capacity with table modes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes