0
0
DynamoDBquery~10 mins

Attribute types (S, N, B, BOOL, L, M) 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 a string attribute type in DynamoDB.

DynamoDB
AttributeValue = {"[1]": "Hello"}
Drag options to blanks, or click blank then click option'
AN
BBOOL
CB
DS
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'N' which stands for Number instead of String.
2fill in blank
medium

Complete the code to specify a number attribute type in DynamoDB.

DynamoDB
AttributeValue = {"[1]": "123"}
Drag options to blanks, or click blank then click option'
AS
BN
CBOOL
DL
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'S' which stands for String instead of Number.
3fill in blank
hard

Fix the error in the code to correctly specify a boolean attribute type in DynamoDB.

DynamoDB
AttributeValue = {"[1]": true}
Drag options to blanks, or click blank then click option'
ABOOL
BB
CS
DN
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'B' which means Binary instead of 'BOOL' for boolean.
4fill in blank
hard

Fill both blanks to create a list attribute with two string items in DynamoDB.

DynamoDB
AttributeValue = {"[1]": [ {"S": "apple"}, {"[2]": "banana"} ]}
Drag options to blanks, or click blank then click option'
AL
BN
CS
DBOOL
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'N' for list or string items.
5fill in blank
hard

Fill all three blanks to create a map attribute with two keys and their string values in DynamoDB.

DynamoDB
AttributeValue = {"[1]": {"name": {"[2]": "John"}, "city": {"[3]": "Paris"}}}
Drag options to blanks, or click blank then click option'
AL
BM
CS
DBOOL
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'L' for map or 'BOOL' for string values.