Interview Security & DevSecOps

Is SonarQube primarily SAST, code quality, or both? [Basic]

Answer

SonarQube is both a code quality platform and a SAST-style static analysis tool. It detects security vulnerabilities and hotspots, but it also evaluates maintainability, reliability, duplication, test coverage, and technical debt.

Technical explanation

Calling it only SAST understates its quality-management role.

Calling it only code quality understates its security rules, vulnerability detection, taint analysis capabilities in supported editions, and security review workflows.

In interviews, I describe it as static code analysis for quality and security with quality gates for governance.

Hands-on example

Example: a PR analysis finds a SQL injection vulnerability, 12 code smells, duplicate blocks, and coverage below the new-code threshold. The pipeline fails because the quality gate checks all configured quality and security conditions together.

Preparing for an interview?

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

← All Security & DevSecOps questions