5 questions to test your understanding
A developer argues that validating email uniqueness only in application code is sufficient — no UNIQUE constraint needed in the schema. What is the critical flaw in this reasoning?
A system has Students and Courses where each student can enroll in many courses and each course can have many students. How should this relationship be represented?
A fully normalized schema minimizes redundancy but may require expensive joins for common queries, making deliberate denormalization a valid design tradeoff in practice.
Because schemas can usually be altered later with ALTER TABLE, it is safe to defer schema design decisions until after the application reaches production.
Explain why enforcing data integrity at the schema level is preferable to relying solely on application code, and give one concrete example.