Interview › Security & DevSecOps
What is a SonarQube hotspot, and how is it different from a vulnerability? [Basic]
Answer
A SonarQube security hotspot is security-sensitive code that requires human review to decide whether it is safe. A vulnerability is a finding where SonarQube has stronger evidence of an actual exploitable security flaw.
Technical explanation
Hotspots are review workflows, not automatically confirmed vulnerabilities.
Examples include use of cryptography, CORS settings, file handling, or authentication-related code that may be safe or unsafe depending on context.
A hotspot should be marked reviewed only after the reviewer verifies the implementation and documents the reasoning.
Hands-on example
Example: SonarQube flags a Security Hotspot for a permissive CORS configuration. The reviewer checks whether it is limited to non-sensitive public endpoints. If unsafe, they restrict origins; if safe, they mark it reviewed with justification.
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]
- How does SonarQube measure code coverage, and does it run your tests? [Basic]
- What is technical debt in SonarQube, and how is it estimated? [Basic]
- What is the difference between SonarQube and SonarCloud? [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 the difference between a quality gate and a quality profile in SonarQube? [Basic]
- What is a SonarQube quality gate, and how do you use it to fail a build? [Basic]