0
0
DynamoDBquery~10 mins

Index projection types (ALL, KEYS_ONLY, INCLUDE) 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 set the projection type to include all attributes in a DynamoDB index.

DynamoDB
Projection: { ProjectionType: "[1]" }
Drag options to blanks, or click blank then click option'
AALL
BINCLUDE
CNONE
DKEYS_ONLY
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing KEYS_ONLY will only include key attributes, not all.
Selecting INCLUDE requires specifying non-key attributes explicitly.
2fill in blank
medium

Complete the code to set the projection type to include only the index keys in a DynamoDB index.

DynamoDB
Projection: { ProjectionType: "[1]" }
Drag options to blanks, or click blank then click option'
AKEYS_ONLY
BNONE
CINCLUDE
DALL
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing ALL includes all attributes, not just keys.
INCLUDE requires specifying attributes explicitly.
3fill in blank
hard

Fix the error in the projection type to include specific non-key attributes in a DynamoDB index.

DynamoDB
Projection: { ProjectionType: "[1]", NonKeyAttributes: ["Attribute1", "Attribute2"] }
Drag options to blanks, or click blank then click option'
AKEYS_ONLY
BINCLUDE
CALL
DNONE
Attempts:
3 left
💡 Hint
Common Mistakes
Using ALL ignores NonKeyAttributes because it includes everything.
KEYS_ONLY does not allow specifying extra attributes.
4fill in blank
hard

Fill both blanks to define a DynamoDB index projection that includes only keys and specific attributes.

DynamoDB
Projection: { ProjectionType: "[1]", NonKeyAttributes: ["[2]"] }
Drag options to blanks, or click blank then click option'
AINCLUDE
BALL
CAttributeX
DKEYS_ONLY
Attempts:
3 left
💡 Hint
Common Mistakes
Using KEYS_ONLY with NonKeyAttributes causes errors.
ALL projection type ignores NonKeyAttributes.
5fill in blank
hard

Fill all three blanks to define a DynamoDB index projection with INCLUDE type and two specific non-key attributes.

DynamoDB
Projection: { ProjectionType: "[1]", NonKeyAttributes: ["[2]", "[3]"] }
Drag options to blanks, or click blank then click option'
AKEYS_ONLY
BAttributeA
CAttributeB
DINCLUDE
Attempts:
3 left
💡 Hint
Common Mistakes
Using KEYS_ONLY projection with NonKeyAttributes causes errors.
Forgetting to list all desired attributes in NonKeyAttributes.