Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to specify a string attribute type in DynamoDB.
DynamoDB
AttributeValue = {"[1]": "Hello"} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'N' which stands for Number instead of String.
✗ Incorrect
In DynamoDB, the attribute type for strings is S.
2fill in blank
mediumComplete the code to specify a number attribute type in DynamoDB.
DynamoDB
AttributeValue = {"[1]": "123"} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'S' which stands for String instead of Number.
✗ Incorrect
In DynamoDB, the attribute type for numbers is N.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'B' which means Binary instead of 'BOOL' for boolean.
✗ Incorrect
The correct attribute type for boolean values in DynamoDB is BOOL.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'N' for list or string items.
✗ Incorrect
The outer attribute type for a list is L, and each string item inside uses S.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'L' for map or 'BOOL' for string values.
✗ Incorrect
The map attribute type is M, and the string values inside use S.