Recall & Review
beginner
What is an index in DynamoDB?
An index in DynamoDB is a data structure that improves the speed of data retrieval operations on a table by allowing queries on non-primary key attributes.
Click to reveal answer
intermediate
How does a Global Secondary Index (GSI) affect capacity in DynamoDB?
A GSI consumes additional read and write capacity units because it maintains a copy of data with different key attributes, increasing the cost of operations.
Click to reveal answer
intermediate
What is the difference in write capacity cost between a table and its Local Secondary Index (LSI)?
Writes to a table also consume write capacity units for its LSI because the index is updated synchronously, but LSIs do not consume separate read capacity units since they share the table's read capacity.
Click to reveal answer
beginner
Why can adding too many indexes increase your DynamoDB costs?
Because each index requires additional storage and capacity units for writes and reads, more indexes mean more resources used, which increases your overall cost.
Click to reveal answer
intermediate
How can you reduce the cost impact of indexes in DynamoDB?
You can reduce costs by limiting the number of indexes, choosing only necessary attributes to project, and using on-demand capacity mode to pay only for what you use.
Click to reveal answer
Which type of index in DynamoDB requires separate read and write capacity units?
✗ Incorrect
Global Secondary Indexes consume separate read and write capacity units because they maintain a separate copy of data.
What happens to write capacity units when you write to a table with a Local Secondary Index?
✗ Incorrect
Writes to the table also consume write capacity units for the LSI because it updates synchronously.
Which of the following increases DynamoDB costs the most?
✗ Incorrect
Multiple GSIs increase costs because each requires additional capacity and storage.
How can you reduce read capacity costs for an index?
✗ Incorrect
Projecting only necessary attributes reduces the size of data read, lowering read capacity costs.
Which index type shares read capacity units with the base table?
✗ Incorrect
LSIs share the table's read capacity units, unlike GSIs which have separate capacity.
Explain how Global Secondary Indexes affect DynamoDB capacity and cost.
Think about how GSIs duplicate data and require extra resources.
You got /4 concepts.
Describe strategies to manage and reduce the cost impact of indexes in DynamoDB.
Focus on minimizing resource use and paying only for what you need.
You got /4 concepts.