Complete the code to specify the table name for the UpdateItem operation.
response = client.update_item(TableName='[1]', Key=key, UpdateExpression=update_expr)
The TableName parameter specifies which table to update. Here, 'Users' is the correct table name.
Complete the code to specify the key attribute name for the item to update.
key = {'UserId': {'S': [1]The key value must be a string representing the primary key of the item. Here, '123' is the user ID.
Fix the error in the UpdateExpression syntax to set the 'Age' attribute.
update_expr = 'SET Age = [1]'
In DynamoDB UpdateExpression, attribute values must be placeholders starting with a colon, like ':newAge'.
Fill both blanks to define ExpressionAttributeValues for setting Age to 30.
expr_attr_values = { [1]: {'N': [2] }ExpressionAttributeValues keys must be strings with colon prefix, and values must be strings representing numbers.
Fill all three blanks to complete the UpdateItem call with table name, key, and update expression.
response = client.update_item(TableName=[1], Key=[2], UpdateExpression=[3])
The TableName is 'Users', the Key is a dictionary with UserId, and the UpdateExpression sets Age using a placeholder.