"Tell me about a time when..." is the start of a behavioural question. These questions show up in HR rounds, hiring manager rounds and dedicated behavioural rounds at many product companies. The idea behind them is simple: the best predictor of how you'll act in the future is how you've acted in the past. So instead of asking "Are you good under pressure?", they ask you to describe a time you were under pressure.

The STAR method is the most reliable way to answer them. It keeps your story short, clear and focused on what you actually did.

What STAR stands for

  • S – Situation: the context. Where were you, what was happening? One or two sentences.
  • T – Task: your responsibility or the goal. What did you need to achieve?
  • A – Action: what you did, step by step. This is the main part.
  • R – Result: what happened, ideally with a number, and what you learned.

A good rough balance is about 20% on situation and task, 60% on action and 20% on result. Most people spend far too long on the situation and rush the action, which is the part the interviewer actually cares about.

Rules that make STAR answers work

Say "I", not "we". Interviewers want to know your part. "We fixed the bug" tells them nothing about you. "I added logging, found the race condition and proposed the fix" does. Mention the team where it's true, but be clear about your own actions.

Pick real, specific stories. "I always communicate well with my team" is not a story. "In March, when our release was blocked..." is.

Keep it to about two minutes. If they want more detail, they'll ask.

End with a result and a lesson. A number if you have one, and one sentence on what you'd do the same or differently.

Five worked examples

1. A difficult technical problem

"Tell me about the hardest bug you've worked on."

Situation: At my last company, our order service started failing a few times a day with duplicate charges. It only happened in production, and nobody could reproduce it locally.

Task: I was asked to find the cause and fix it before our festive sale, which was two weeks away.

Action: First, I added structured logging around the payment callback and the order status update. After two days of logs, I noticed that the failing cases always had two callbacks from the payment gateway arriving within a few milliseconds. Our code read the order, checked its status and then updated it, so both callbacks passed the check. I wrote a test that sent two concurrent callbacks to reproduce it, then fixed it by adding an idempotency key on the callback and an optimistic lock on the order row. I also added a dashboard alert for any duplicate callbacks.

Result: Duplicate charges went to zero, and the sale went through without a single incident. I learned to always ask "what happens if this arrives twice?" when designing anything that handles external callbacks.

2. A disagreement with a teammate

"Tell me about a time you disagreed with someone at work."

Situation: In a design review, a senior colleague proposed storing user preferences as a JSON column, while I thought separate tables would be better for the reporting features we had planned.

Task: We needed to agree on a design that week so the feature could stay on schedule.

Action: Instead of arguing in the meeting, I asked if we could each spend an hour listing the trade-offs. I wrote down the three reporting queries the product team had asked for and tried both designs against them. JSON was simpler to build but made two of the three queries slow and awkward. I shared the comparison with him, and he pointed out that one of the reports wasn't actually confirmed yet. We agreed on a middle path: JSON for most preferences and one indexed column for the field that reporting needed.

Result: We shipped on time, and the reporting queries ran in milliseconds. More importantly, he started asking me to review his designs afterwards. I learned that bringing data to a disagreement works much better than debating opinions.

3. A mistake you made

"Tell me about a time you made a mistake."

Situation: A few months into my first job, I ran a database migration that added a NOT NULL column to a large table during working hours.

Task: It was my responsibility to release the change, and I'd tested it on a small local database.

Action: The migration locked the table for several minutes and the app started timing out. I told my lead immediately, rolled back the deployment and helped bring the service back. Afterwards I wrote a short post-mortem explaining what went wrong. I then rewrote the migration to add the column as nullable, backfill it in batches, and add the constraint afterwards, and I added a checklist item for large-table migrations to our release template.

Result: The service was down for about six minutes. The new migration ran with no downtime, and the checklist has caught two similar risks since. I learned to test migrations on realistic data sizes and to own mistakes quickly instead of trying to fix them quietly.

4. Working under pressure or a tight deadline

"Tell me about a time you worked under a tight deadline."

Situation: Two weeks before a client launch, our team learned that a payment provider we depended on was changing its API.

Task: I had to update our integration and make sure nothing broke for existing users.

Action: I read the new API documentation that evening and listed every place our code called the old endpoints, which came to eleven. I proposed we wrap the provider in a small adapter class so we could switch between old and new versions with a feature flag. I built the adapter in three days, wrote contract tests against the provider's sandbox, and switched internal test accounts first. I gave a short status update every day so my manager could see the risk going down.

Result: We launched on schedule, and switching over in production took one config change with no customer issues. I now use the adapter pattern for every third-party integration, because it makes changes like this much less stressful.

5. Showing leadership or ownership

"Tell me about a time you took ownership of something beyond your role."

Situation: Our team's on-call shifts were exhausting. We got around 30 alerts a week, and most of them didn't need any action.

Task: It wasn't assigned to anyone, but I wanted to make on-call sustainable for the team.

Action: I exported three months of alerts and grouped them by cause. About 70% came from five noisy alerts with thresholds that were far too sensitive. I proposed new thresholds in our team meeting, got agreement, and updated them. For the remaining real alerts, I wrote short runbooks so anyone on call knew the first steps.

Result: Weekly alerts dropped from about 30 to 8, and our average time to fix real incidents went from 45 to 15 minutes. Two other teams copied the runbook format. I learned that small, unglamorous improvements can make a big difference to a team.

Build your own story bank

You don't need fifty stories. Six to eight good ones can answer most behavioural questions, because one story can be adapted to several questions. Build a simple table:

  • A difficult technical problem you solved.
  • A time you disagreed with someone.
  • A mistake or failure and what you learned.
  • A tight deadline or pressure.
  • A time you helped or mentored someone.
  • A time you took ownership beyond your role.
  • A time you had to learn something quickly.
  • A time you handled unclear requirements.

For each one, write the STAR points as short bullets, not full paragraphs, and note one number for the result. Before each interview, read through them and pick the ones most relevant to the company.

Freshers can draw stories from projects, internships, hackathons, college teams and club work. "During our hackathon, our backend crashed four hours before the demo" is a perfectly good situation.

Common mistakes

  • Too much situation, too little action. Get to what you did quickly.
  • "We" all the way through. The interviewer leaves knowing nothing about you.
  • No result. The story just trails off.
  • Choosing a story where you look bad and didn't learn. Mistakes are fine. Mistakes with no lesson are not.
  • Making stories up. Follow-up questions will expose a fake story fast.

Behavioural questions often overlap with classic HR questions. Our guides to strengths and weaknesses and the top 15 HR interview questions show where to reuse these stories.