Interview › Security & DevSecOps
What is technical debt in SonarQube, and how is it estimated? [Basic]
Answer
Technical debt in SonarQube is an estimate of the remediation effort required to fix maintainability issues, usually expressed as time. It helps quantify how much engineering effort is needed to make the code easier and safer to change.
Technical explanation
Each rule has a remediation function or estimated effort, and SonarQube aggregates that across code smells and maintainability findings.
Debt is an estimate, not an exact project plan; teams should validate high-impact items manually.
Debt ratio and maintainability rating help compare codebases, but operational risk and business criticality should also influence prioritization.
Hands-on example
Example: a service has 20 days of estimated debt, but most new code is clean. The team agrees to spend 10 percent of each sprint on the highest-risk debt: complex payment flows, duplicated auth logic, and untested error handling.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- How does SonarQube measure code coverage, and does it run your tests? [Basic]
- What metrics does SonarQube track (coverage, duplication, code smells, bugs, vulnerabilities)? [Basic]
- What does 'clean as you code' mean in SonarQube, and why focus on new code? [Basic]
- What is a SonarQube hotspot, and how is it different from a vulnerability? [Basic]
- What is the difference between a quality gate and a quality profile in SonarQube? [Basic]
- How do you handle false positives in SonarQube? [Basic]
- What is a SonarQube quality gate, and how do you use it to fail a build? [Basic]
- Is SonarQube primarily SAST, code quality, or both? [Basic]