What is the difference between SonarQube and SonarCloud?

IntermediateConceptSonarQube
Answer

Short answer

SonarQube is the self-hosted product — you run the server (Docker, VM, Kubernetes) and its database. SonarCloud (now SonarQube Cloud) is the SaaS version hosted by Sonar, integrated with GitHub, GitLab, Bitbucket and Azure DevOps — no server to maintain.

Comparison

SonarQube (self-hosted) SonarCloud (SaaS)
Hosting You run it Sonar runs it
Maintenance Upgrades, backups, DB, scaling None
Network Can stay fully internal Needs internet access to Sonar
Branch/PR analysis Developer Edition+ Included
Pricing Free Community, paid editions per LOC Free for public repos, paid per LOC for private
Good for Air-gapped/regulated environments, full control Teams on cloud Git platforms wanting zero ops

What to say in the interview

"SonarQube is self-managed, giving control and internal-only networking at the cost of operating it; SonarCloud is the SaaS version with built-in PR decoration and no maintenance. Regulated or air-gapped orgs pick SonarQube, cloud-native teams often pick SonarCloud."

All Security Tools questions Roadmap: SonarQube — code quality & SAST

More on SonarQube