Hardest Technical Call: A Two-Project Retrospective
BehavioralModel answerLast updated
Describe the toughest technical decision from each of two different projects, covering options, trade-offs, validation, and what you would change in hindsight.
Scenario
You are in a senior-level onsite conversation. The interviewer asks you to pick two engineering projects from your career and, for each, to describe the single hardest technical decision you faced.
For each project, cover these points:
- Options. Which realistic alternatives did you weigh?
- Tension. Which trade-off or constraint made the choice hard (for example latency vs. consistency, or maintainability vs. time to market)?
- Validation and hindsight. How did you check that the choice was sound, and would you decide the same way today?
What a strong answer shows
- Technical depth. Spend your time on mechanisms such as data structures, architecture, algorithms, or system internals, not on a product overview.
- Trade-off awareness. Make clear what you gave up in exchange for what you gained. No decision is free.
- Ownership. Show that you shaped the decision, accept responsibility for the debt it created, and learned from how it played out.
Suggested shape for each project
- Context: the technical scope, scale, and your role.
- Crossroads: the tension stated in one sentence.
- Evaluation criteria: the explicit factors you used to compare options.
- Result and reflection: what happened once real production traffic hit it.
Prepare roughly 6 to 8 minutes per project, and leave time for follow-up questions.
Hints
Hint 1
Choose two projects that differ in layer and constraint (for example a backend scale problem and a client or data problem) so you show range rather than repeating one story.
Hint 2
Make the options real: each should have a concrete mechanism and a genuine advantage. If an alternative is obviously bad, it was not a decision.
Hint 3
State your criteria in priority order and back the choice with evidence such as profiling, load tests, shadow traffic, or a prototype, using approximate numbers.
Hint 4
Always include a second-order problem your choice caused, how you mitigated it, and one thing you would do differently, such as adding a guardrail metric earlier.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
What the interviewer is really scoring
This is a behavioral question with a technical core. The interviewer wants to see how you reason when no option is clean. Typical scoring dimensions:
- Depth: you can discuss partition keys, cache invalidation, memory layout, or render pipelines without drifting into product language.
- Trade-off literacy: you name the costs of your choice. "There was no downside" is a red flag.
- Agency: you framed the options and drove the outcome, rather than executing someone else's call.
- Honest reflection: you can describe a problem your decision created and how you handled it.
A reliable structure (about 7 minutes per project)
- Context (30-45s): system, scale, team size, your role. Example: "Tech lead of three engineers, about 250K events/sec at peak."
- Conflict (one sentence): "We needed counts fresh within a minute but could not afford per-event writes to the primary store."
- Options (2-3): each with its mechanism, its upside, and its cost.
- Decision criteria: explicit and ordered, such as correctness, latency, cost, reversibility, on-call burden, team familiarity.
- Validation: how you earned confidence before committing.
- Retrospective: production numbers, the side effect, the fix, and whether you would repeat the choice.
Pick two projects that differ in layer and failure mode so you demonstrate range.
Example 1: Backend, high-write counters
Context. Per-item engagement counters feeding a ranking system. Peak about 250K events/sec, and a viral item could take 5K+ increments/sec.
Conflict. Ranking needed counts fresh within 60 seconds. Direct row increments in a sharded relational store caused hot-row lock contention and replication lag.
Options.
- Sub-counter sharding in the DB. Strongly consistent and simple, but write amplification and hot shards remain, and reads must sum N rows.
- In-memory cache as source of truth with periodic flush. Very fast, but a node failure loses counts and you must reconcile.
- Log-based stream aggregation. Partition events by item ID, pre-aggregate in short windows, write batched deltas. This collapses thousands of writes into one and provides a replayable log, but adds operational complexity and raises exactly-once questions.
Criteria (in order). No lost counts, freshness under 60s, DB write reduction above 10x, on-call burden.
Decision. I advocated for the stream approach because replayability gave a recovery path the cache option lacked, and sub-counter sharding would have needed roughly 4x more shards.
Validation. Replayed a day of production traffic at 2x speed in staging. Ran in shadow mode for two weeks against the legacy batch job with a target under 0.1% per-item divergence. DB write rate fell from about 250K/s to about 9K/s.
Retrospective. Consumer rebalances during deploys caused double counting, inflating some items by 2-3% and distorting trending. I fixed it with checkpointing and transactional sinks, an idempotency key (window ID plus partition) on writes, and a nightly reconciliation against the raw log. I would choose it again, but design idempotent writes from day one rather than as hardening.
Example 2: Client performance
Context. An Android image-grid home feed where about 18% of sessions had janky frames (over 16ms), worst on low-end devices.
Conflict. Rewrite on a new rendering architecture versus fix incrementally: long-term maintainability against speed to impact and regression risk.
Options.
- Full rewrite. Cleaner code, but about two quarters of work, a feature freeze, and unknown low-end performance.
- Targeted fixes. Move image decode and downsampling off the main thread, pre-size views from aspect-ratio metadata so layout does not jump, tune recycling pools per item type.
- Hybrid. Do the targeted fixes now, and rewrite only the cell component behind an interface.
Criteria. p90 frame-time gain per engineer-week, regression risk, reversibility, whether it unblocks later migration.
Decision. Hybrid. Systrace profiling showed roughly 70% of main-thread time was decode and re-layout, so a framework rewrite would not touch the root cause.
Validation. Prototype first, then a flagged staged rollout and an A/B test. Janky sessions dropped from 18% to 6%, with a small gain in time spent.
Retrospective. Off-thread decode raised peak memory and OOM crashes ticked up on 2GB devices. I bounded the decode queue, chose bitmap configs by device class, and reduced prefetch depth on low-RAM devices. Next time I would put memory and crash rate in the experiment guardrails from the start.
Handling follow-ups
- Disagreement: turn opinion into evidence. Write a short design doc with a failure-mode table, run a time-boxed spike, and let measurements settle it.
- "What if scale grew 10x?" Identify which assumption breaks first (partition skew, memory budget) and what you would change.
- "What would you do differently?" Give a specific, concrete change, not a generic "more testing."
Common mistakes
- Product narration that uses time without showing depth.
- Straw-man alternatives that make the decision look trivial.
- No numbers. Approximate QPS, latency, and error rates are far better than vague claims.
- Hiding behind "we." Say what you proposed, built, and measured.
- A flawless outcome. It signals weak reflection.
- Two similar stories, which waste the chance to show range.
- Overrunning time, leaving no room for probing. Rehearse to about 7 minutes each.