Interview › Security & DevSecOps
What is software composition analysis (SCA), and why does it matter for dependencies? [Basic]
Answer
Software composition analysis identifies the third-party libraries, frameworks, transitive dependencies, and licenses in an application. It matters because most modern applications depend heavily on open-source packages, and a vulnerability can enter through a library the team did not write.
Technical explanation
SCA reads package manifests, lock files, build outputs, SBOMs, and sometimes container images.
It maps components to CVEs, license policies, end-of-life versions, and known malicious packages.
Good SCA prioritizes reachable, exploitable, internet-exposed, and business-critical findings rather than treating every CVE equally.
Hands-on example
Hands-on: for a Java service, scan pom.xml and the built image. If log4j-core is found as a transitive dependency, identify the parent dependency with mvn dependency:tree, upgrade or override the version, rebuild, regenerate the SBOM, and rescan before deployment.
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
- Is SonarQube primarily SAST, code quality, or both? [Basic]
- What is a SonarQube quality gate, and how do you use it to fail a build? [Basic]
- What is the difference between a quality gate and a quality profile in SonarQube? [Basic]
- What does 'clean as you code' mean in SonarQube, and why focus on new code? [Basic]
- What metrics does SonarQube track (coverage, duplication, code smells, bugs, vulnerabilities)? [Basic]
- What is technical debt in SonarQube, and how is it estimated? [Basic]
- How does SonarQube measure code coverage, and does it run your tests? [Basic]
- What is a SonarQube hotspot, and how is it different from a vulnerability? [Basic]