Recall & Review
beginner
What is the main benefit of using indexes in a database?
Indexes speed up data retrieval by allowing the database to find rows faster without scanning the entire table.
Click to reveal answer
beginner
When can indexes hurt database performance?
Indexes can slow down data modification operations like INSERT, UPDATE, and DELETE because the index must be updated too.
Click to reveal answer
intermediate
Why might having too many indexes be a problem?
Too many indexes increase storage space and slow down write operations, making the database less efficient overall.
Click to reveal answer
beginner
How do indexes help with query filtering conditions?
Indexes allow the database to quickly locate rows matching filter conditions without scanning every row, improving query speed.
Click to reveal answer
intermediate
When is it not useful to create an index on a column?
Creating an index on columns with very few unique values (low cardinality) often doesn't help because many rows share the same value.
Click to reveal answer
What operation is most negatively affected by indexes?
✗ Incorrect
Indexes slow down INSERT operations because the index must be updated whenever new data is added.
Which of these is a good reason to create an index?
✗ Incorrect
Indexes help queries that filter on specific columns by making data retrieval faster.
What happens if you create too many indexes on a table?
✗ Incorrect
Too many indexes slow down write operations because each index must be updated.
Which column is least suitable for indexing?
✗ Incorrect
Columns with few unique values (low cardinality) are less useful for indexing because many rows share the same value.
How do indexes improve SELECT queries?
✗ Incorrect
Indexes help SELECT queries by quickly finding rows that match filter conditions without scanning the whole table.
Explain when indexes help improve database performance and when they can cause problems.
Think about read vs write operations and data uniqueness.
You got /4 concepts.
Describe how indexes affect SELECT queries and INSERT operations differently.
Consider the cost of maintaining indexes during data changes.
You got /4 concepts.