0
0
DynamoDBquery~5 mins

Index projection types (ALL, KEYS_ONLY, INCLUDE) in DynamoDB - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the ALL projection type mean in DynamoDB indexes?
The ALL projection type means that all attributes from the source table are copied into the index. This allows queries on the index to access any attribute without fetching from the main table.
Click to reveal answer
beginner
What attributes are included when using the KEYS_ONLY projection type?
The KEYS_ONLY projection type includes only the primary key attributes of the main table and the index keys. No other attributes are copied into the index.
Click to reveal answer
intermediate
Explain the INCLUDE projection type in DynamoDB indexes.
The INCLUDE projection type copies the primary key attributes plus any additional specified non-key attributes into the index. This lets you include only the attributes you need for your queries.
Click to reveal answer
intermediate
Why might you choose KEYS_ONLY projection over ALL?
Choosing KEYS_ONLY reduces storage and write costs because fewer attributes are copied into the index. It is useful when queries only need keys to fetch full items later.
Click to reveal answer
intermediate
How does the INCLUDE projection type help optimize query performance?
By including only specific non-key attributes, INCLUDE projection reduces index size and cost compared to ALL, while still allowing queries to get needed data directly from the index without extra fetches.
Click to reveal answer
Which projection type copies all attributes from the main table into the index?
AALL
BKEYS_ONLY
CINCLUDE
DNONE
If you want an index to include only the primary key attributes and no others, which projection type should you use?
AALL
BINCLUDE
CKEYS_ONLY
DPARTIAL
Which projection type allows you to specify extra non-key attributes to include in the index?
AALL
BINCLUDE
CNONE
DKEYS_ONLY
What is a main benefit of using KEYS_ONLY projection?
AAutomatically indexes all attributes
BIncludes all attributes
CFaster writes than ALL
DLower storage and write costs
Which projection type would you choose to optimize index size but still include some needed attributes?
AINCLUDE
BALL
CKEYS_ONLY
DFULL
Describe the differences between ALL, KEYS_ONLY, and INCLUDE projection types in DynamoDB indexes.
Think about how much data each projection type copies into the index.
You got /3 concepts.
    Explain when you might choose each projection type for a DynamoDB index.
    Consider query needs and cost trade-offs.
    You got /3 concepts.