Complete the code to create a DynamoDB client using Boto3.
import boto3 client = boto3.[1]('dynamodb')
The boto3.client('dynamodb') creates a low-level client to interact with DynamoDB.
Complete the code to create a DynamoDB resource using Boto3.
import boto3 resource = boto3.[1]('dynamodb')
The boto3.resource('dynamodb') creates a higher-level DynamoDB resource object.
Fix the error in the code to get a DynamoDB table using the resource.
table = resource.Table([1])The table name must be a string, so it needs quotes around it.
Fill both blanks to put an item into a DynamoDB table using the client.
response = client.[1](TableName=[2], Item={'id': {'S': '123'}})
The put_item method inserts an item, and the table name must be a string with quotes.
Fill all three blanks to get an item from a DynamoDB table using the resource.
response = table.[1](Key=[2]) item = response.get([3])
The get_item method retrieves an item by key, the key is a dictionary, and the result is accessed with 'Item'.