Questions: Index Types: B-Trees, Hash Indexes, and Bitmap Indexes

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A data warehouse table has 50 million rows with a 'region' column containing 8 distinct values (North, South, East, West, etc.). Analysts frequently query WHERE region = 'West' AND status = 'Active'. Which index type is best suited for this column?

AB-tree, because it handles equality predicates efficiently
BHash index, because equality lookups are O(1) on a hash
CBitmap index, because the low cardinality makes bitwise AND operations across columns extremely fast
DNo index — a sequential scan is faster when matching a large fraction of rows
Question 2 Multiple Choice

An application needs to look up user records by UUID (a globally unique 128-bit identifier) using only exact-match queries. The table has 100 million rows. Which index would give the best lookup performance?

AB-tree, because it is the default and handles all query types
BHash index, because UUIDs are high-cardinality and only equality lookups are needed, giving O(1) average performance
CBitmap index, because UUIDs have high cardinality and low repetition
DNo index — UUID lookups are always sequential scans
Question 3 True / False

A hash index on a column cannot be used to satisfy an ORDER BY clause on that column.

TTrue
FFalse
Question 4 True / False

Bitmap indexes are ideal for high-write OLTP systems because the compact bit-array format reduces storage overhead during frequent updates.

TTrue
FFalse
Question 5 Short Answer

Why can't a hash index support range queries, and what structural property of B-tree indexes allows them to do so efficiently?

Think about your answer, then reveal below.