Quick revision
The short answer
I would make the company's graph a shared platform product: one catalogue of services, owners, dependencies and data sets, with APIs, built automatically from build files, deploy manifests and traces so people trust it. On top of it, the platform team offers reusable libraries and query patterns, such as topological ordering for upgrade waves and reachability for blast radius and lineage, and leadership uses the graph for real governance decisions like upgrade sequencing and deprecation impact. Underneath it all, we invest in people who can reason about graph algorithms and data quality, not only in tools.
What to remember
In this answer, we saw that dependency upgrades, data lineage, access control and service ownership are all questions of reachability, ordering and closure over one company graph. The capability rests on a shared catalogue graph run as a platform product with APIs, made trustworthy by deriving edges from build files, deploy manifests and traces, served by reusable libraries for patterns like topological upgrade waves and blast-radius reachability, and used for governance decisions such as upgrade sequencing and deprecation impact. People who can reason about graph algorithms and data quality make it all work.
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.
I would make the company's graph a shared platform product: one catalogue of services, owners, dependencies and data sets, with APIs, built automatically from build files, deploy manifests and traces so people trust it. On top of it, the platform team offers reusable libraries and query patterns, such as topological ordering for upgrade waves and reachability for blast radius and lineage, and leadership uses the graph for real governance decisions like upgrade sequencing and deprecation impact. Underneath it all, we invest in people who can reason about graph algorithms and data quality, not only in tools.
Why this question is asked
When every team solves its graph problems alone, the company gets five half-correct dependency spreadsheets, an upgrade plan that misses a transitive dependency, and an access review that cannot say who can reach a data set. These are the same few algorithms applied to the same underlying graph, so the leverage is in building it once and teaching people to use it. Interviewers ask this question to see whether a leader can recognise a recurring pattern across domains and turn it into a platform, data and people strategy. In this answer, we will see why these problems are all graph problems, then build the shared catalogue graph, make its data trustworthy, provide reusable patterns, use the graph for governance, and grow the people who make it work.
1Recognising the Graph Problems in Disguise
Each of the four problem areas is a question about nodes and edges. Dependency upgrades ask, for a library or framework version, which services depend on it directly or transitively, and in what order they can be upgraded: a reachability question and a topological ordering. Data lineage asks where a data set comes from and what is computed from it: reachability forwards and backwards over a pipeline graph. Access control asks who can reach a resource through roles, groups and delegations: a transitive closure. Service ownership asks who owns each node and who should be paged when it fails: a join of the graph with an ownership graph.
Seeing them as one family matters because it means one data model, one set of well-tested algorithms and one set of skills serve all four. Teams that currently build bespoke tools for each can share most of the work.
| Problem | Nodes and edges | Typical algorithm |
|---|---|---|
| Dependency upgrades | services, libraries; depends-on | reachability, topological order |
| Data lineage | data sets, jobs; produces, consumes | forward and backward reachability |
| Access control | people, groups, roles, resources; member-of | transitive closure with cycle checks |
| Service ownership | services, teams, people; owns, on-call-for | joins and one-hop lookups |
2A Shared Catalogue Graph as a Platform Product
The foundation is one catalogue graph covering services, libraries, teams, people, data sets, pipelines and the edges between them, run as a platform product with an owning team, a roadmap and users. It is exposed through APIs and a search interface, such as "dependents of library X, version below Y" or "downstream data sets of table Z", so tools and people build on it instead of copying it. Many companies build this on an existing developer portal with a software catalogue, for example Backstage, extended with the edges they need.
Treating it as a product means caring about its users: an SLA for freshness, documentation, a changelog of the schema, and support. A catalogue that is a side project of one team becomes stale within a year, and a stale graph is worse than none, because people make decisions on it.
- Sourcesbuild files, deploy manifests, traces, data catalogue, identity system
- Ingestion and validationautomatic extraction, freshness and quality checks
- Catalogue graphnodes, edges, owners, time windows; one schema
- APIs and query libraryreachability, topological order, closure, path finding
- Tools and decisionsupgrade waves, blast radius, access reviews, deprecations
5 layers, from the top down. Step through them one at a time.
Each layer has an owner; trust in the top layer depends on the bottom two.
3Making the Graph Data Trustworthy
The most common reason catalogue graphs fail is manual data entry. Nobody updates a form when they add a dependency, so within months the graph disagrees with reality and people stop using it. The fix is to derive edges from the systems that already have to be correct. Library dependencies come from build files: Maven or Gradle dependency trees resolved in CI on every build. Deployments and runtime configuration come from deploy manifests, such as Kubernetes resources. Runtime call edges come from distributed traces, for example OpenTelemetry data aggregated into time windows. Data lineage comes from pipeline definitions and the data catalogue, and access edges from the identity provider.
Manual input is limited to facts no system knows, such as business criticality, and even ownership is checked against who actually deploys and is on call. We also measure data quality: the share of services with an owner, edges older than their freshness target, services seen in traces but missing from the catalogue. Those numbers are published, so trust is earned in the open.
4Reusable Libraries and Query Patterns
Teams should not reimplement graph algorithms. The platform team ships a small, well-tested library and API endpoints for the patterns that come up again and again: topological ordering with cycle reporting for upgrade waves and startup order, reachability with depth limits and visited sets for blast radius, lineage and access, transitive closure for permissions, and shortest path for call chains. Each comes with examples written for the real catalogue, such as "compute upgrade waves for moving every service to Spring Boot 4".
Notice that the cycle report is part of the answer. In real dependency graphs, cycles between internal libraries are common, and a planning tool that silently ignores them produces an impossible plan. Patterns written once, with these edge cases handled, are what make teams solve these problems consistently.
5Using the Graph for Governance Decisions
A graph that only powers dashboards gets little investment. One that decides things gets a lot. So leadership uses it explicitly. Upgrade sequencing: framework and JDK upgrades are planned as topological waves from the graph, with progress tracked per wave. Deprecation impact: before a service or API is deprecated, the graph lists every direct and transitive dependent and its owner, and the deprecation plan is built from that list. Incident reviews use the blast radius from the graph to check whether the actual impact matched the expected one, which also tests the graph's accuracy. Access reviews use the closure to show who can reach sensitive data sets and through which group chains.
Each of these uses also pushes data quality up, because owners now have a reason to correct wrong edges: a wrong edge puts their service in the wrong upgrade wave.
- Propose deprecating service X
- Query all dependentsdirect and transitive, with owners and call volumes
- Any critical dependents without a migration path?YesPlan migrations firstNoPublish the deprecation timeline
- Track progress on the graphedges to X should fall to zero
- Retire X when traffic is zeroconfirmed by trace edges
5 steps in order. Play them, or step through them one at a time.
6Investing in People, Not Just Tools
Tools without people who understand them produce confident wrong answers. Someone has to notice that a reachability query is following stale edges, that a cycle in the lineage graph means a pipeline reads its own output, or that a closure table is growing quadratically because of one huge group. So I would invest in people who combine graph algorithm knowledge with data quality instincts: a few strong engineers on the platform team, and a guild or community of practice that spreads the patterns into product teams.
Practical steps help: short internal courses that teach BFS, topological sorting and closure on our own catalogue data, pairing platform engineers with teams on their first graph-backed project, and recognising work that improves the graph's data quality in performance reviews. Hiring for the platform team includes graph modelling and data quality questions, not just tool experience. Over time, "this is a graph problem, use the catalogue" becomes the normal first thought.
7Follow-up questions
How do you get teams to use the shared graph instead of their own spreadsheets?
Make it better than the spreadsheet for their own work: more accurate because it is derived from builds and traces, easier to query, and used by the decisions that affect them, such as upgrade waves. Once a governance process uses the graph, teams have a reason to rely on it and to fix it.
What is the first step if nothing exists today?
Pick one painful decision, usually a framework or JDK upgrade, and build just enough graph to serve it: services and library dependencies extracted from build files, plus owners. Deliver the upgrade waves, show the time saved, and expand to traces, data lineage and access from there.
How do you measure whether the capability works?
By outcomes and data quality: time to plan an upgrade or deprecation, how often incident blast radius matched the graph's prediction, the share of nodes with owners, and the freshness of edges. Usage numbers of the APIs and tools complete the picture.
8Conclusion
In this answer, we saw that dependency upgrades, data lineage, access control and service ownership are all questions of reachability, ordering and closure over one company graph. The capability rests on a shared catalogue graph run as a platform product with APIs, made trustworthy by deriving edges from build files, deploy manifests and traces, served by reusable libraries for patterns like topological upgrade waves and blast-radius reachability, and used for governance decisions such as upgrade sequencing and deprecation impact. People who can reason about graph algorithms and data quality make it all work.
Open with
I would start by naming the pattern: upgrades, lineage, access and ownership are all reachability, ordering and closure questions over the same company graph. So instead of every team building its own spreadsheet, I would build one catalogue graph of services, libraries, teams, data sets and their edges, run as a platform product with an owner, APIs and a freshness SLA, possibly on top of a developer portal like Backstage.
Then, if they want more
The key to trust is that edges are derived, not typed in: library dependencies from Maven or Gradle in CI, deployments from manifests, runtime calls from traces, lineage from pipeline definitions, access from the identity system, with published quality metrics like the share of services with an owner.
On top, the platform team provides tested libraries and query patterns, topological ordering with cycle reports for upgrade waves, reachability with visited sets and depth limits for blast radius and lineage, closure for access, so teams do not reimplement them.
Then leadership actually uses it: upgrade sequencing from topological waves, deprecation plans from the dependents list, incident reviews comparing real and predicted blast radius. That gives everyone a reason to keep it correct.
Finally, I would invest in people, a few engineers strong in graph algorithms and data quality and a guild that spreads the patterns, because tools alone produce confident wrong answers.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Spring Boot 4
- 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 "Many of your platform problems are graph problems in disguise: dependency upgrades, data...": https://scrivio-interview-library.netlify.app/java/algorithms-and-data-structures/3f4c382353/