Quick revision
The short answer
Record each debt item in one place with its area, its impact (slower delivery, incidents or security risk) and a rough cost to fix, then rank by impact on current work, so debt in frequently changed code comes first. Pay it down through a fixed share of capacity or by attaching debt items to features that touch the same code, review the list regularly to drop items that no longer matter, and track a few outcomes such as lead time or incident counts for the affected areas.
What to remember
In this answer, we designed a lightweight technical debt process. Each item records its area, impact and rough cost; we rank by impact on current work, using change frequency to find the debt whose interest we pay most often, with security deadlines scheduled by date; we make capacity through a fixed share and by attaching debt to features in the same code; we review and prune the list regularly; and we track lead time and incidents in the affected areas.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Record each debt item in one place with its area, its impact (slower delivery, incidents or security risk) and a rough cost to fix, then rank by impact on current work, so debt in frequently changed code comes first. Pay it down through a fixed share of capacity or by attaching debt items to features that touch the same code, review the list regularly to drop items that no longer matter, and track a few outcomes such as lead time or incident counts for the affected areas.
Why this question is asked
Most teams have a technical debt backlog: a long list of tickets titled 'refactor X' or 'clean up Y', added over years, never prioritised and rarely done. The list grows, people stop reading it, and debt work happens only when someone gets angry enough. Interviewers ask this design question to see whether we can build a process light enough to survive and sharp enough to direct effort where it pays. In this answer, we will design what a debt item records, how to prioritise with change frequency, how to make capacity for it, how to keep the list clean and how to see whether it works.
1A Quick Recap: What Counts as Technical Debt
Technical debt is anything in the code or systems that makes future work slower or riskier than it needs to be: duplicated logic, missing tests, an outdated framework, a confusing module boundary, a manual deployment step. Like financial debt, it has interest: every change to the affected code costs a little extra. Debt in code that nobody touches has almost no interest; debt in code changed every week has a lot.
That observation drives the whole process. We do not need to fix all debt. We need to fix the debt whose interest we are paying right now.
2Recording Debt Items
Each item records a few fields, short enough that people actually fill them in: the area of code or system, the impact type and a sentence of evidence, a rough cost to fix in days, and who reported it. A label in the existing ticket tracker is enough; a separate tool is rarely needed.
| Item | Area | Impact | Cost | Changes in 90 days |
|---|---|---|---|---|
| Duplicated discount rules | pricing | slower delivery, 3 bugs | 8 days | 26 |
| No contract tests for payment client | checkout | incidents (2) | 3 days | 11 |
| Spring Boot 3.3, unsupported soon | whole service | security risk | 5 days | n/a |
| Legacy CSV export code | reporting | slower delivery | 6 days | 1 |
| Manual DB migration step | deploys | incident risk | 2 days | every deploy |
3Prioritising by Impact on Current Work
Ranking debt by how ugly the code is leads to endless debate. Ranking it by impact on current work is more objective. We combine three things: how often the area changes, from git history or the tickets of the last few months; how much the debt costs each time, in delay, bugs or risk; and the cost to fix. Debt in frequently changed code with a cheap fix goes to the top. Debt in code that changes once a year goes to the bottom, however ugly it is.
Security and support risks, such as a framework version about to reach end of support, are an exception: they may not slow daily work, but they have a deadline, so we schedule them by date.
- Record area, impact, costone ticket with a label
- Security or support deadline?YesSchedule by the deadlineNoRank by interest
- Measure change frequencygit log or tickets, 90 days
- Area changes often?YesHigh priority, attach to next featureNoLeave in the list, review later
4 steps in order. Play them, or step through them one at a time.
Notice that the legacy CSV export, which everyone complains about, is changed once in 90 days. It can wait. The pricing duplication, changed 26 times, is costing us every week.
4Making Capacity for Debt Work
Debt work needs capacity, or it never happens. There are two lightweight ways, and many teams use both. The first is a fixed share of capacity, for example 15 to 20 percent of each sprint, which the team spends on the top items without negotiating each one. It is predictable and easy to explain. The second is attaching debt to features: when a feature touches an area with debt, the team includes fixing that debt in the feature's estimate. This is efficient, because the engineer already has the code loaded in their head, and it directs effort exactly where change happens.
Larger items that do not fit in either, such as a framework upgrade, are planned as normal work with the product owner, using the register's evidence to justify them.
5Reviewing the List Regularly
A debt list decays if nobody looks after it. Once a month, or once a quarter for slower teams, we spend thirty minutes on it: re-rank items with fresh change counts, merge duplicates, and remove items that no longer matter, for example because the code was deleted, the system is being retired, or the area has not changed in a year. Removing items is as important as adding them. A short, current list gets read; a long, stale one does not.
6Tracking a Few Outcomes
Finally, we track whether the work helps, with a handful of outcomes for the areas we invested in: lead time for changes in that area, bugs or incidents traced to it, and perhaps build or test time. If pricing changes took 4.5 days before and 2 days after the duplicated rules were extracted, the team and the product owner can see the return, and the next request for debt capacity is easier. If nothing changes, we learn that the item was ranked too high, and adjust.
7Follow-up questions
Who decides what goes into the debt share each sprint?
The team decides, usually led by the tech lead, using the ranked list. The product owner sees the list and the outcomes but does not need to approve each item, which is part of what makes the process lightweight.
How do you stop the list becoming a dumping ground?
Each item must have an area, an impact and a cost, or it is not accepted. Regular reviews delete stale items. And items that are really feature requests or bugs are moved to the right place.
Should debt items be estimated precisely?
No. A rough size such as one, three or ten days is enough to rank. Precision is wasted on items that may never be done; we estimate properly when an item reaches the top.
8Conclusion
In this answer, we designed a lightweight technical debt process. Each item records its area, impact and rough cost; we rank by impact on current work, using change frequency to find the debt whose interest we pay most often, with security deadlines scheduled by date; we make capacity through a fixed share and by attaching debt to features in the same code; we review and prune the list regularly; and we track lead time and incidents in the affected areas.
Open with
I'd keep it simple enough that the team actually uses it. Every debt item goes into the normal tracker with a label and three things: the area, the impact with a line of evidence, like slower changes, incidents or security risk, and a rough cost in days.
Then, if they want more
To prioritise, I'd use the idea of interest: debt in code we change often costs us every week, debt in code nobody touches costs almost nothing.
So I'd pull change counts per area from git history for the last ninety days and rank frequently changed areas with cheap fixes at the top, while things like an unsupported Spring Boot version get scheduled by their deadline.
For capacity, a fixed share like 15 to 20 percent of each sprint that the team spends on the top items, plus attaching debt work to features that touch the same code, since the engineer is already in it. Bigger items like upgrades get planned with the product owner using the evidence.
Once a month or quarter we'd spend half an hour re-ranking and deleting items that no longer matter. And I'd track a few outcomes for the areas we fixed, mainly lead time for changes and incident counts, so we can show the return.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your team has a backlog of technical debt items with no clear way to prioritise them....": https://scrivio-interview-library.netlify.app/architecture/technical-leadership/00fdf41d1f/