0
0
DynamoDBquery~10 mins

Import from 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 the import task.

DynamoDB
import_task = {
  'S3BucketSource': {
    'S3Bucket': '[1]'
  }
}
Drag options to blanks, or click blank then click option'
Abucket123
Bdynamodb-import-bucket
Cmy-import-bucket
Ds3-import
Attempts:
3 left
💡 Hint
Common Mistakes
Using a generic or incorrect bucket name that does not exist.
Including extra characters or spaces in the bucket name.
2fill in blank
medium

Complete the code to specify the S3 key (file path) for the import task.

DynamoDB
import_task = {
  'S3BucketSource': {
    'S3Bucket': 'dynamodb-import-bucket',
    'S3Key': '[1]'
  }
}
Drag options to blanks, or click blank then click option'
Adata/export.json
Binput/file.csv
Cbackup/2023.json
Dimport/data.json
Attempts:
3 left
💡 Hint
Common Mistakes
Using a file path that does not exist in the bucket.
Using a file with the wrong extension or format.
3fill in blank
hard

Fix the error in the import task by completing the code with the correct import format.

DynamoDB
import_task = {
  'S3BucketSource': {
    'S3Bucket': 'dynamodb-import-bucket',
    'S3Key': 'import/data.json'
  },
  'InputFormat': '[1]'
}
Drag options to blanks, or click blank then click option'
AJSON
BCSV
CXML
DYAML
Attempts:
3 left
💡 Hint
Common Mistakes
Using CSV or XML format when the file is JSON.
Leaving the format unspecified causing import failure.
4fill in blank
hard

Fill both blanks to complete the import task with the correct table name and import mode.

DynamoDB
import_task = {
  'TableName': '[1]',
  'ImportMode': '[2]',
  'S3BucketSource': {
    'S3Bucket': 'dynamodb-import-bucket',
    'S3Key': 'import/data.json'
  },
  'InputFormat': 'JSON'
}
Drag options to blanks, or click blank then click option'
AUsersTable
BOverwrite
CAppend
DOrdersTable
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong table name that does not exist.
Choosing Overwrite mode when Append is intended.
5fill in blank
hard

Fill all three blanks to complete the import task with table name, import mode, and S3 key.

DynamoDB
import_task = {
  'TableName': '[1]',
  'ImportMode': '[2]',
  'S3BucketSource': {
    'S3Bucket': 'dynamodb-import-bucket',
    'S3Key': '[3]'
  },
  'InputFormat': 'JSON'
}
Drag options to blanks, or click blank then click option'
AOrdersTable
BAppend
Corders/2024.json
DOverwrite
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing table names and file paths incorrectly.
Choosing Overwrite mode unintentionally.