Bird
0
0

Why does this command fail?

medium📝 Debug Q7 of 15
AWS - DynamoDB
Why does this command fail?
aws dynamodb create-table --table-name Inventory --attribute-definitions AttributeName=ItemId,AttributeType=S AttributeName=Category,AttributeType=S --key-schema AttributeName=ItemId,KeyType=HASH
AInvalid table name
BMissing comma between attribute definitions
CDuplicate key schema entries
DMissing provisioned throughput
Step-by-Step Solution
Solution:
  1. Step 1: Check attribute definitions syntax

    Multiple attribute definitions must be comma-separated.
  2. Step 2: Identify syntax error

    Attributes are space-separated without commas, causing failure.
  3. Final Answer:

    Missing comma between attribute definitions -> Option B
  4. Quick Check:

    Attribute definitions require commas between entries [OK]
Quick Trick: Separate multiple attributes with commas [OK]
Common Mistakes:
MISTAKES
  • Using spaces instead of commas
  • Duplicating keys
  • Ignoring required parameters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes