Challenge - 5 Problems
DynamoDB Import Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ query_result
intermediate2:00remaining
What is the result of this import command?
You run the following AWS CLI command to import data from an S3 bucket into a DynamoDB table. What will be the status of the import job immediately after running this command?
DynamoDB
aws dynamodb import-table --input-format DYNAMODB_JSON --s3-bucket-source S3Bucket=mybucket,S3KeyPrefix=data.json --table-name MyTable
Attempts:
2 left
💡 Hint
Think about what happens right after starting a data import job.
✗ Incorrect
When you start an import job, it begins processing asynchronously. So immediately after running the command, the status is 'IN_PROGRESS'. It will only be 'COMPLETED' after the import finishes.
🧠 Conceptual
intermediate1:30remaining
Which data format is supported for DynamoDB import from S3?
You want to import data from an S3 bucket into DynamoDB. Which of the following data formats can you use for the import?
Attempts:
2 left
💡 Hint
DynamoDB expects a specific JSON format for import.
✗ Incorrect
DynamoDB import supports the DynamoDB JSON format, which represents data types explicitly. CSV, XML, or plain text are not supported for direct import.
🔧 Debug
advanced2:30remaining
Why does this import command fail with AccessDeniedException?
You run this command to import data from S3 to DynamoDB but get an AccessDeniedException error:
aws dynamodb import-table --input-format DYNAMODB_JSON --s3-bucket-source S3Bucket=mybucket,S3KeyPrefix=data.json --table-name MyTable
What is the most likely cause?
Attempts:
2 left
💡 Hint
AccessDeniedException usually relates to permissions.
✗ Incorrect
The error indicates the AWS identity running the command lacks permission to access the S3 bucket. You must ensure the IAM role or user has s3:GetObject permission for the bucket.
📝 Syntax
advanced2:30remaining
Which command correctly imports data from S3 to DynamoDB with a specified IAM role?
You want to import data from S3 to DynamoDB and specify an IAM role ARN for the import job. Which command is correct?
Attempts:
2 left
💡 Hint
Check the exact parameter name for specifying the IAM role ARN in the import command.
✗ Incorrect
The correct parameter to specify the IAM role ARN for the import job is '--role-arn'. Other options are invalid and cause syntax errors.
❓ optimization
expert3:00remaining
How to optimize import speed from S3 to DynamoDB for large datasets?
You have a large dataset in S3 to import into DynamoDB. Which approach will best optimize the import speed?
Attempts:
2 left
💡 Hint
Think about parallel processing and how DynamoDB import jobs work.
✗ Incorrect
Splitting data into multiple files and running parallel import jobs can speed up the overall import by using more resources concurrently. Single large files or compression do not improve import speed directly. The AWS console does not affect import speed.