<!--
page #1
URL: /guides/star-method
-->
# STAR Method for Software Engineers: Template, Examples and Quick Reference

*Last updated: October 2026 · ~14 min read*

You spent three weeks on that incident. You remember the misleading dashboard,
the argument about whether to roll back, and the person who finally asked the
right question. But when an interviewer asks what happened, you hear yourself
say: "We had a performance problem, and we fixed it."

Somewhere between doing the work and describing it, the interesting part vanished.

This is a useful reason to learn STAR. **Situation, Task, Action, Result** gives
you four places to put the facts: what was happening, what you were responsible
for, what you did, and what happened because of it. It helps you recover the
choices that a tidy project summary leaves out.

The story doesn't need a production outage or a triumphant ending. It needs
enough detail for someone else to understand why your actions made sense at
the time. Including, occasionally, why they didn't.

## The STAR template at a glance

| Part | The question to answer |
|---|---|
| **Situation** | What was happening, and why did it matter? |
| **Task** | What were you responsible for, and what constrained you? |
| **Action** | What did you try, choose, change or ask someone else to help with? |
| **Result** | What happened, what evidence do you have, and what remained unresolved? |

If you're stuck, fill in this rough version:

```text
We were dealing with [specific situation].
I was responsible for [my part], with [constraint].
I first tried [approach]. When [what I found], I decided to [next action]
because [reason]. I worked with [others and their contribution].
The outcome was [observable change]. Looking back, [what I now understand].
```

You may not need every sentence. Some problems really were straightforward.
And when you speak, you can put away the labels. Nobody needs to hear
"Moving on to the Action portion of my answer."

## Find the decision inside the project

A resume says you migrated a service. Your teammates remember that nobody
agreed on when it was safe to switch traffic. That's where the story begins
to get interesting.

Before writing, go back to a point when you didn't know the outcome. What
could you see? What did someone else want? What were you worried about?
Which options were available, and what made you choose one?

Hindsight makes a project look more orderly than it felt. "I checked the
traces and found the cause" may be accurate, but it skips the hour you spent
investigating the wrong thing. If that detour changed your approach, it belongs
in the answer. If it added nothing, leave it out. You don't owe the interviewer
a minute-by-minute reconstruction.

Keep the technical detail that explains a decision. A diagram of the entire
system is rarely necessary to explain why you postponed a rollout. The fact
that you couldn't verify old and new results probably is.

## Task vs Action: where responsibility becomes a choice

**Task** explains what you needed to accomplish. **Action** explains what you
actually did about it.

For example, "I needed to reduce staging costs without disrupting other teams"
is a task. "I asked each team which environments they still needed, then
piloted overnight shutdowns with the teams that opted in" describes actions.

The distinction helps you spot an empty answer. "I was responsible for the
migration" names a responsibility, but tells us little about how you carried
it out. Did you design the backfill? Negotiate the maintenance window? Notice
that the rollback wouldn't work? Those details make your part visible.

The task doesn't have to arrive as an assignment. You might notice a recurring
problem and volunteer to investigate. Explain how you agreed on the work with
the people affected; "I took ownership" can otherwise conceal quite a lot.

## Tell us your part, and let your colleagues keep theirs

Advice to use "I" is useful when an answer consists entirely of "we."
Taken too literally, it produces stories in which a single engineer appears
to operate an entire company.

You can be precise about collaboration:

> "My teammate noticed the failures clustered around retries. I checked the
> traces and reproduced the duplicate request. We agreed on the fix; I wrote
> it, and she added the regression tests."

Now we know what each person did. We also know the candidate listened to a
useful observation. Crediting someone else hasn't made their own contribution
smaller.

Be equally careful about results. If the team improved latency, say that.
Then explain the part of the work you owned. You don't need to claim the
whole improvement to have a worthwhile story.

## Three STAR examples for software engineers

**The examples below are fictional.** They're illustrations of how to explain
work, not accounts of real candidates or a required standard for each level.
The labels are there to make the structure visible; spoken answers can flow
as ordinary conversation.

### Mid-level: "Tell me about a difficult technical problem"

**Situation.** I was on the checkout team at an e-commerce company. A week
before Black Friday, payment requests started timing out. Our p99 latency,
the time within which 99% of requests finished, had gone from about
300 milliseconds to two and a half seconds.

**Task.** I was on call and led the investigation. We had five days before a
code freeze, so I needed to work with the payments owner on a fix we could
verify in that window.

**Action.** I initially suspected a slow query. I spent a morning checking
query plans and couldn't explain the delay. A teammate suggested separating
query time from connection-wait time in the traces. That showed requests were
waiting for a connection before the queries even started.

I traced it to a recent change that kept a database transaction open during
an external fraud check. Increasing the pool was tempting, but we were
already close to the database connection limit. I brought the traces to the
payments owner. Together we decided to revert that change for the release,
and checked that the previous payment and fraud-check flow still ran. I
prepared the rollback and load test; they reviewed the payment behavior.

**Result.** After the rollback, p99 was back near 300 milliseconds in production.
That got the release back into a state we understood, but we still owed the
team a safer implementation of the new flow. I added connection-wait monitoring
and scheduled follow-up work for the next sprint. I'd spent too long trusting
the dashboard's overall "database time" without checking what it included.

Notice the limit of the result: the immediate regression was resolved, while
the intended feature still needed work. The story has room for questions about
both debugging and the decision to roll back. The unfinished work also gives
the candidate something specific to discuss if asked what they'd do next.

### Senior: "Tell me about a technical disagreement"

**Situation.** Our notifications team wanted to split a service into five
microservices in one quarter. I owned scheduling, and I thought the plan put
an upcoming customer launch at risk. The tech lead thought keeping the current
service would leave us blocked for the following quarter.

**Task.** I needed to make the scheduling component reliable for the launch.
I also needed to understand what the proposed split would solve before asking
the team to change direction.

**Action.** My first draft argued for extracting scheduling alone. Before
sharing it with everyone, I asked the tech lead to read it with me. They
pointed out a dependency I'd missed: the template component was holding up
another feature. My smaller plan hadn't accounted for that work at all.

We compared the incident history, the upcoming features and the rollout work
for each component. I revised the proposal to extract scheduling and templates,
with an explicit checkpoint before doing the others. I owned the scheduling
migration plan; the tech lead worked through the template dependencies. We
took the revised plan back to the team together.

**Result.** We shipped those two extractions before the customer launch. The
other three stayed where they were for that quarter. We also delayed an internal
cleanup I had wanted, so the smaller scope still required a compromise. What
changed my mind was seeing the dependency behind the tech lead's argument.
I'd been treating my own component as if it explained the whole plan.

This disagreement has two people with reasons, and a candidate who changes
their position. That gives you more to discuss than a story about winning an
argument with a better document. You can hear how the revised plan took shape.

### Staff: "Tell me about influencing without authority"

**Situation.** Eight product teams used different logging setups. During
incidents, engineers had trouble following a request across services. I'd
written a proposal for shared request IDs, but it had sat largely untouched.

**Task.** I wanted to get the teams onto a shared format within two quarters.
Their roadmaps belonged to their managers, so I needed to find a way to make
the work fit rather than simply announcing a standard.

**Action.** I asked an engineer from each team what made the proposal hard to
adopt. One put it plainly: "It's a week of work, and nobody gives us the week."
I had described the benefits and left them with the cost.

I paired with engineers from two teams to build libraries for their languages,
then used those migrations to write a shorter adoption guide. Their feedback
caught assumptions in the original proposal, including a service that couldn't
propagate the ID the way I'd expected. For teams with launch deadlines, I
worked with their managers to reserve time later. A dashboard helped us see
where requests still lost their IDs; it didn't create time in anyone's sprint.

**Result.** Seven teams migrated within the two quarters. The eighth needed
another three weeks. During a later incident, engineers could follow the
request through the migrated services without manually stitching together
logs. We hadn't measured a reliable before-and-after incident time, so I
wouldn't claim a percentage improvement. I would involve the managers earlier
next time: making the code easy to adopt solved only part of the problem.

## A failure story can end with a failure

It's tempting to choose a mistake small enough to look harmless, then spend
most of the answer on the comeback. But sometimes the important part is
explaining a consequence you couldn't undo.

Here's another fictional example:

> "I led a search-service database migration and estimated two weeks. I
> rehearsed it on a staging copy, but didn't check how much smaller that copy
> was than production. The backfill ran much slower during cutover, and search
> was degraded for four hours before we rolled back.
>
> I had also failed to put a rollback deadline in the plan. That made it easy
> to keep saying 'another fifteen minutes' while people were dealing with poor
> results. I wrote up both mistakes in the postmortem. For the next attempt,
> we measured against a current, production-sized test dataset and agreed on
> a stop time before starting. The migration eventually succeeded, but that
> doesn't recover the four hours we disrupted search."

Explain what you believed, what you missed, who was affected and what you
changed afterward. A lesson is more convincing when you can describe a later
action it influenced. If you haven't had a chance to apply it yet, say so.

## What counts as a result when you don't have a number?

Numbers can make an outcome easier to understand. Use them when you know where
they came from and what they measure. An estimate is fine if you label it and
can explain how you arrived at it.

But "Result" can also describe something you observed:

- A new engineer completed a deployment using the guide you'd written, without
  needing someone to talk them through it.
- Two teams agreed who owned a recurring support issue, and the next report
  reached the right person.
- A review exposed a dependency, and the team changed its rollout plan before
  committing to a date.

These outcomes need context, just as metrics do. Say how you know the change
happened. If you can't establish that your work prevented an outage, don't
turn a risk you identified into a count of "incidents avoided."

Sometimes you have only a partial result: the prototype worked, but the team
chose another approach. You can explain that choice and what your work
contributed. A polished number won't rescue a story that doesn't answer the
question, and its absence doesn't make an otherwise concrete account empty.

## Choose a story that answers this question

A story bank helps you remember experience under pressure. Start with a few
projects and moments you can discuss well, then look for gaps. Eight to ten
stories can be a useful planning target, but the count isn't a guarantee of
coverage.

For each one, write down the event, your role, the decision and the outcome.
Then map it to questions it actually answers:

| Question | What the story needs to contain | Example above |
|---|---|---|
| Difficult technical problem | Investigation and reasoning about the cause | Checkout regression |
| Disagreement | Another person's position and how you responded | Notifications split |
| Influence without authority | Why people weren't acting, and how you worked with that | Logging adoption |
| Failure | Your mistake, its consequences and what you did afterward | Search migration |
| Mentoring | Someone's learning needs, your help and evidence of their progress | Needs a different story |

The last row matters. Helping eight teams adopt a library may involve plenty
of leadership, but it doesn't automatically answer "How did you help a junior
engineer grow?" You need an actual person, what they needed, and how your help
affected their work. Don't stretch a favorite story until every question
somehow becomes a question about that story.

You can reuse an event when it contains the relevant experience. For a
prioritization question, you might return to the decision about rolling back
checkout. Bring that decision forward and shorten the debugging details.
Keep the facts and outcome the same.

## How long should a STAR answer be?

Try **roughly two minutes for a first rehearsal**. That's a practical way to
notice whether you've used all your time on background. Adjust to the question,
the recruiter's guidance and the person listening. If someone asks you to go
deeper, you don't need to rush past them to finish your prepared answer.

Spend most of the answer explaining what you did and why. Give enough context
for those actions to make sense, then stop adding background. The division
won't always fit neat percentages: a disagreement may need more explanation
of the other person's position than a debugging story does.

Record one attempt, then ask a friend to interrupt with a follow-up. Can you
explain the decision without returning to the top of the script? Practice from
notes once you can. You want to remember the experience well enough that the
wording can change.

## Using STAR at Amazon

Amazon's [official interview guide](https://www.aboutamazon.com/news/workplace/amazon-interview-guide)
recommends STAR, connects behavioral examples to its Leadership Principles,
and emphasizes individual contributions, data, outcomes and lessons. It also
suggests practicing answers of about two to three minutes.

For preparation, check what your chosen story demonstrates about the principle
you're discussing. Gather the evidence behind any metrics, and be clear about
your part in collaborative work. Follow the instructions for your particular
role, and ask your recruiter if the expected format is unclear.

Our [Amazon Leadership Principles guide](/interviews/amazon/leadership-principles)
can help you organize that preparation. Avoid treating a principle as a label
you can attach to any successful project.

## STAR vs CAR, SOAR, PAR and XYZ

You may come across other ways to organize the same material:

| Format | Expansion | A useful way to think about it |
|---|---|---|
| **STAR** | Situation, Task, Action, Result | Separates the setting from your responsibility |
| **CAR** | Context, Action, Result | Combines setting and responsibility into a shorter opening |
| **PAR** | Problem, Action, Result | Opens directly with the problem |
| **SOAR** | Situation, Obstacle, Action, Result | Brings the obstacle into focus |
| **STARL** | STAR plus Learning | Reminds you to explain what you learned |
| **XYZ** | Accomplished X, measured by Y, by doing Z | A compact way to draft a resume accomplishment when you have a useful measure |

Use the structure that helps you explain the event. Learning another acronym
won't fix a story whose central decision is missing.

A resume bullet such as "Reduced checkout p99 latency from 2.5 seconds to
about 300 milliseconds by tracing a connection-pool regression and coordinating
a rollback" compresses the mid-level example. The interview gives you room to
explain the failed hypothesis, the collaboration and the unfinished work.

## STAR quick reference

```text
SITUATION  What was happening? Why did it matter?
TASK       What was my responsibility? What constrained me?
ACTION     What did I try? What changed my mind? Who helped, and how?
RESULT     What happened? How do I know? What still needed work?
CHECK      Does this event answer the question I was actually asked?
```

OfferVibe's *My Experience* can help organize material from your resume and
project notes into draft stories for you to review. Check the supporting facts,
your contribution and whether the story fits the question. Your memory of the
work still matters, especially the parts that never made it into a document.

[Explore OfferVibe →](/)

## FAQ

### Do I need to announce each STAR section?

Use the labels in your preparation if they help. In conversation, ordinary
transitions such as "My part was…" or "At first I thought…" can make the same
structure clear. If the interviewer asks for a particular format, follow it.

### What if my example is from university or a side project?

Explain that context and the responsibility you actually had. A group project
can involve a real disagreement; a personal project can involve a real mistake.
Choose an event that answers the question without dressing it up as a job.

### Can I use an unfinished project?

You can describe the outcome so far and make the limits clear. Pick a more
complete example if the question specifically asks about a delivered result.
Don't substitute a forecast for something that has already happened.

### What if I can't remember an exact figure?

Give an estimate only if you have a basis for it, and label it as an estimate.
Otherwise explain what you observed without the number. In preparation, review
your notes for details you can appropriately share; don't invent precision.

### Can I use STAR for "Tell me about yourself"?

For that opening, a short account of your current work, relevant experience
and next step is usually more useful than one detailed project story. See our
[guide to "Tell me about yourself"](/guides/tell-me-about-yourself). You can
use STAR when the conversation turns to a specific experience you mentioned.

### What if I realize halfway through that I chose the wrong story?

Say so and switch if you have a better example. You can also clarify the
question before starting. It's easier to have a useful conversation once
you stop trying to force a familiar story into the wrong shape.

## Related guides

- [Behavioral interview questions for software engineers](/guides/behavioral-interview-questions)
- [Amazon Leadership Principles interview questions](/interviews/amazon/leadership-principles)
- [How to answer "Tell me about yourself"](/guides/tell-me-about-yourself)

