Complete the code to specify the S3 bucket name for export.
export_task = dynamodb.export_table_to_point_in_time(
TableArn='arn:aws:dynamodb:us-west-2:123456789012:table/Books',
S3Bucket=[1]
)The S3Bucket parameter must be the name of the S3 bucket where the export will be stored. Here, 'dynamodb-exports' is the correct bucket name used in this example.
Complete the code to specify the export format as DynamoDB JSON.
export_task = dynamodb.export_table_to_point_in_time(
TableArn='arn:aws:dynamodb:us-west-2:123456789012:table/Books',
S3Bucket='dynamodb-exports',
ExportFormat=[1]
)The ExportFormat parameter defines the format of the exported data. 'DYNAMODB_JSON' is the correct format for DynamoDB JSON export.
Fix the error in the export code by completing the missing parameter for export time.
export_task = dynamodb.export_table_to_point_in_time(
TableArn='arn:aws:dynamodb:us-west-2:123456789012:table/Books',
S3Bucket='dynamodb-exports',
ExportFormat='DYNAMODB_JSON',
ExportTime=[1]
)The ExportTime parameter expects a datetime object representing the point in time to export. Using datetime.datetime.now() provides the current time in the correct format.
Fill both blanks to create an export task with the correct table ARN and S3 prefix.
export_task = dynamodb.export_table_to_point_in_time(
TableArn=[1],
S3Bucket='dynamodb-exports',
S3Prefix=[2],
ExportFormat='DYNAMODB_JSON'
)The TableArn must be the ARN of the table you want to export. The S3Prefix is the folder path inside the bucket where the export files will be stored.
Fill all three blanks to complete the export task with table ARN, S3 bucket, and export format.
export_task = dynamodb.export_table_to_point_in_time(
TableArn=[1],
S3Bucket=[2],
ExportFormat=[3]
)To export a DynamoDB table, you need to provide the table ARN, the S3 bucket name, and the export format. Here, the correct values are the Inventory table ARN, the bucket 'dynamodb-exports', and the format 'DYNAMODB_JSON'.