0
0
DynamoDBquery~5 mins

Index capacity and cost in DynamoDB - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AGlobal Secondary Index (GSI)
BLocal Secondary Index (LSI)
CPrimary Key
DNo index requires capacity units
What happens to write capacity units when you write to a table with a Local Secondary Index?
AWrite capacity units are consumed for both the table and the LSI
BOnly the table consumes write capacity units
COnly the LSI consumes write capacity units
DNo write capacity units are consumed
Which of the following increases DynamoDB costs the most?
AProjecting only keys in indexes
BUsing only the primary key
CUsing on-demand capacity mode
DAdding multiple Global Secondary Indexes
How can you reduce read capacity costs for an index?
AAdd more GSIs
BProject only necessary attributes
CUse larger read capacity units
DAvoid using indexes
Which index type shares read capacity units with the base table?
APrimary Key
BGlobal Secondary Index (GSI)
CLocal Secondary Index (LSI)
DNone
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.