Interview › Security & DevSecOps
What is the difference between SonarQube and SonarCloud? [Basic]
Answer
SonarQube is typically a self-managed or enterprise-managed server that an organization operates. SonarCloud is SonarSource's hosted SaaS offering, commonly used for cloud-hosted repositories and teams that do not want to operate the platform themselves.
Technical explanation
SonarQube gives more control over hosting, network placement, plugins, data residency, and enterprise integration.
SonarCloud reduces operational overhead and is convenient for GitHub, Bitbucket, Azure DevOps, and open-source workflows.
The choice depends on compliance, data residency, administration model, repository hosting, and cost structure.
Hands-on example
Example decision: for regulated internal code with strict data residency, use self-hosted SonarQube behind SSO. For a small SaaS team already on GitHub Cloud, use SonarCloud and enforce its PR checks through branch protection.
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 do you handle false positives in SonarQube? [Basic]
- What is a SonarQube hotspot, and how is it different from a vulnerability? [Basic]
- How does SonarQube measure code coverage, and does it run your tests? [Basic]
- What is the difference between agent-based and agentless cloud security scanning? [Basic]
- What is technical debt in SonarQube, and how is it estimated? [Basic]
- How does Wiz scan a cloud environment without agents? [Basic]
- What is the Wiz Security Graph, and why is context important for prioritisation? [Basic]
- What metrics does SonarQube track (coverage, duplication, code smells, bugs, vulnerabilities)? [Basic]