
One of the most common database questions in Data Analyst and SQL Developer interviews — and most candidates answer it wrong.
"Your database is slow. Would you use Indexing or Partitioning?"
Saying "just add an index" without reasoning gets you rejected. Interviewers want to see how you think — not just what you know.
What's inside this guide:
— What Indexing is and when to use it
— What Partitioning is and when to use it
— Decision rule — how to choose between them in any situation
— How both work together in real production systems
— 5 scenario-based interview questions with wrong approach and correct answer
— Sample interview answer you can use directly
Companies that ask this: Google, Flipkart, Swiggy, PhonePe, Amazon, Razorpay
Useful for: Data Analyst, SQL Developer, Data Engineer, Backend Engineer interviews