0
0
DynamoDBquery~10 mins

Export to S3 in DynamoDB - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the S3 bucket name for export.

DynamoDB
export_task = dynamodb.export_table_to_point_in_time(
    TableArn='arn:aws:dynamodb:us-west-2:123456789012:table/Books',
    S3Bucket=[1]
)
Drag options to blanks, or click blank then click option'
A'dynamodb-exports'
B'my-s3-bucket'
C'backup-bucket'
D'my-export-bucket'
Attempts:
3 left
💡 Hint
Common Mistakes
Using an incorrect or non-existent bucket name.
Forgetting to put the bucket name in quotes.
2fill in blank
medium

Complete the code to specify the export format as DynamoDB JSON.

DynamoDB
export_task = dynamodb.export_table_to_point_in_time(
    TableArn='arn:aws:dynamodb:us-west-2:123456789012:table/Books',
    S3Bucket='dynamodb-exports',
    ExportFormat=[1]
)
Drag options to blanks, or click blank then click option'
A'DYNAMODB_JSON'
B'CSV'
C'ION'
D'JSON'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'JSON' instead of 'DYNAMODB_JSON'.
Using unsupported formats like 'CSV' for DynamoDB export.
3fill in blank
hard

Fix the error in the export code by completing the missing parameter for export time.

DynamoDB
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]
)
Drag options to blanks, or click blank then click option'
A'now()'
Bdatetime.datetime.now()
C'2023-01-01T00:00:00Z'
Dtime.time()
Attempts:
3 left
💡 Hint
Common Mistakes
Passing a string instead of a datetime object.
Using incorrect functions like 'now()' as a string.
4fill in blank
hard

Fill both blanks to create an export task with the correct table ARN and S3 prefix.

DynamoDB
export_task = dynamodb.export_table_to_point_in_time(
    TableArn=[1],
    S3Bucket='dynamodb-exports',
    S3Prefix=[2],
    ExportFormat='DYNAMODB_JSON'
)
Drag options to blanks, or click blank then click option'
A'arn:aws:dynamodb:us-west-2:123456789012:table/Orders'
B'exports/orders'
C'arn:aws:dynamodb:us-west-2:123456789012:table/Customers'
D'exports/customers'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing table ARNs and prefixes incorrectly.
Using prefixes without quotes.
5fill in blank
hard

Fill all three blanks to complete the export task with table ARN, S3 bucket, and export format.

DynamoDB
export_task = dynamodb.export_table_to_point_in_time(
    TableArn=[1],
    S3Bucket=[2],
    ExportFormat=[3]
)
Drag options to blanks, or click blank then click option'
A'arn:aws:dynamodb:us-west-2:123456789012:table/Inventory'
B'dynamodb-exports'
C'DYNAMODB_JSON'
D'arn:aws:dynamodb:us-west-2:123456789012:table/Sales'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong ARNs or bucket names.
Confusing export format strings.