Skip to content
Sharp

SQL · interview question

What is the clearest sign that code around indexes and access patterns should be refactored?

Multiple choiceHardchapter-11-curatedpremiumsqlindexes-and-access-patterns
Choose one answer
Answer and explanation

Correct answer

C. When the rule is no longer easy to trace, explain, or change without breaking nearby behavior.

Why

A refactor is justified when the code stops communicating its intent. Create indexes to support the dominant filters and lookups instead of adding them blindly.

Test yourself on SQL

A free test with instant, explained results. No account needed.

Start free test
All SQL questions →