Tell me about the hardest obstacle you overcame on a project
BehavioralModel answerLast updated
Share a specific technical or collaborative challenge, walk through how you tackled it, and reflect on the outcome.
In a behavioral interview for a software engineering role, the interviewer asks:
Walk me through the most demanding obstacle you encountered on a project, whether in school, an internship, or a full-time role. What made it difficult, what steps did you personally take to address it, and how did it turn out?
Aim for a structured 2–3 minute response that a follow-up question can probe further.
Hints
Hint 1
Pick a challenge with real stakes and enough technical or organizational complexity to invite follow-up questions.
Hint 2
Structure your response using STAR, but dedicate the bulk of your time to the specific actions you drove.
Hint 3
Quantify the result where possible and include a brief reflection on what you learned or would do differently.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
What the Interviewer Is Looking For
This question seems open-ended, but the interviewer is really evaluating several specific signals:
- Did you choose something genuinely hard? Your choice reveals what you consider a real challenge. A trivial problem sends the wrong signal.
- Personal ownership. Did you drive the resolution, or were you just nearby when someone else fixed it? Listen to your own language: "I decided" and "I implemented" score better than "we ended up doing."
- Comfort with ambiguity. Strong answers show you acting when the path forward was unclear: forming hypotheses, gathering evidence, and narrowing the scope before jumping to a fix.
- Engineering substance. For a software role, the story should include enough technical detail that a follow-up like "How did you figure out the root cause?" gets a concrete answer.
- Collaboration without formal authority. Did you bring in the right people at the right time, push back constructively, or align stakeholders?
- Self-awareness. Do you understand why your approach worked and what you would improve next time?
How to Structure the Answer
Use the STAR framework (Situation, Task, Action, Result) with a brief reflection added at the end. For a 2–3 minute answer, allocate time roughly like this:
- Situation (~20s): Set the stage with just enough context: the project, your role, and what was at stake.
- Task / Why it was hard (~25s): Explain your responsibility and name the specific factors that made it difficult.
- Action (~75s): This is the core. Walk through the decisions you made, the alternatives you considered, and your reasoning.
- Result (~20s): Give a quantified outcome.
- Reflection (~15s): Share what you learned or would change.
The most common mistake is spending most of the time on context and barely touching the actions. Flip that ratio.
Naming the Difficulty Explicitly
Since the question directly asks what made it hard, answer that directly. The best challenges usually combine two or more of these factors:
- Technical uncertainty: an unfamiliar system, no existing precedent, or an elusive root cause.
- Constraints: a fixed deadline, limited access to resources, or production risk.
- Interpersonal complexity: stakeholders with conflicting priorities, a teammate departing, or a disagreement about direction.
Name them concisely. For example: "It was difficult for three reasons: the failure only appeared in production, I had been on the codebase for six weeks, and a downstream billing system depended on the data."
Example Answer Outline
Situation (20s): During an internship, you were responsible for migrating a batch-based event pipeline to a streaming system. Two weeks before the cutover, the new pipeline was dropping about 0.5% of events, and only in production.
Task / Challenge (25s): You owned the migration, so fixing the drops fell to you. The drops did not reproduce in staging, you were still learning the codebase, and downstream billing reports relied on this data. Slipping the launch meant keeping an expensive legacy job running for another quarter.
Action (75s):
- Measured before guessing. Rather than trying fixes blindly, write a reconciliation job that compares event IDs between the old and new pipelines by hour. The data shows the drops cluster around partition rebalances, not random loss.
- Form and test a hypothesis. That pattern points to offset commits. Read the consumer code and discover offsets are committed before the downstream write is acknowledged, so a rebalance mid-batch loses in-flight events.
- Reproduce deliberately. Build a staging test that forces rebalances under load, reproducing the loss for the first time.
- Evaluate alternatives and pick a fix. Exactly-once transactions are considered but judged too risky to adopt in two weeks. Instead, move the commit to after write acknowledgment and make the sink idempotent on event ID, so retries produce duplicates that can be safely deduplicated.
- Bring in reviewers at the right time. Write a one-page design note and review it with your mentor and the on-call lead. They catch a deduplication edge case with late-arriving events, which you add a test for.
- De-risk the cutover. Run both pipelines in parallel for a week with the reconciliation job acting as a gate.
Result (20s): Event loss drops from 0.5% to zero across 1.2 billion events in the parallel run. The cutover slips by one day instead of a quarter, the legacy job is retired, and the reconciliation job becomes a permanent monitor.
Reflection (15s): The key takeaway is to invest in measurement early; the reconciliation tool turned a vague report into a solvable problem. Next time, seek design review earlier rather than after prototyping.
Picking the Right Story
- Choose a situation where your own actions clearly changed the outcome. Being present for a team crisis does not qualify.
- For a software role, prefer a story with real engineering depth. A purely interpersonal story works only if the stakes are genuine.
- A partial success with honest reflection can score as well as a clean win. It often reads as more credible.
- Have one backup story ready in case the interviewer asks for another.
Anticipating Follow-up Questions
Expect probes like:
- "What alternatives did you weigh, and why did you rule them out?"
- "What would have happened if you had not addressed it?"
- "Did anyone disagree with your approach, and how did you handle it?"
- "What was specifically your contribution versus the team's?"
- "What would you do differently?"
If you cannot answer these with specifics, pick a different story.
Common Mistakes
- Choosing a trivial challenge. Learning a new framework for a class project does not signal much unless the stakes were real.
- Using "we" throughout. Acknowledge the team, but make your own decisions unmistakable.
- Overloading on setup. The interviewer scores actions, not background.
- No quantified results. "It went well" is weak. Give error rates, latency numbers, users affected, or deadlines met.
- Blaming others. Framing a teammate or manager as the problem signals poor collaboration. Describe people issues neutrally and focus on your response.
- A frictionless narrative. Stories with no setbacks sound rehearsed. Mention a dead end or a correction you made along the way.
- Skipping reflection. One sentence of genuine insight shows growth and self-awareness.