D. TableName cannot be specified inside Put or Delete actions
Solution
Step 1: Check JSON syntax in the request
ReturnConsumedCapacity is a valid parameter, but the JSON is invalid due to a missing comma after the closing bracket (]) of the TransactItems array.
Step 2: Validate other parts
Delete and Put actions are correctly structured; TransactItems must be an array; TableName is required inside actions.
Final Answer:
Missing comma after the TransactItems array -> Option B
Quick Check:
JSON requires commas between object properties [OK]
Hint: Validate JSON syntax: add commas between top-level properties [OK]
Common Mistakes:
Omitting commas in JSON request objects
Forgetting TableName inside each action
Misusing array vs object for TransactItems
5. You want to atomically update a user's email and delete a related temporary token in DynamoDB using TransactWriteItems. Which of the following request structures correctly achieves this?