SQL & MongoDB interview questions for backend roles.
Database questions separate people who can write a query from people who can keep it fast and correct under load. Expect indexing, transactions and modelling trade-offs, not just SELECT statements.
Built with Nagendra Kumar, IIT Delhi graduate
· interviewed 300+ engineers
Readiness assessment
Know exactly where you stand in Databases & Data Modelling.
- Overall readiness score out of 100
- Skill-wise breakdown across 7 areas
- Your gaps, ranked by priority
- An action plan and simple explanations for every miss
₹49
28 questions · 30 min · instant report
What interviewers check
Four things decide this round.
Queries
Joins, GROUP BY and HAVING, and anti-joins like “customers with no orders”.
Indexing
How compound indexes work and the write cost of every index.
Transactions
Isolation, race conditions and atomic updates.
Data modelling
When to embed versus reference in MongoDB.
Try before you pay
One question.
See how you think.
This is the style of every question in the assessment: real situations, not trivia, with an explanation for each answer. The full test covers 28 questions across 7 skills.
Which SQL clause keeps only customers with more than 5 orders after grouping?
WHERE filters rows before grouping; HAVING filters groups after aggregation: GROUP BY customer_id HAVING COUNT(*) > 5.
Mistakes that cost offers
- Adding an index for every column.
- Read-modify-write updates that race under concurrency.
- Copying a relational schema straight into MongoDB.
How to practise
Understand indexing (incl. compound indexes), joins, transactions/isolation and when to embed vs reference in MongoDB.
- Model one domain in both PostgreSQL and MongoDB and compare queries.
- Use EXPLAIN / explain() to prove an index is used.
- Implement a safe money transfer with a transaction or atomic update.
Stop guessing what to study
Start free. Go further if you need to.
One-time prices. Add one-to-one guidance any time.
30-min test
Job Readiness Assessment
Free₹99one-time
One-time payment · Python / AI Backend Engineer
What you get
- Role-specific readiness assessment (28 questions, 30 min)
- Overall readiness score and skill-wise breakdown
- Strengths and skill gaps across 7 core areas
- Personalised assessment report with answer explanations
How it works
- 1 Unlock it at checkout
- 2 Take the 28-question test (30 min)
- 3 Get your report instantly
Best for: Candidates who want to know exactly where they stand.
Secure checkout · Full refund if not started
Test + 30-min session · Most chosen
Assessment + Personal Guidance
₹500₹599one-time
₹99 assessment + ₹500 for a 30-minute one-to-one session
What you get
- Everything in the ₹99 assessment
- One-to-one review of your assessment results
- Identify your highest-priority skill gaps
- Guidance on what to learn and practise next
- Personalised next-step action plan
How it works
- 1 Pay ₹599 securely
- 2 Take the test and get your report
- 3 Review it one-to-one on Google Meet
Best for: Candidates who want a clear improvement roadmap.
Mentoring is guidance to help you improve, not a job guarantee.
Secure checkout · Full refund if not started
60-min session
Personal Mentoring
₹999one-time
60-minute one-to-one session · No assessment required
What you get
- Deep-dive on your career and technical challenges
- Detailed review of your Python / backend skills and projects
- Interview preparation priorities and mock questions
- Written, personalised action plan after the session
How it works
- 1 Pay ₹999 securely
- 2 Pick a 60-minute slot
- 3 Meet on Google Meet, get a written plan
Best for: Candidates who already know what they need help with.
Mentoring is guidance to help you improve, not a job guarantee.
Secure checkout · Full refund if not started
Your mentor
Nagendra Kumar
IIT Delhi graduate · 10+ years
300+
engineers interviewed
50+
engineers hired
MeetInsights
GoMechanic
Delhivery
FAQ
Questions, answered.
More interview prep guides
All guidesKnow your readiness.
Plan your next move.
30 minutes from now, you'll know exactly what to work on.
Check my readiness · FreeHaven't started yet? Full refund within 7 days.