Prod Squad

Technical debt: how to spot it and prioritize it against features

What technical debt really is, the signals that it's hurting the product, and how to make the case for paying it down.

6 min readPM#technical debt#prioritization#refactoring#engineering health
Ask about this lesson
On this page

Technical debt is the accumulated cost of shortcuts: quick fixes, outdated designs, missing tests, old libraries. Some debt is a smart trade, like borrowing money to move fast. Unmanaged, it makes every feature slower and every release riskier. PMs who ignore it eventually find their roadmap grinding to a halt.

Why interviewers ask this

"How do you balance tech debt against new features?" and "Engineering wants a quarter for a rewrite. What do you do?" are common execution questions. Interviewers want to see that you respect engineering's concerns, translate debt into user and business impact, and use a sensible allocation model instead of all-or-nothing thinking.

The framework

1. Know the kinds of debt

  • Deliberate and prudent: "We'll ship with a simpler design to hit the launch, and fix it next quarter."
  • Accidental: the team learned a better way after building it.
  • Bit rot: dependencies and platforms age; security patches pile up.
  • Missing safety nets: no tests, no monitoring, manual deployments.

2. Spot the signals

  • Features in one area take far longer than similar ones elsewhere.
  • The same kinds of bugs keep coming back.
  • Engineers are afraid to touch certain code.
  • Incidents and on-call load are rising.
  • Onboarding new engineers takes months.
  • Outdated libraries with known security vulnerabilities.

3. Translate debt into impact

flowchart LR
    D["Tech debt in checkout code"] --> S["Slower delivery<br/>features take 2x longer"]
    D --> B["More bugs and incidents"]
    D --> R["Security and compliance risk"]
    S --> I["Business impact<br/>roadmap delayed, revenue at risk"]
    B --> I
    R --> I

Ask engineering to quantify: how much time it costs per sprint, how many incidents it caused, what features it blocks, and what risk it carries. Stakeholders fund outcomes, not refactors.

4. Choose an allocation model

  • Continuous budget: reserve a fixed share of each sprint (often 15–25%) for debt and reliability. Predictable and healthy.
  • Debt sprints or "fix-it weeks": periodic focused clean-up.
  • Attach debt to features: pay down debt in the area you're about to build in ("leave the campsite cleaner").
  • Dedicated projects for big items (migrations, rewrites), with milestones and measurable outcomes.

5. Prioritise debt like features

Use impact (delivery speed, incidents, risk) against effort. Pay down debt in areas you change often first; debt in code nobody touches is cheap to leave alone.

Worked example

Question: "Your engineering lead says they need a full quarter to rewrite the payments service, but leadership wants three new features this quarter. What do you do?"

Sample answer:

"I wouldn't frame it as rewrite versus features. I'd start by understanding the cost of the debt and whether a full rewrite is the only option.

Understand the problem: I'd ask the lead what's driving it. Suppose payments code is 8 years old with no tests: every change takes three times longer than estimated, and it caused four incidents last quarter, including one that double-charged users. That's real business risk.

Quantify it for leadership: roughly 30% of the team's time goes to working around this code; incidents cost us refunds and trust; and two of the three requested features touch payments, so they'll be slow and risky to build on the current code.

Explore options with engineering:

  1. Full rewrite for a quarter: high risk (rewrites often overrun) and no features.
  2. Incremental replacement: add tests around the riskiest paths first, then rebuild the service piece by piece, starting with the parts the new features need.
  3. Do nothing: the cost keeps compounding.

Recommendation: option 2. This quarter, about 40% of capacity goes to payments hardening, done in the areas the new features touch, and we ship the most valuable feature on the improved foundation. The other two move to next quarter.

Agree on how we'll know it's working: incidents in payments, cycle time for payment changes, and test coverage on critical paths, reviewed monthly with leadership."

Common mistakes

  • Ignoring debt until velocity collapses.
  • Accepting "rewrite everything" without exploring incremental options.
  • Pitching debt in technical terms to business stakeholders.
  • No way to measure whether debt work paid off.
  • Treating all debt as equally urgent.

Interviewer tips

What "great" sounds like:

  • "Let's quantify the debt: time lost per sprint, incidents, and features it blocks."
  • "Debt in code we change often matters; debt in code nobody touches can wait."
  • "I'd reserve a steady share of capacity rather than fighting for it every quarter."
  • "An incremental replacement is less risky than a big-bang rewrite."
  • "We'd track cycle time and incidents to show the investment paid off."

Practice questions

Answer one in a mock interview and get graded instantly.

  1. 1.Engineering wants a quarter to rewrite the payments service, but leadership wants three new features. What do you do?

    Practice this →
  2. 2.How do you decide how much time a team should spend on technical debt?

    Practice this →
  3. 3.How would you explain technical debt to a non-technical CEO?

    Practice this →

Finished reading?