Defending Architecture Choices in Past Projects
BehavioralModel answerLast updated
Articulate technical decisions from a real project: the reasoning, alternatives evaluated, trade-offs accepted, and retrospective insights.
Select a project from your professional experience and describe the core technical choices you made. Discuss the architecture, design patterns, or technology selections you decided on. What other approaches did you explore? What compromises did you accept, and what would you do differently with what you know now?
Your response should clarify your personal contribution, the limitations and requirements you faced, how you assessed different paths forward, and the concrete results of your final approach.
Hints
Hint 1
Focus on a project where you drove decisions, not just executed tasks—you need material for deep technical follow-ups
Hint 2
Quantify outcomes wherever possible: performance metrics, cost savings, error rates, or team productivity gains
Hint 3
Be candid about downsides and what you sacrificed—every real choice involves giving something up
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer: Defending Architecture Choices
What This Question Reveals
This is a fundamentals assessment disguised as a project discussion. Interviewers probe for four qualities:
- Technical ownership. Can you explain not just what you built, but why the system works that way? Shallow answers suggest you implemented features without understanding the broader design.
- Principled decision-making. Did you establish clear criteria before selecting solutions, or did you choose technologies based on familiarity or trends?
- Trade-off awareness. Real engineering involves accepting downsides. Candidates who claim their approach had zero drawbacks signal either inexperience or lack of self-awareness.
- Reflective judgment. Can you evaluate your own work critically without being either defensive or overly apologetic?
Selecting Your Project
Choose a project with these characteristics:
- Genuine decision authority. You influenced or owned key architectural choices, not simply followed an existing blueprint.
- Meaningful constraints. There were real limitations—time, budget, compliance, scale—that shaped your options.
- Measurable outcomes. You can cite performance numbers, cost data, adoption metrics, or reliability improvements.
- Technical depth. You can defend the choice under detailed questioning about implementation, failure modes, and scaling behavior.
- Appropriate scope. A mid-sized project you owned completely is stronger than a small piece of a massive system.
Response Framework
Structure your answer to emphasize decisions, not just descriptions. Allocate most time to steps 3–6:
- Setting (20–30s). The system's purpose, users, and scale.
- Your responsibility. Distinguish your personal ownership from team collaboration. Use "I" for your decisions.
- Operating constraints. Hard boundaries like deadlines, team capacity, budget limits, regulatory requirements, or existing infrastructure.
- Alternative approaches. Two or three realistic options you evaluated, not obvious non-starters.
- Evaluation methodology. How you compared options: prototypes, performance tests, cost projections, design reviews, or technical spikes.
- Final choice and accepted compromises. What you selected and what you deliberately sacrificed.
- Measurable results. Concrete outcomes tied to your evaluation criteria.
- Retrospective. What you'd change based on subsequent learning, with specific reasoning.
Target 5–7 minutes for the initial explanation, then handle follow-up questions.
Example Response Structure
Project: Real-time notification delivery system for a collaborative editing platform.
Context and ownership.
- I served as the technical lead for a two-engineer team.
- The system delivered editing updates, comments, and @mentions to users across web and mobile clients.
- Traffic patterns: 50k concurrent users during peak hours, with burst rates up to 5k events per second during large document collaboration sessions.
- I owned the architecture design, wrote the technical specification, and implemented the core message routing logic.
Constraints.
- Six-week delivery timeline.
- Must integrate with existing authentication and presence services.
- Strict ordering guarantees required within a single document context.
- Infrastructure budget limited to $3k monthly at projected scale.
- Two-person team with no dedicated DevOps support.
Choice 1: Delivery mechanism.
- Alternatives evaluated:
- Polling: clients request updates every N seconds.
- WebSockets: persistent bidirectional connections.
- Server-Sent Events (SSE): server push over HTTP.
- Evaluation criteria:
- Latency from event to delivery.
- Client implementation complexity.
- Server resource consumption.
- Mobile battery impact.
- Compatibility with existing load balancers.
- Testing approach:
- Built minimal prototypes of each approach.
- Load tested with 10k simulated clients.
- Measured memory per connection and message latency distribution.
- Results:
- Polling achieved 2–5s latency but generated excessive server load from empty responses.
- WebSockets hit 80ms p95 latency but required 12MB memory per 1k connections and complicated our load balancing setup.
- SSE delivered 120ms p95 latency with 4MB per 1k connections, worked with our existing infrastructure, and had simple reconnection semantics.
- Accepted trade-offs:
- SSE is unidirectional, so client actions still used REST endpoints (not a meaningful limitation for our use case).
- Slightly higher latency than WebSockets at the tail.
- Required falling back to polling for older browsers (about 3% of traffic).
Choice 2: Message ordering.
- Options: global sequence numbers versus per-document sequence.
- Decision: Per-document sequence IDs with version vectors.
- Global ordering required distributed coordination, adding latency and complexity.
- Document-scoped ordering was sufficient for our consistency model.
- Version vectors let clients detect gaps and request missing messages.
- Accepted trade-offs:
- More complex client reconciliation logic.
- Required clients to maintain per-document state.
- Mitigated by implementing a reference client library that handled gap detection automatically.
Measured impact.
- Launched in five and a half weeks.
- p95 message delivery latency of 115ms in production.
- Infrastructure cost of $2,400 monthly at target scale (20% under budget).
- Zero message loss incidents in the first six months.
- Client integration time averaged 4 hours per platform (web, iOS, Android).
Retrospective assessment.
- I underestimated reconnection storms. When our reverse proxy restarted, 10k clients reconnected simultaneously and overwhelmed the service. I should have implemented exponential backoff with jitter from the start rather than adding it reactively.
- I would have built an integration test suite that simulated network partitions and client disconnections earlier. We caught several edge cases in production that synthetic tests would have revealed.
- The SSE decision remains correct for that context. I documented specific thresholds (100k concurrent connections or sub-50ms latency requirements) that would warrant reevaluating.
- I spent two weeks optimizing for 10x scale we didn't reach in the first year. I should have invested that time in observability and client-side error handling instead.
Why This Answer Succeeds
- Ownership clarity. It distinguishes individual decisions from team work.
- Credible alternatives. The options were legitimate, and the chosen solution wasn't the "best" on all dimensions—it was optimized for the actual constraints.
- Empirical foundation. It references load tests and prototypes, not just opinions or articles.
- Transparent compromises. It names specific downsides and explains how they were addressed or accepted.
- Quantified impact. The metrics directly connect to the stated evaluation criteria.
- Constructive reflection. The hindsight is actionable and distinguishes decisions that were wrong from decisions that were right for the project's maturity stage.
Anticipated Follow-Ups
- "At what point would this architecture need replacement? What would trigger that decision?"
- "How did you build alignment with skeptical team members or stakeholders?"
- "What was your first production incident and how did you respond?"
- "If the timeline was cut in half, what would you have eliminated?"
- "Walk me through your failure handling: what happens when message delivery fails or clients disconnect mid-stream?"
- "Why not choose the simpler solution?" Or conversely: "Why not design for 100x scale from day one?"
Memorize your key numbers. If you don't recall exact figures, say so and provide your best approximation rather than inventing data.