Complete the code to start a DynamoDB transaction.
response = client.[1](TransactItems=items)The transact_write_items method starts a transaction in DynamoDB, allowing multiple operations to be executed atomically.
Complete the code to batch write multiple items to DynamoDB.
response = client.[1](RequestItems=request_items)The batch_write_item method writes multiple items in batches but does not guarantee atomicity.
Fix the error in the transaction code by choosing the correct parameter name.
response = client.transact_write_items([1]=items)The correct parameter for transaction operations is TransactItems, not RequestItems or others.
Fill both blanks to create a batch write request with multiple items.
response = client.[1](RequestItems=[2])
Use batch_write_item with a properly structured RequestItems dictionary containing PutRequest for each item.
Fill all three blanks to create a transaction with a condition check and an update.
response = client.transact_write_items(TransactItems=[{'ConditionCheck': {'TableName': [1], 'Key': [2], 'ConditionExpression': [3], {'Update': {'TableName': 'Orders', 'Key': {'OrderId': {'S': '123'}}, 'UpdateExpression': 'SET #st = :val', 'ExpressionAttributeNames': {'#st': 'Status'}, 'ExpressionAttributeValues': {':val': {'S': 'SHIPPED'}}}}])The transaction checks a condition on the 'Users' table for a specific UserId and then updates the 'Orders' table. The condition expression ensures the UserId exists.