0
0
DynamoDBquery~20 mins

Import from S3 in DynamoDB - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
DynamoDB Import Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
query_result
intermediate
2: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
AThe import job status will be 'FAILED'.
BThe import job status will be 'COMPLETED'.
CThe import job status will be 'IN_PROGRESS'.
DThe import job status will be 'NOT_STARTED'.
Attempts:
2 left
💡 Hint
Think about what happens right after starting a data import job.
🧠 Conceptual
intermediate
1: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?
ADynamoDB JSON format
BCSV format with headers
CXML format
DPlain text with comma-separated values
Attempts:
2 left
💡 Hint
DynamoDB expects a specific JSON format for import.
🔧 Debug
advanced
2: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?
AThe AWS CLI version is outdated.
BThe DynamoDB table name is invalid.
CThe input file is not in DynamoDB JSON format.
DThe IAM role used does not have permission to read the S3 bucket.
Attempts:
2 left
💡 Hint
AccessDeniedException usually relates to permissions.
📝 Syntax
advanced
2: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?
Aaws dynamodb import-table --input-format DYNAMODB_JSON --s3-bucket-source S3Bucket=bucket,S3KeyPrefix=data.json --table-name MyTable --role-arn arn:aws:iam::123456789012:role/MyImportRole
Baws dynamodb import-table --input-format DYNAMODB_JSON --s3-bucket-source S3Bucket=bucket,S3KeyPrefix=data.json --table-name MyTable --import-role arn:aws:iam::123456789012:role/MyImportRole
Caws dynamodb import-table --input-format DYNAMODB_JSON --s3-bucket-source S3Bucket=bucket,S3KeyPrefix=data.json --table-name MyTable --role arn:aws:iam::123456789012:role/MyImportRole
Daws dynamodb import-table --input-format DYNAMODB_JSON --s3-bucket-source S3Bucket=bucket,S3KeyPrefix=data.json --table-name MyTable --iam-role arn:aws:iam::123456789012:role/MyImportRole
Attempts:
2 left
💡 Hint
Check the exact parameter name for specifying the IAM role ARN in the import command.
optimization
expert
3: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?
ACompress the data file with gzip and import directly.
BSplit the data into multiple files in S3 and run multiple import jobs in parallel.
CImport the data using the AWS console instead of CLI.
DUse a single large file and run one import job to avoid overhead.
Attempts:
2 left
💡 Hint
Think about parallel processing and how DynamoDB import jobs work.