Step 1: Check KeySchema and AttributeDefinitions consistency
Both "OrderId" and "OrderDate" are in KeySchema, but only "OrderId" is defined in AttributeDefinitions.
Step 2: Identify missing attribute definition
"OrderDate" must be defined in AttributeDefinitions to avoid error.
Final Answer:
Missing AttributeDefinition for "OrderDate" -> Option B
Quick Check:
All key attributes need AttributeDefinitions [OK]
Hint: Define all key attributes in AttributeDefinitions [OK]
Common Mistakes:
Forgetting to define all key attributes
Assuming RANGE is invalid KeyType
Blaming ProvisionedThroughput or TableName
5. You want to create a DynamoDB table named "Employees" with a composite primary key consisting of "EmployeeId" (string) as the partition key and "Department" (string) as the sort key. You also want to set the read capacity to 3 and write capacity to 2. Which of the following AWS SDK parameter objects correctly creates this table?