PracticeVideosBlogFlashcards

7.4 Managing Technical Risk, Technical Debt & Engineering Excellence

Key Takeaways

  • Managing Technical Risk is the PSM II focus area from Developing and Delivering Products Professionally: risks range from the ability to deliver to performance and security, and must be made transparent.

  • Unaddressed technical debt compounds like financial interest, systematically degrading velocity, inflating defect escape rates, destabilizing production environments, and causing developer burnout.

  • Routine technical debt prevention belongs in the Definition of Done, while large refactoring and risk-reduction work must be visible on the Product Backlog.

  • Extreme Programming (XP) engineering practices—such as Test-Driven Development (TDD), Pair Programming, Continuous Integration, and Automated Refactoring—provide the technical discipline required to sustain Scrum's empirical process control.

  • Advanced Scrum Masters coach Product Owners on the economic imperatives of technical excellence, demonstrating how technical hygiene directly accelerates Time-to-Market (T2M) and liberates capacity for the Ability to Innovate (A2I).

Last updated: October 2026

7.4 Managing Technical Risk, Technical Debt & Engineering Excellence

Note

In 1992, software pioneer Ward Cunningham coined the metaphor of "Technical Debt" to explain to non-technical business managers why software development inevitably slows down over time if code quality is neglected. In professional Scrum, managing technical debt is not a luxury or a developer indulgence—it is an economic imperative that determines the survival of the product.

Managing Technical Risk: The Official PSM II Focus Area

Scrum.org's PSM II page lists Managing Technical Risk as the one focus area it draws from the Developing and Delivering Products Professionally competency. Scrum.org describes it this way: all products have an inherent set of risks, ranging from the ability to deliver to technical risks associated with performance and security; practitioners should understand what technical risks are, how to manage them effectively in an empirical process, and how to apply practices that make risks transparent.

Technical riskExampleEmpirical response
Ability to deliver / integrationCan the team integrate with a legacy system or third-party API at all?Order a thin end-to-end slice or a timeboxed spike early, and inspect the result
Performance & scalabilityWill checkout survive peak seasonal load?Put load thresholds in the Definition of Done or acceptance criteria; test with production-like data every Sprint
Security & privacyVulnerable dependencies; personal-data exposureAutomated security scanning in the Definition of Done; threat discussion during refinement
Architecture & technical debtFragile modules that make every change slowMake debt visible on the Product Backlog; refactor continuously
Dependencies & skillsOne specialist or one vendor component everyone waits forCross-skilling, pairing, contract tests

Four principles answer most PSM II technical-risk scenarios:

  1. Make risk transparent. Risks belong where the Scrum Team and stakeholders can inspect them—on the Product Backlog (as items, spikes, or acceptance criteria), in the Definition of Done (as non-functional standards), and in Sprint Review conversations—not in a private register nobody reads.
  2. Reduce risk early with working software. In complex work, the cheapest way to reduce a technical risk is to build something small that proves or disproves the assumption. When the Developers explain a risk in terms of value and cost of delay, the Product Owner can order risky items early.
  3. Let every Increment cap the exposure. A Done, usable Increment every Sprint limits how long any wrong technical bet can stay hidden to one Sprint—one month at most.
  4. Respect accountabilities. Developers identify technical risks and decide how to mitigate them; the Product Owner orders the Product Backlog with that information; the Scrum Master makes sure risks are not hidden and that organizational impediments (such as no production-like test environment) are removed.

A scenario in which a team quietly accepts a risk, or defers performance or security testing to a later phase, is testing this focus area: the professional answer makes the risk visible and deals with it inside the Sprint cadence.


The Economics of Technical Debt: Ward Cunningham's Metaphor

Ward Cunningham drew an explicit parallel between taking out a financial loan and taking engineering shortcuts in software development:

"Shipping first time code is like going into debt. A little debt speeds development so long as it is paid back promptly with a rewrite... The danger occurs when the debt is not repaid. Every minute spent on not-quite-right code counts as interest on that debt. Entire engineering organizations can be brought to a stand-still under the debt load of an unconsolidated implementation, object-oriented or otherwise."

Deliberate vs. Inadvertent, Prudent vs. Reckless

Martin Fowler's widely used Technical Debt Quadrant separates two questions: was the debt taken on deliberately or inadvertently, and was the decision prudent or reckless?

RecklessPrudent
Deliberate"We don't have time for design or tests.""We must ship now to test this hypothesis, and we'll pay the debt down right after we learn."
InadvertentPoor practices nobody recognized as poor"Now we know how we should have built it"—learning that only came from building

Only deliberate, prudent debt is a legitimate business decision, and only if it is made transparent (for example, as an item on the Product Backlog) and actually repaid. Reckless debt—whether deliberate or not—is the main driver of enterprise software rot.

The compounding spiral usually runs like this:

  1. Shortcuts taken: automated tests skipped; quick-and-dirty patches.
  2. Codebase fragility: small changes trigger unexpected side effects.
  3. Escaped defects surge: production incidents multiply; hotfixes mount.
  4. Firefighting dominates: a growing share of every Sprint goes to fixing bugs.
  5. Velocity and morale collapse: Developers burn out; the Ability to Innovate falls.
  6. Executive frustration: leaders demand faster delivery, and the cycle repeats.

When technical debt is ignored, the "compounding interest" consumes the team's entire capacity. Features that used to take three days now take four weeks because developers must navigate a labyrinth of brittle, undocumented spaghetti code.


Making Technical Debt Visible and Measurable

Technical debt thrives in darkness. When technical rot is hidden from stakeholders, leadership assumes that software development is simple and cannot understand why delivery speed is slowing down. The Scrum Master guides the team to make technical debt visible through two primary mechanisms:

1. Routine Hygiene via the Definition of Done

Everyday technical debt prevention must not require special permission from the Product Owner or business stakeholders. Writing clean code, modularizing functions, executing automated unit tests, and conducting peer reviews are intrinsic to professional craftsmanship. These practices are non-negotiable standards codified directly within the Definition of Done. The team never asks: "May we write unit tests this Sprint?" High quality is built into every Product Backlog item by default.

2. Strategic Refactoring on the Product Backlog

When a team inherits massive legacy debt—such as an outdated monolithic database, obsolete frameworks, or modules requiring complete architectural decomposition—remediation cannot be absorbed into routine daily tasks. These major initiatives must be made transparent as Product Backlog items.

However, developers must avoid formulating technical debt in obscure, jargon-heavy language (e.g., "Refactor UserService.java to utilize Spring Dependency Injection"). Instead, items must be expressed in terms of business value, risk reduction, and economic impact:

"Decouple the User Authentication service to isolate payment processing: eliminates multi-hour deployment downtime, reduces regression testing time from 3 days to 15 minutes, and enables PCI-DSS automated compliance audits."

3. Tracking Technical Debt via EBM Metrics

In Evidence-Based Management (EBM), technical debt manifests directly within the Organizational Capability dimension:

  • Technical Debt: One of the EBM Guide's example Ability to Innovate measures—the extra development and testing work created by "quick and dirty" solutions.
  • Defect Trends & Escaped Defects: Increasing defect arrival rates signal an uninspected accumulation of debt.
  • Mean Time to Repair (MTTR): Rising MTTR indicates brittle code that is difficult to diagnose and patch.
  • Release Stabilization Period: Any required manual stabilization phase before release is empirical proof of unaddressed technical debt.

The Symbiosis of Scrum and Extreme Programming (XP)

A critical insight for the PSM II assessment is understanding why Scrum alone is insufficient for sustained software agility. Scrum provides the organizational framework, empirical feedback loops, events, and accountabilities—but it intentionally omits prescriptive software engineering practices.

If a Scrum Team adopts all Scrum events and accountabilities but practices obsolete waterfall engineering (manual testing, long-lived feature branches, no refactoring), they will simply "produce bad software faster." To achieve true business agility, Scrum must be paired with the rigorous technical practices of Extreme Programming (XP):

LayerContributesExamples
ScrumEmpirical management frameworkSprint Planning, Daily Scrum, Sprint Review, Sprint Retrospective
Extreme Programming (XP)Technical excellence engineTDD, pair programming, CI/CD, refactoring, simple design
TogetherSustainable business agilityDone Increments every Sprint without a stabilization phase

Core XP Practices in Professional Scrum:

  • Test-Driven Development (TDD): Developers write automated unit tests before writing production code, following the strict Red-Green-Refactor cycle. TDD forces modular software architecture, provides living documentation, and creates an automated regression safety net that enables fearless refactoring.
  • Acceptance Test-Driven Development (ATDD) & Behavior-Driven Development (BDD): The Product Owner, Developers, and testers collaborate to formulate automated acceptance criteria before development begins, ensuring shared understanding of business intent.
  • Continuous Integration (CI) & Trunk-Based Development: Developers merge code into the mainline trunk multiple times a day. Every commit triggers an automated build and test pipeline, detecting merge conflicts and regressions within minutes rather than weeks.
  • Pair Programming & Mob/Ensemble Programming: Two or more developers collaborate at a single workstation (or virtual session) on complex code. This provides continuous peer review, dramatically lowers defect injection, disseminates architectural knowledge, and eliminates single points of failure.
  • Continuous Refactoring: Relentlessly cleaning, modularizing, and optimizing existing code without altering its external functional behavior.

Coaching the Product Owner on the Economics of Technical Excellence

A common organizational conflict occurs when a feature-focused Product Owner resists technical improvements, viewing refactoring as "engineering overhead that delivers zero customer value." An advanced Scrum Master does not allow developers to engage in secret refactoring, nor do they allow the Product Owner to run a feature factory. The Scrum Master coaches the Product Owner using economic arguments anchored in EBM:

1. The Cost of Delay and Quality Trade-offs

The Scrum Master demonstrates that delivering five low-quality features today that inject ten production bugs tomorrow is economically destructive. The team will spend much of next quarter firefighting those bugs, resulting in a severe collapse of Time-to-Market (T2M) for future high-priority features.

2. Ability to Innovate (A2I) as a Competitive Weapon

If competitors can launch a new market experiment in three days while our team requires six weeks because of architectural spaghetti, our product will lose market share. Investing a consistent share of every Sprint's capacity in technical debt remediation directly preserves the organization's Ability to Innovate (A2I).

3. Establishing Sustainable Velocity

Velocity is not an engine that can be redlined indefinitely. Professional Scrum requires working at a sustainable pace. Coaching the Product Owner to allocate dedicated capacity in every Sprint for technical debt remediation and automated tooling stabilizes cycle times, improves developer happiness, and ensures long-term commercial predictability.


Comprehensive Reference: Technical Debt Management Lifecycle

The table below outlines the end-to-end lifecycle for identifying, tracking, and eliminating technical debt in professional Scrum:

Lifecycle StageOperational MechanismRole AccountabilitiesTangible Artifact / Metric
PreventionRigorous Definition of Done; automated CI build gates; TDDDevelopers enforce quality; PO respects DoD boundariesAutomated unit tests with meaningful assertions; no unresolved high-severity security findings
IdentificationStatic analysis scans; code review; production telemetryDevelopers detect code rot; PO observes defect trendsStatic-analysis technical debt estimates; defect arrival rate tracking
TransparencySlicing architectural refactoring into business-value PBIsDevelopers articulate business impact; PO orders backlogProduct Backlog items with clear ROI (e.g., cycle time reduction)
RemediationContinuous refactoring in every Sprint; a consistent capacity allocation agreed with the PODevelopers execute refactoring; PO balances new featuresShrinking technical debt; decreasing Mean Time to Repair (MTTR)
GovernanceEBM Organizational Capability tracking during Sprint ReviewsScrum Team and leadership inspect capability healthImproved Time-to-Market (T2M) and surge in Innovation Rate (A2I)
Loading diagram...
Technical Debt Compounding Spiral vs. Engineering Excellence Virtuous Cycle
Test Your Knowledge

A Scrum Team is working on a legacy billing application. The Developers notice that the core calculation engine is becoming increasingly fragile, and any minor bug fix takes days to implement because there are no automated unit tests. When the Developers ask the Product Owner for permission to spend two Sprints doing pure architectural refactoring without delivering any business features, the Product Owner refuses, stating that stakeholders are demanding new payment features. In response, the Developers secretly inflate their story point estimates by 50% on upcoming user stories so they can perform refactoring without the Product Owner's knowledge. How should the Scrum Master address this dysfunction?

A

Support the Developers' secret refactoring strategy, because technical quality is solely the Developers' responsibility and Product Owners lack the technical knowledge to make architectural decisions anyway.

B

Advise the Product Owner to fire the Developers for dishonesty and recruit a new team willing to work without refactoring.

C

Bring it into the open: coach the Developers to put debt on the Product Backlog in business terms, and the PO on how quality protects speed.

D

Direct the Developers to cease all refactoring immediately and build only what the Product Owner requests, accepting that software decay is inevitable in commercial projects.

Test Your Knowledge

A newly hired Vice President of Product insists that 100% of every Sprint's capacity must be dedicated to customer-facing functional features. The VP mandates that any Product Backlog items related to automated test infrastructure, CI/CD pipeline improvements, or code refactoring be deleted, claiming that 'engineering hygiene is overhead that customers do not pay for.' Over the following six months, the team's defect arrival rate quadruples, cycle time increases from 4 days to 28 days, and two senior software engineers resign due to stress. How should the Scrum Master coach the Vice President?

A

Use EBM and debt economics to show the VP that neglecting engineering caused an A2I collapse in which defects eat capacity and inflate Time-to-Market.

B

Agree with the VP and advise the remaining developers to work 60-hour weeks to fix defects while maintaining 100% feature delivery until the new hires arrive.

C

Instruct the Developers to secretly write automated tests during their lunch breaks so that management remains unaware.

D

Recommend that the company outsource all software maintenance to a third-party vendor so internal teams can focus purely on new feature requests from the Vice President and customers.

Test Your Knowledge

A Scrum Team decides to adopt Extreme Programming (XP) practices, specifically Test-Driven Development (TDD) and Pair Programming, to eliminate severe defect rates in their core software module. An engineering manager intervenes and forbids these practices, arguing that having two developers sit at one computer cuts engineering output by 50%, and writing tests before writing production code doubles development time. How should the Scrum Master coach the engineering manager?

A

Agree with the engineering manager and instruct the Developers to work in isolation without automated tests to maximize resource utilization.

B

Advise the Developers to ignore the engineering manager completely and bar the manager from attending any Scrum events until the manager accepts the team's choice of engineering practices.

C

Suggest that Developers only pair program when an engineer is on performance probation or about to be terminated, so that pairing time is limited to the cases where it is most needed.

D

Share the evidence on TDD and pairing (fewer defects and less rework, some up-front time) and propose running them as an inspected experiment.

Sections you finish are checked off in the contents.