AlgoViz

Hypothetical and values questions

hard 18 min

Answer “what would you do” with stated assumptions, first moves in order, the fork that would change your plan and a real time you did it.

Theory

Read or listen first. About 2 min.

What it is

Structured interviews use two kinds of prompt: questions about what you did in the past, and hypothetical situations about what you would do. Values questions (“how do you think about…”) are a close cousin. All three are scored on judgement, but hypotheticals and values questions have a catch: anyone can describe ideal behaviour. Nobody says “I'd hide the bug.”

Why it exists

So the interviewer is not listening for the right answer. They are listening for how you reason. What do you check before acting? Who do you talk to first, and in what order? What would change your mind? Which things will you trade, and which will you not? A slogan like “privacy is non-negotiable” is correct and scores almost nothing, because it shows no reasoning.

The way out is to answer like someone who has been there. State the assumptions that matter, lay out your first moves in order, name the fork where your plan would change, and anchor it with a real time you did something similar. For values questions, take a position, give the test you use to apply it and show one example. That turns an easy-to-fake question into evidence.

Inside this chapter

Chapter sources
Judgement and sequencing
Whether you check facts before acting and take steps in a sensible order.

Example. “First I'd confirm it myself in staging, so I'm not raising an alarm on a guess.”

Clear lines, flexible means
Whether you know what is non-negotiable and stay flexible about everything else.

Example. “The date can move or the dashboards can wait. Patient identifiers to an unapproved vendor can't.”

Stakeholder handling
Whether you treat people with other priorities as partners and escalate cleanly when you must.

Example. “I'd tell the product manager that afternoon, with options, before anyone else hears.”

Consistency with the past
Whether your stated approach matches something you have actually done.

Example. “I did a version of this when our error logs were capturing dates of birth.”

Systems thinking
Whether you fix the conditions that allowed the problem, not just the instance.

Example. “After Friday, a CI check that fails when an event contains a field tagged as patient data.”

How it works

Step through the idea, or press Play.

Step 1 of 5

Assume out loud. Ask at most two questions that would change your plan, or state the assumptions you are making. Then move on.

Understand it

Coaching session

A staff engineer candidate preps hypotheticals for a healthcare software company

  1. Coach

    Hypothetical. You're a staff engineer at a company that sells patient referral software to hospitals. It's Wednesday. A feature ships Friday. You discover it sends patient identifiers to a third-party analytics tool. What do you do?

  2. You

    I'd block the release immediately. Patient privacy is non-negotiable. I'd escalate straight to the security team and make sure it doesn't go out. There's no situation where it's acceptable to compromise on that.

  3. Coach

    Your instinct is right, and the answer still scores low. Here's why.

    • It's a slogan. Everyone says privacy matters, so it tells me nothing about how you reason.
    • You jumped to the most drastic action without checking a single fact.
    • There's no order: who hears first, and what do you verify before you tell them?
    • The product manager appears only as someone to block. At staff level I'm listening for how you bring people with you.
    • Nothing shows you've done this before, and nothing stops it happening again.
  4. Coach

    Start again, but first ask me at most two questions that would genuinely change your plan. Don't interrogate me. If you'd rather, state your assumptions out loud.

  5. You

    Two questions. Is this already happening in production, or only in the release branch? And do we have a data agreement with the analytics vendor that covers health data?

  6. Coach

    Exactly the two that matter. Assume it's only in the release branch, and the vendor agreement doesn't cover identifiers. Now walk me through your first moves, in order.

  7. You

    First, I'd confirm it myself by reading the event payloads in staging, so I know exactly which fields go out. Second, I'd tell the product manager that afternoon, in person, with what I found, before anyone else hears about it. Third, I'd bring in our privacy officer, because whether this is allowed is their call, not mine. Then I'd come with options: strip the identifiers and still ship Friday, or ship Friday without analytics and add them next sprint.

  8. Coach

    Much better. You've turned “block the release” into “ship safely, maybe still on time”. Now I'll push. The product manager says the CEO promised this to a hospital partner for Friday, and without identifiers the funnel dashboards break. What now?

  9. You

    The date and the dashboards can move. Identifiers going to an unapproved vendor can't, and I'd say that plainly. I'd offer to send a random event ID that we map back internally, so the funnel still works at the level the partner needs. If the product manager still wanted identifiers, I'd suggest we take it together to the privacy officer and their director, with the risk written down. It wouldn't be my call alone, but I'd be clear where I stand.

  10. Coach

    That's the fork: you named what's negotiable and what isn't, and you escalated with the product manager rather than around them. Two more pieces for staff level. What happens after Friday? And have you lived a version of this?

  11. You

    After Friday, I'd add a CI check that fails if an analytics event contains any field tagged as patient data, and propose a short review for any new third-party SDK. And yes: at my last company, during an incident review, I found our error logs were capturing full request bodies, including dates of birth. We scrubbed the logs within a day, and I added a redaction test that ran on every build. It was still there when I left.

  12. Coach

    Put it together. Ninety seconds, as if you're answering me in the real round.

  13. You

    I'd want to know two things: is it in production yet, and does our vendor agreement cover health data. Assuming it's only in the release branch and it isn't covered, I'd first confirm it myself in staging so I know exactly which fields go out. That afternoon I'd tell the product manager directly, then bring in the privacy officer, since it's their call. I'd come with options: strip identifiers and ship Friday, or ship without analytics. If the date matters because of a partner promise, I'd offer a random event ID we map internally, so the funnel still works. What I wouldn't do is send identifiers to an unapproved vendor. If we disagreed, we'd escalate together to the privacy officer and the product director with the risk in writing. After Friday I'd add a CI check that fails on any event containing fields tagged as patient data. I've done a version of this: I found error logs capturing dates of birth, we scrubbed them within a day, and the redaction test I added ran on every build after that.

  14. Coach

    Strong. Now a values question, quickly. How do you think about technical debt?

  15. You

    I think technical debt is inevitable, and it's about balancing it against delivering features. You can't fix everything, but you can't ignore it either, so you have to find the right balance for the team.

  16. Coach

    True of everyone, so it scores nothing. A values answer needs three things.

    • A position someone could disagree with.
    • The test you use to apply it in practice.
    • One real example where it changed what you did.
  17. You

    My position is that debt is fine when it's a deliberate loan with a repayment plan, and dangerous when nobody chose it. My test is whether it slows the next change in that area. At my last company, every change to our scheduling module took about a week, against a day elsewhere. I tracked that for a quarter, showed it to product as lost feature time, and we agreed to spend one sprint in four on it. By the end of the year, changes there took two days.

  18. Coach

    That's a values answer with evidence behind it. The takeaway:

    • For hypotheticals: assume out loud, act in order, name the fork, anchor in a real time, then fix the system.
    • For values: a position, the test you use and one example.
    • Show your reasoning. The interviewer already knows the right answer.

The method

Assume, act, adjust, anchor

  1. 1

    Assume out loud

    Ask at most two questions that would change your plan, or state the assumptions you are making. Then move on.

  2. 2

    Act in order

    Give your first three moves in sequence: what you check, who hears first and what options you bring. Verify before you escalate.

  3. 3

    Adjust at the fork

    Name what would change your plan, and separate what you will trade (dates, scope) from what you will not (safety, honesty, privacy).

  4. 4

    Anchor in a real time

    Give a short example of when you did something similar. It turns a promise about the future into evidence from the past.

  5. 5

    Fix the system

    Say what you would change so the situation cannot easily recur. For values questions, swap this for the test you use to apply your position.

Shape of a hypothetical answer

A plan with an order, a fork and a real precedent shows judgement in a way a slogan cannot.

Weak and strong

Hear the difference

Say this instead

Instead ofTry
I would never compromise on quality.I'd trade the date or the scope, but not shipping something I know corrupts data.
I'd escalate it immediately.I'd confirm it myself first, tell the owner directly, then escalate together if we disagree.
Communication is key.I'd raise it that afternoon, privately, with the two examples I'd found.
I think it's about finding the right balance.My test is whether it slows the next change. If it does, it gets scheduled.
I'd do whatever is best for the customer.I'd ask support how many customers hit this weekly before deciding whether it beats the roadmap item.

Calibrate

What each level has to show

  • New grad and junior

    Must show

    • A sensible first step, such as checking facts or asking your lead.
    • Knowing when to ask for help rather than guess.
    • A small real example, even from a course project or internship.

    Will be probed on

    • What would you do before asking your lead?
    • What if your lead was away?
    • Have you been in a similar spot?

    Stands out

    Trying a sensible step first, then asking for help with what you found, rather than either guessing alone or escalating instantly.

  • Mid-level

    Must show

    • Clear sequencing within your team.
    • Options rather than a single answer.
    • A precedent from your own work.

    Will be probed on

    • Who would you talk to first, and why?
    • What if the deadline couldn't move?
    • How would you know it worked?

    Stands out

    Bringing options with trade-offs to the people affected, before anyone has to ask.

  • Senior

    Must show

    • Handling stakeholders with conflicting priorities.
    • Firm lines named explicitly, with flexibility around them.
    • A change to team process so it does not recur.

    Will be probed on

    • What if your manager disagreed?
    • How would you explain this to a non-technical partner?
    • What would you change for the team?

    Stands out

    Protecting the line that matters while still helping the business reach its goal, then fixing the process.

  • Staff and above

    Must show

    • Thinking across teams and the organisation, including precedent and policy.
    • Clean escalation with peers to senior leaders.
    • Mechanisms that make the right behaviour the default for many teams.

    Will be probed on

    • How would you handle it if a director pushed back?
    • How would this scale to twenty teams?
    • What norm would you set, and how would you get it adopted?

    Stands out

    Turning a single hard call into a default that protects every team, without becoming the bottleneck.

Watch out

Traps to avoid

  • The slogan

    “Quality is non-negotiable” or “communication is key” is correct and scores nothing. Replace it with what you would check, who you would tell and in what order.

  • Escalate first, think later

    Jumping straight to your manager or security suggests you cannot handle things yourself. Verify, talk to the owner, then escalate together if needed.

  • Interrogating the interviewer

    Five clarifying questions in a row looks like stalling. Ask at most two that would change your plan, or state assumptions and continue.

  • No line at all

    Agreeing to every push from the interviewer suggests you would bend on anything. Know which things you will trade and which you will not, and say so.

  • A plan with no past

    A perfect plan with no precedent sounds theoretical. Anchor it with a real time you did something similar, even a small one.

Drill · 20 min

Practise hypotheticals and values aloud

  1. 1

    Step 1

    Write three hypotheticals for your target role: one about a deadline, one about a teammate and one about a risk such as security or privacy.

  2. 2

    Step 2

    For each, write the two questions that would most change your plan, then pick assumptions.

  3. 3

    Step 3

    Write your first three moves in order, naming who hears first.

  4. 4

    Step 4

    Write the fork: what would change your plan, and what you would not trade.

  5. 5

    Step 5

    Find a real precedent for each from your own work, even a small one.

  6. 6

    Step 6

    Answer one values question (technical debt, code review or shipping) with a position, a test and an example. Have a partner push back once, and hold your line without getting defensive.

Summary

The whole topic in one minute.

Hypothetical and values questions are easy to fake, so the interviewer scores your reasoning, not the right answer.

Assume out loud, act in order, name the fork, anchor in a real time and fix the system.

For values, take a position, give the test you use and show one example where it changed what you did.

  • I ask at most two clarifying questions, or state assumptions and move on.
  • My first moves have an order, starting with checking facts.
  • I bring options, not only objections.
  • I can name what I would trade and what I would not.
  • I have a real precedent for each common hypothetical.
  • My values answers contain a position, a test and an example.

Sources