Lesson 6 of 32The interview
Behavioral Interviews and STAR
Build a bank of 5–7 STAR stories that answer almost any behavioral question with clear, measurable results.
Behavioral rounds sink more strong engineers than any algorithm. They walk in without stories, ramble for six minutes about a project, and never say what they did. The fix is preparation you do once: a handful of well-told stories that you can point at almost any question.
What they are really looking for
A behavioral interview asks about your past to predict your future: "Tell me about a time when…". The interviewer has a list of traits to score, and each question is a probe for one of them.
| Trait | What they want to see | Typical question |
|---|---|---|
| Ownership | You take responsibility beyond your ticket and follow through | "Tell me about a time you went beyond your role." |
| Collaboration | You work well with others and make the team better | "Describe a project where you relied on other people." |
| Conflict | You disagree respectfully and resolve it with data | "Tell me about a disagreement with a teammate." |
| Failure and growth | You admit mistakes, fix them, and change your process | "Tell me about a time you failed." |
| Impact | Your work changed something measurable | "What's the project you're most proud of?" |
| Ambiguity | You make progress when the path is unclear | "Tell me about a time you had unclear requirements." |
For junior roles the bar is not "led a team of ten". Class projects, internships, open source, a part-time job, or a side project all count. What matters is that the story shows the trait clearly.
The STAR method
STAR is a structure for telling a story so the interviewer can score it:
- Situation: the context, in one or two sentences. Where, when, what was going on.
- Task: what you were responsible for, or the problem to solve.
- Action: what you did, step by step. This is 60% of the answer.
- Result: what happened, with a number if possible, plus what you learned.
Aim for about two minutes. Use "I", not "we", for the actions: the interviewer is hiring you, not your team.
Most people spend too long here. The interviewer needs context, not a history of the company.
Put these sentences of a STAR answer in order.
- Tap the steps below in the right order.
Weak vs strong
Same question: "Tell me about a time you improved something."
Weak: "We had a slow app, so we worked on performance and made it a lot faster. It was a team effort and everyone learned a lot. I think it went really well."
Strong: "In my capstone project, our React dashboard took 6 seconds to load, and testers were quitting before it rendered (S). I owned frontend performance (T). I profiled it with the React DevTools Profiler and found we re-rendered a 2,000-row table on every keystroke in the search box. I memoised the rows, debounced the search by 200 ms, and moved the filtering into a
useMemo(A). Load time dropped to 1.2 seconds and typing became instant. In user testing, completion of the main task went from 4 of 10 testers to 9 of 10 (R)."
The weak answer has no "I", no specifics, and no result. The strong one has a number before and after, specific tools, and a clear personal action.
Quantifying results
Numbers make a result real. If you do not have exact figures, use honest approximations ("about", "roughly") and say how you know.
- Time: "cut the build from 12 minutes to 4"
- Scale: "for about 300 weekly users", "processed 50,000 rows a night"
- Quality: "zero failed imports in two months", "test coverage from 40% to 85%"
- People: "onboarded 3 new teammates", "the guide was reused by two other teams"
- Money or effort: "saved about 5 hours a week of manual checking"
If there truly is no number, describe a concrete change in behaviour: "after that, the team made design docs a required step before any new service."
The story bank
You do not need a story per question. You need 5–7 stories that each show several traits, and you pick the best fit in the moment. Write each one down in STAR form, practice it out loud, and tag it with the questions it answers.
| Story | Shows |
|---|---|
| Fixed the failing nightly import | Ownership, debugging, impact |
| Disagreed with a teammate about the database | Conflict, communication, data-driven decisions |
| Shipped the capstone with half the team gone | Ambiguity, leadership, prioritising |
| Broke production with a bad migration | Failure, accountability, process improvement |
| Mentored a classmate through their first PR | Collaboration, helping others |
| Learned Go in two weeks for a hackathon | Learning fast, curiosity |
Match each question to the story from the bank above that fits it best.
Other shapes: CARL and SAIL
STAR is the most common structure, but you will see two others in prep guides and occasionally in a company's own interview advice. They are variations on the same idea, not competing methods.
- CARL: Context, Action, Result, Learning. It folds Situation and Task into one short context and makes the lesson an explicit fourth part. Useful for failure and growth questions, where the learning is what is being scored.
- SAIL: Situation, Action, Impact, Learning. It renames Result to Impact to push you past "it shipped" toward who benefited and by how much.
Pick one shape and practice it until it is automatic. The interviewer does not care which acronym you use. They care that the context is short, the actions are yours, and the ending has a measurable result and a lesson. If you use STAR, simply make sure the Result includes the lesson, and you have CARL anyway.
Rewriting a conflict story
"Tell me about a disagreement with a coworker" is one of the most common questions, and it is easy to answer in a way that makes you look difficult to work with.
Weak: "A teammate wanted to use MongoDB for our project, which made no sense because our data was relational. I explained why Postgres was better, but he would not listen, so I went to our lead, who agreed with me. We used Postgres and it worked out fine."
Strong: "On a four-person team project, a teammate proposed MongoDB for our booking app. I thought our data was relational, with bookings tied to users and rooms, but I realised I had not actually tested that (S, T). Instead of arguing in the group chat, I asked him for 20 minutes to go through it together. I wrote out our five main queries and we sketched each in both databases. Three of them needed joins, which would have meant duplicating room data in Mongo. He pointed out that one feature, free-form room notes, was a better fit for a document, so we agreed on Postgres with a
jsonbcolumn for the notes (A). We shipped on time, and he later said the query walkthrough was how he wanted to settle design questions from then on. I learned to bring the disagreement to concrete examples early rather than debating opinions (R)."
The weak version makes the other person wrong, escalates instead of resolving, and has no lesson. The strong one shows you checked your own assumption, moved the argument to evidence, gave the other person credit for a good point, and kept the relationship intact. Escalating to a manager is sometimes right, but only after you tried to resolve it directly, and you should say that you did.
Failure answers that do not disqualify you
Behavioral Interviews by Level covers how to choose an honest failure story for your level. Two extra rules keep a true story from costing you the offer:
- Do not pick an integrity failure. Hiding a mistake, taking credit for someone's work or ignoring a security rule is not a "growth" story. It is a reason not to hire.
- Do not pick a failure in the core skill of the role unless it is clearly in the past. A backend candidate whose failure is "I never really understood databases" raises a live doubt. "I wrote a migration that locked a table, and here is the check I have used ever since" closes it.
Keep the failure to about a third of the answer and spend the rest on what you changed. End in the present tense: "I still do this today."
The time budget, and letting them probe
Two to three minutes per story is the target. Under a minute usually means no real Action. Over four minutes and the interviewer is waiting to interrupt, and you have spent time they planned for follow-ups.
Follow-ups are where much of the scoring happens. Interviewers ask "what would you do differently?", "what did your manager think?", "what was the hardest part?" to check that the story is yours and to see depth. A tight two-minute answer invites those questions. A six-minute monologue crowds them out and looks rehearsed. Behavioral Interviews by Level has a full section on the follow-ups.
A practical habit: end with a short handover, such as "Happy to go deeper on the debugging part." Then stop talking. Silence after a finished story is normal. Filling it with extra detail usually weakens a good answer.
"Tell me about yourself"
Almost every interview opens with it. Have a 60–90 second pitch in three parts:
- Present: who you are now. "I'm a full-stack developer finishing a bootcamp, focused on Python and React."
- Past: one or two highlights that back it up. "Before that I worked in logistics, where I automated our shipment reports with Python, which got me into programming. My recent project is a budgeting app with about 200 users."
- Future: why this role. "I'm looking for a backend-leaning role on a product team, and your work on developer tools is exactly the problem space I want to grow in."
It is not your life story and not a recitation of your resume. It is a trailer that makes them want to ask about the parts you are proud of.
Questions to ask them
At the end you will hear "Do you have any questions for me?" Always have two or three. Good questions show you are thinking about doing the job well:
- "What does a successful first 90 days look like in this role?"
- "How does the team decide what to build next, and how are engineers involved?"
- "What's the biggest technical challenge the team is facing this year?"
- "How do code review and deployment work day to day?"
- "What do you enjoy most about working here?"
Save salary, vacation, and benefits for the recruiter.
- CARL
- Context, Action, Result, Learning: a STAR variant that makes the lesson an explicit part of the answer.
- behavioral interview
- A round that asks about past situations to predict how you will act in future ones.
- STAR
- Situation, Task, Action, Result: a structure for telling a clear, scorable story in about two minutes.
- story bank
- 5–7 prepared STAR stories, each tagged with the traits and questions it can answer.
- quantified result
- An outcome with a number (time saved, users, error rate) that shows real impact.
- pitch
- A 60–90 second answer to "tell me about yourself": present, past highlights, why this role.