0
0
DynamoDBquery~10 mins

AWS CLI for DynamoDB - Interactive Code Practice

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

Complete the command to list all DynamoDB tables in your AWS account.

DynamoDB
aws dynamodb [1]
Drag options to blanks, or click blank then click option'
Adescribe-table
Blist-tables
Ccreate-table
Ddelete-table
Attempts:
3 left
💡 Hint
Common Mistakes
Using describe-table instead of list-tables
Trying to create or delete tables when just listing
2fill in blank
medium

Complete the command to create a DynamoDB table named 'Books' with a primary key 'ISBN' of type string.

DynamoDB
aws dynamodb create-table --table-name Books --attribute-definitions AttributeName=ISBN,AttributeType=[1] --key-schema AttributeName=ISBN,KeyType=HASH --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
Drag options to blanks, or click blank then click option'
AS
BN
CB
DBOOL
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'N' which means number
Using 'B' which means binary
3fill in blank
hard

Fix the error in the command to delete a DynamoDB table named 'Users'.

DynamoDB
aws dynamodb [1] --table-name Users
Drag options to blanks, or click blank then click option'
Aremove-table
Bdestroy-table
Cdrop-table
Ddelete-table
Attempts:
3 left
💡 Hint
Common Mistakes
Using remove-table or drop-table which are invalid commands
Using destroy-table which does not exist
4fill in blank
hard

Fill both blanks to update the provisioned throughput of the 'Orders' table to 10 read and 5 write units.

DynamoDB
aws dynamodb update-table --table-name Orders --provisioned-throughput ReadCapacityUnits=[1],WriteCapacityUnits=[2]
Drag options to blanks, or click blank then click option'
A10
B5
C15
D20
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping read and write units
Using values not matching the requirement
5fill in blank
hard

Fill all three blanks to put an item with 'UserId' 123 and 'Name' 'Alice' into the 'Customers' table.

DynamoDB
aws dynamodb put-item --table-name Customers --item '{"UserId": {"[1]": "[2]"}, "Name": {"[3]": "Alice"}}'
Drag options to blanks, or click blank then click option'
AN
B123
CS
DBOOL
Attempts:
3 left
💡 Hint
Common Mistakes
Using string type for UserId number
Using wrong type letters