Dependencies and supply chain
16 questions in 6 subtopics.
Dependency conflicts
A service works in the IDE but fails in the packaged jar withClassNotFoundException for a class that is present in another version of the same library. List likely causes.Two internal libraries you depend on need incompatible major versions of the same library (for example Jackson 2 and Jackson 3, which use different packages, or two versions with the same packages). What options do you have?Your company's services all embed the same internal client library, which itself depends on a specific version of a popular HTTP client. Upgrading it often breaks services. How would you redesign the library to reduce conflicts?Transitive dependencies
What is a transitive dependency, and when would you exclude one? Give an example from a Spring Boot project.A security team asks how many of your services include a specific vulnerable version of log4j-core, mostly through transitive paths. How do you answer within hours, and what would make it faster next time?Vulnerability scanning
What do dependency vulnerability scanners such as OWASP Dependency-Check, Dependabot, Snyk, Trivy or OSV-Scanner do, and what are their main limitations?Your CI pipeline fails builds on any critical CVE, and teams now spend days on findings that do not affect them. How would you redesign the policy?Design a vulnerability management process for 300 Java services that balances security with delivery speed.After a widely exploited library vulnerability, the board asks how exposed the company would be to the next one. How would you answer, and what multi-year programme would you propose?SBOM
What is an SBOM, which formats are common, and how can a Java build produce one?Design how SBOMs should be generated, stored and used across your company so they help during the next zero-day.Reproducible builds
What does a reproducible build mean for a Java project, and what usually prevents a Maven or Gradle build from producing identical bytes twice?Why should a company care about reproducible builds and build provenance, and how much would you invest in them?Artifact repositories
Why do companies run an artifact repository manager such as Nexus or Artifactory instead of letting builds download directly from Maven Central?An attacker publishes a package to a public repository with the same coordinates as one of your internal artifacts but a higher version. What is this attack and how do you prevent it in Maven and Gradle builds?How would you set the long-term governance model for third-party dependencies at a company with thousands of Java developers?No question matches these choices.