Quick revision
The short answer
A good process makes the safe choice the cheap choice. We layer a company BOM on Spring Boot's BOM with approved versions updated on a schedule, let update bots open tested pull requests so staying current costs minutes, enforce licence and banned-library policy in the build itself, route every download through an artifact repository proxy and generate an SBOM per build, and set clear deadlines for critical vulnerabilities with reporting per team. Teams stay free to choose any library the rules allow.
What to remember
In this answer, we designed dependency governance for 300 services as layers: an artifact proxy at the entry point, Spring Boot's BOM and a company BOM for versions, build rules for bans, licences and convergence, and free choice for teams at the top. Automated update pull requests make staying current cheap, SBOMs per build make exposure queryable, and severity deadlines with per-team reporting keep security work visible without central review of every change.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
A good process makes the safe choice the cheap choice. We layer a company BOM on Spring Boot's BOM with approved versions updated on a schedule, let update bots open tested pull requests so staying current costs minutes, enforce licence and banned-library policy in the build itself, route every download through an artifact repository proxy and generate an SBOM per build, and set clear deadlines for critical vulnerabilities with reporting per team. Teams stay free to choose any library the rules allow.
Why this question is asked
With 300 services, dependency decisions happen hundreds of times a week, and no central team can review them by hand. If governance means asking permission, teams route around it; if there is no governance, the next critical vulnerability takes a month to patch and nobody knows which licences ship in the product. Interviewers ask this design question to see whether we can build a system where security, stability and autonomy support each other. In this answer, we will look at the layers of the design, the automated update loop, policy enforced in the build, supply-chain control through a proxy and SBOMs, and the deadlines and reporting that keep it honest.
1The Shape of the Design
We can think of dependency governance as layers, each with a clear owner. At the bottom is the public open-source world. Above it, our artifact repository proxy decides what can enter the company. Then Spring Boot's BOM gives a tested base of versions, and the company BOM adds our approved versions of everything else. Build rules check each service against policy, and finally each service chooses what it actually uses.
Notice that teams keep their freedom at the top. A team can add any library the policy allows, without asking anyone. Central control is concentrated in a few places that are automated: the proxy, the BOM and the build rules.
- Servicechooses its libraries freely within policy
- Build rulesMaven Enforcer or Gradle checks: bans, licences, convergence
- Company BOMapproved versions, released on a cadence
- Spring Boot BOMversions the Spring team tested together
- Artifact repository proxysingle entry point, caching, quarantine, SBOM storage
- Public repositoriesMaven Central and others
6 layers, from the top down. Step through them one at a time.
Control lives in the automated lower layers; autonomy lives at the top.
2A Company BOM, Updated Regularly
The company BOM imports spring-boot-dependencies and adds managed versions for internal libraries and for popular third-party libraries Boot does not manage. It is released on a fixed cadence that follows Spring Boot's patch releases within days, and each release is validated against a set of representative services before publication.
Its job is to answer 'which version should I use' once for everyone. That gives stability, because 300 services run the same tested combination, and it gives security leverage, because one change to the BOM fixes a version for every service that inherits it.
3Making Staying Current Cheap
Governance fails when upgrading is expensive, because people postpone expensive work. So an update bot, Renovate or Dependabot, opens a pull request in every service whenever the company BOM or a direct dependency has a new version. Each pull request is small, CI runs the service's tests, and patch updates with passing checks can merge automatically. The cost of staying current falls to a few minutes per week per team.
This also changes the conversation with teams. We no longer ask them to 'upgrade Spring Boot'; we ask them to merge the pull requests that are already open and green.
4Policy Enforced in the Build
Rules that live in a wiki are forgotten; rules that fail the build are not. We put the policy into a shared build plugin configuration, inherited from the company parent POM, so every service runs it.
Licences need a policy too. Most companies allow permissive licences such as Apache 2.0 and MIT freely, allow some others after review, and ban strong copyleft licences in distributed products. A licence plugin, or a policy check against the SBOM in the repository manager or Dependency-Track, fails the build when a disallowed licence appears. In Gradle, the same rules are written as dependency constraints and resolution rules in a shared convention plugin.
Every rule needs an exception path, because some bans have legitimate exceptions. An exception is recorded with a reason, an owner and an expiry date, so it does not silently become permanent.
5Supply-Chain Control: Proxy and SBOMs
All builds, on laptops and CI, download dependencies only through the company's artifact repository proxy, such as Nexus or Artifactory, and direct access to public repositories is blocked from CI. That gives one place to cache artifacts, so builds survive an outage of Maven Central; to block known malicious or banned packages before they reach anyone; and to see who uses what.
Each build also generates an SBOM, for example with the CycloneDX plugin, stored with the build and linked to what is deployed. When the next critical CVE arrives, finding the affected services among 300 is a query, not a week of emails.
6Deadlines and Reporting per Team
Finally, we agree on clear deadlines for vulnerabilities by severity, and report status per team. Reporting per team matters: a company-wide count of 4,000 open findings motivates nobody, while a team page saying 'you have two critical findings, one due on Friday' is actionable.
| Severity | Deadline | If missed |
|---|---|---|
| Critical, reachable or internet-facing | 7 days | escalate to engineering director |
| Critical, other | 14 days | flagged in weekly report |
| High | 30 days | flagged in weekly report |
| Medium | 90 days | tracked, no escalation |
| Low | next planned upgrade | tracked |
7Follow-up questions
Does banning libraries hurt team autonomy?
Only if the list is long and unexplained. We keep it short, limited to libraries with real security, licence or support problems, give the reason and the recommended replacement for each, and offer a time-limited exception process. Everything not banned is allowed without approval.
Who owns this process?
A small platform team owns the BOM, the shared build rules and the proxy, and the security team owns severity and deadlines. Each service team owns merging updates and fixing findings in its services. Clear ownership is what lets 300 services move without a central bottleneck.
How do we measure whether it works?
We track a few numbers: the share of services within one BOM version of the latest, the median and worst time to patch critical vulnerabilities, the number of active exceptions, and SBOM coverage of deployed services. Rising lag or patch times show where to help.
8Conclusion
In this answer, we designed dependency governance for 300 services as layers: an artifact proxy at the entry point, Spring Boot's BOM and a company BOM for versions, build rules for bans, licences and convergence, and free choice for teams at the top. Automated update pull requests make staying current cheap, SBOMs per build make exposure queryable, and severity deadlines with per-team reporting keep security work visible without central review of every change.
Open with
My goal would be to make the safe choice the cheap one, so governance is mostly automated and teams keep freedom. Versions come from a company BOM built on Spring Boot's BOM, released on a predictable cadence and validated against representative services, so one change fixes a version for everyone.
Then, if they want more
Renovate or Dependabot opens small pull requests for each update with CI tests, and patch updates can auto-merge, so staying current takes minutes.
Policy lives in the build, not in a wiki: a shared Maven Enforcer configuration in the company parent bans end-of-life or vulnerable libraries and checks convergence, and a licence check fails on disallowed licences, with a time-limited exception process.
All downloads go through an artifact repository proxy like Nexus or Artifactory, which gives caching, blocking and visibility, and every build produces a CycloneDX SBOM so we can find affected services in minutes. Finally, clear remediation deadlines by severity, for example seven days for reachable criticals, with reports per team rather than one big number.
Teams can still pick any library the rules allow without asking anyone. I'd track BOM lag, time to patch criticals, SBOM coverage and open exceptions to see if it works.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Design a dependency governance process for 300 Java services that balances security...": https://scrivio-interview-library.netlify.app/architecture/platform-and-governance/c3599bc9af/