Scrivio Interview library

Dependencies and supply chain

16 questions in 6 subtopics.

Dependency conflicts

DebuggingFoundations8 min read
A service works in the IDE but fails in the packaged jar with ClassNotFoundException for a class that is present in another version of the same library. List likely causes.
ScenarioIntermediate7 min read
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?
DesignAdvanced7 min read
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

ConceptFoundations7 min read
What is a transitive dependency, and when would you exclude one? Give an example from a Spring Boot project.
ScenarioIntermediate7 min read
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

ConceptFoundations6 min read
What do dependency vulnerability scanners such as OWASP Dependency-Check, Dependabot, Snyk, Trivy or OSV-Scanner do, and what are their main limitations?
ScenarioIntermediate7 min read
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?
LeadershipAdvanced6 min read
Design a vulnerability management process for 300 Java services that balances security with delivery speed.
LeadershipPrincipal6 min read
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

ConceptFoundations6 min read
What is an SBOM, which formats are common, and how can a Java build produce one?
DesignAdvanced6 min read
Design how SBOMs should be generated, stored and used across your company so they help during the next zero-day.

Reproducible builds

ConceptIntermediate6 min read
What does a reproducible build mean for a Java project, and what usually prevents a Maven or Gradle build from producing identical bytes twice?
LeadershipPrincipal6 min read
Why should a company care about reproducible builds and build provenance, and how much would you invest in them?

Artifact repositories

ConceptFoundations6 min read
Why do companies run an artifact repository manager such as Nexus or Artifactory instead of letting builds download directly from Maven Central?
ScenarioIntermediate6 min read
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?
LeadershipPrincipal6 min read
How would you set the long-term governance model for third-party dependencies at a company with thousands of Java developers?