SQL – Performance and Indexing
Practice SQL performance and indexing interview questions. Cover indexes, query optimization, EXPLAIN plans, and common slow-query patterns. Answer questions and receive feedback on correctness and approach. Ideal for intermediate SQL and data engineer interview prep. First 2 questions are free with full feedback.
- Level Intermediate
- Questions 12
Try any track free — first 2 questions include full AI feedback. Subscribe to finish the track and unlock everything. Type or speak your answer — the first 2 questions include scoring and detailed AI feedback.
Sample sql – performance and indexing interview questions
Preview 6 questions from this track in quiz order. In the full quiz you answer one at a time — type or speak — then get a score and feedback.
-
What is a database index and why is it used?
What a strong answer includes
Speeds up reads; costs extra storage and slower writes.
-
When would you add an index?
What a strong answer includes
Columns frequently used in WHERE, JOIN, or ORDER BY.
-
What is the downside of too many indexes?
What a strong answer includes
Slower inserts/updates and more storage.
-
Explain a covering index.
What a strong answer includes
Index contains all columns needed by the query.
-
How do you identify a slow query?
What a strong answer includes
Uses EXPLAIN or query logs.
-
What does a sequential scan mean in an EXPLAIN plan?
What a strong answer includes
Full table scan; often a sign a better index is needed.