Backend Interview: 15 In-Depth Questions
Every question dissected into three layers: Plain Answer → Interviewer Focus → High-Score Sample.
Questions reflect common real-world prompts. The three answer layers are illustrative examples, not real interview transcripts.
① Common plain answer
"On a composite index (a,b,c), queries must start from `a`. Skipping `a` fails to use the index, which shows in EXPLAIN."
Why this falls short: Recites superficial syntax without explaining how B+ Trees physically order composite keys hierarchically (subsequent columns are sorted only when preceding values match), nor how EXPLAIN key_len reveals effective prefix bytes during column-skipping or range queries.
② Interviewer follow-up logic
③ Quantified high-score answer
Mechanistically, composite indexes in B+ Tree storage engines sort keys lexicographically in declaration order: column `b` is ordered strictly within identical values of column `a`, and `c` within `b`. Skipping the leading prefix breaks hierarchical binary search traversal, collapsing efficient index range lookups into expensive full table scans. When diagnosing queries using EXPLAIN, the key_len metric exposes the exact prefix byte length utilized; querying `WHERE a = 1 AND c = 2` on an `(a,b,c)` index matches only column `a` for index navigation, leaving `c` to function merely as an engine filter. In our financial transaction ledger handling 12,000 queries per second, prefix mismatches triggered excessive disk random reads, inflating p99 latency to 380 milliseconds. By restructuring composite column precedence to match query cardinality and deploying Index Condition Pushdown (ICP) to prune rows at the storage layer, we reduced table lookups by 78% and stabilized p99 latency under 24 milliseconds without inflating write amplification.
Keep practicing in another role
After Backend Engineering, these are the adjacent roles to practice next
Frontend Interview: 15 In-Depth Questions
Core Tech · Architecture · BQ
View bank
Skill extensionFull-Stack Engineering Interview: 15 In-Depth Questions
End-to-End Delivery · Architecture · Full-Stack Perf · BQ
View bank
Same tech stackDevOps & SRE Interview: 15 In-Depth Questions
CI/CD · Reliability & SLO · Fault Tolerance · BQ
View bank
Don't see your role? Browse all 25 roles →
Difficult Situations & Follow-Up Questions
How do you explain being overqualified for a position in an interview?
Explain being overqualified in one direct sentence, address flight-risk concerns, and handle the retention probes interviewers ask next.
How do you explain transitioning from contract to full-time in an interview?
Explain transitioning from contract work to full-time employment objectively, prove long-term commitment, and answer the stability probes.
How do you explain staying at one company too long in an interview?
Explain a long tenure at one company in one confident sentence, highlight internal evolution, and answer the adaptability probes interviewers ask.
Related reading
When is the best time to apply for jobs in China?
Discover the best time to apply for jobs in China across Golden March, Silver April, and Autumn surges, complete with a 12-week timeline for expats.
When is the best time to apply for jobs in the US?
Discover the best time to apply for jobs in the US across Q1 and autumn surges, complete with a structured 12-week runway from resume to offer letters.
How to answer "why are you leaving your job"?
Answer "why are you leaving your job" by linking past contributions, systemic plateaus, and forward pull. Here is the framework without sounding bitter.
Finished the breakdown? Try a realistic mock interview
Start a round without signing up. Experience in-depth follow-up questions and surface your real project highlights.
No credit card required · Free 600 credits on signup