Questions: Denormalization and Performance Trade-offs

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An e-commerce database stores orders in an `orders` table and customer names in a `customers` table. The order listing page runs 50,000 joins per second. A developer proposes adding a `customer_name` column to `orders`. What is the primary risk of this change?

AThe query will become slower because wider rows take longer to scan
BThe database will run out of disk space due to the duplicated names
CIf a customer's name changes, every row in `orders` must be updated; partial failures can leave the data inconsistent
DSQL cannot reference a denormalized column in a SELECT statement
Question 2 Multiple Choice

A team is considering denormalizing a heavily-joined schema. What should drive the decision?

ADenormalization should be applied whenever more than two tables are joined, as a general best practice
BDenormalization should be applied after profiling shows joins are the actual performance bottleneck, and after checking whether indexes or materialized views solve the problem first
CDenormalization should be avoided entirely because it always reduces data integrity
DDenormalization should be applied immediately to any table that is read more than written
Question 3 True / False

Denormalization intentionally introduces redundancy in order to improve read performance at the cost of more complex writes.

TTrue
FFalse
Question 4 True / False

Denormalization usually improves database performance and should be applied to any schema that has query performance issues.

TTrue
FFalse
Question 5 Short Answer

Why should the decision to denormalize be driven by measurement rather than intuition, and what should be measured?

Think about your answer, then reveal below.