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?
✗ Incorrect
The ALL projection type copies every attribute from the main table into the index.
If you want an index to include only the primary key attributes and no others, which projection type should you use?
✗ Incorrect
KEYS_ONLY projection includes only the primary key attributes of the table and index.
Which projection type allows you to specify extra non-key attributes to include in the index?
✗ Incorrect
INCLUDE projection lets you add specific non-key attributes to the index.
What is a main benefit of using KEYS_ONLY projection?
✗ Incorrect
KEYS_ONLY reduces storage and write costs by copying fewer attributes.
Which projection type would you choose to optimize index size but still include some needed attributes?
✗ Incorrect
INCLUDE projection balances size and attribute availability by including only selected attributes.
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.