Challenge - 5 Problems
DynamoDB AWS CLI Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ service_behavior
intermediate2:00remaining
What is the output of this AWS CLI command?
You run this command to list all tables in your DynamoDB account:
What will the command output if you have exactly two tables named Users and Orders?
aws dynamodb list-tables --region us-east-1What will the command output if you have exactly two tables named Users and Orders?
DynamoDB
aws dynamodb list-tables --region us-east-1
Attempts:
2 left
💡 Hint
Look for the exact key name that AWS CLI uses to list tables.
✗ Incorrect
The AWS CLI for DynamoDB returns a JSON object with the key 'TableNames' containing a list of table names.
❓ Configuration
intermediate2:00remaining
Which AWS CLI command creates a DynamoDB table with a primary key named 'Id' of type string?
You want to create a DynamoDB table named Products with a simple primary key called Id of type string. Which command will do this correctly?
Attempts:
2 left
💡 Hint
The primary key must be of type HASH and attribute type S for string.
✗ Incorrect
Option C correctly defines the attribute as string (S), sets the key type as HASH, and includes required provisioned throughput.
❓ security
advanced2:00remaining
What error occurs if you try to delete a DynamoDB table that does not exist using AWS CLI?
You run this command:
What error message will AWS CLI return?
aws dynamodb delete-table --table-name NonExistentTableWhat error message will AWS CLI return?
Attempts:
2 left
💡 Hint
Deleting a non-existing resource usually returns a 'not found' error.
✗ Incorrect
AWS DynamoDB returns ResourceNotFoundException when trying to delete a table that does not exist.
❓ Architecture
advanced2:00remaining
Which AWS CLI command correctly updates the provisioned throughput of a DynamoDB table named 'Orders' to 10 read and 5 write units?
You want to increase the read capacity units to 10 and write capacity units to 5 for the 'Orders' table. Which command is correct?
Attempts:
2 left
💡 Hint
Provisioned throughput requires both read and write capacity units specified in a single option.
✗ Incorrect
Option A uses the correct syntax for updating provisioned throughput with the right values.
🧠 Conceptual
expert2:00remaining
What is the output of this AWS CLI command querying a DynamoDB table?
You run this command to query the 'Users' table for items where 'UserId' equals '123':
Assuming the table has one item with UserId '123' and attribute 'Name' with value 'Alice', what will the output JSON contain?
aws dynamodb query --table-name Users --key-condition-expression "UserId = :v1" --expression-attribute-values '{":v1":{"S":"123"}}'Assuming the table has one item with UserId '123' and attribute 'Name' with value 'Alice', what will the output JSON contain?
DynamoDB
aws dynamodb query --table-name Users --key-condition-expression "UserId = :v1" --expression-attribute-values '{":v1":{"S":"123"}}'
Attempts:
2 left
💡 Hint
DynamoDB returns attribute values with their types in the output.
✗ Incorrect
Option B correctly shows the attribute values with their types (S for string) and includes Count and ScannedCount keys.