Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Your company has run a graph database for five years for recommendations, but only one team understands it, and its licence cost has grown. What options do you put in front of leadership?

I would first show the value the graph delivers against its full cost: revenue attributed to recommendations against licence, infrastructure and the staff who run it. Then I put three options in front of leadership: keep it and invest in skills, move to an open-source or managed alternative, or replace the traversals with precomputed relationships in databases we already run, each with its risks around key people, vendor terms and query migration. I recommend one direction with a pilot that measures recommendation quality and latency before any full migration, and whatever we choose, we reduce the key-person risk with documentation and rotation.

Why this question is asked

Five years in, a technology choice has become a business dependency with two problems: only one team can keep it running, and its bill keeps rising. Leadership does not want a lecture on graph theory; they want to know what the feature earns, what it costs, what could go wrong, and what we propose. Interviewers ask this leadership question to see whether we can turn a technical situation into clear options with numbers and a recommendation. In this answer, we will establish value against cost, lay out the three main options, assess the risks of each, shape a recommendation with a pilot, and deal with the key-person risk that exists regardless of the choice.

1Establishing Value Against Cost

The first slide answers 'is this worth it?'. On the value side we use the best attribution the company has: the share of orders or engagement that comes from recommendation clicks, and ideally results from past A/B tests where recommendations were turned off for a group. Suppose recommendations drive 6 percent of revenue and a test showed that half of that would be lost without them; then the feature is worth roughly 3 percent of revenue.

On the cost side we add the licence, which is often the visible problem, the infrastructure it runs on, and the staffing: the engineers who maintain the cluster, write the queries and handle incidents, plus the cost of slow delivery when every change waits for that one team. A typical summary reads: 'Recommendations add about 4 million a year; the graph platform costs 900,000 a year, of which 550,000 is licence, and the licence grew 40 percent in two years.' That framing makes clear the question is how to keep the value at lower cost and risk, not whether to switch the feature off.

2Laying Out the Options

There are three realistic paths. Keep and invest: stay on the current product, negotiate the licence, possibly with a multi-year agreement, and grow a second team that can work with it. Move to an alternative graph platform: an open-source graph database, a different edition, or a managed graph service, keeping the graph model and rewriting queries where the language or features differ. Replace graph traversals: many recommendation queries are a fixed shape, such as 'people who bought X also bought Y' or 'items two steps away', which can be precomputed in batch and stored as plain lists in a database we already run, such as PostgreSQL or a key-value store, so online reads become simple lookups.

Each option keeps the feature; they differ in cost, risk and how much the system has to change.

Options for leadership
OptionCost trendMain riskEffort
Keep and invest in skillsLicence stays or growsVendor terms, slow hiringLow
Alternative graph platformLower licence, migration costQuery rewrite, feature gapsMedium
Precompute in existing storesLowest running costLoses ad-hoc traversalsMedium to high
Numbers for each row come from our own costs and the pilot.

3Assessing the Risks Honestly

Key-person dependency is a risk today: if two engineers leave, nobody can fix the cluster or change the queries. Vendor terms are a risk too: licence pricing can change at renewal, and editions can change what is included. Migration complexity depends on what the queries do. If most of them are a dozen fixed patterns, moving or precomputing them is manageable. If analysts and data scientists write new traversals every week, replacing the graph would remove a capability, and that loss needs to be counted.

So before presenting options we audit the queries: how many distinct queries run, how often, which features they use, and which ones serve the live product. That audit often shows that a few queries carry most of the traffic, which makes the replacement or migration option much more concrete.

4A Recommendation With a Pilot

Leadership expects a recommendation, not a menu. Suppose the audit shows that 90 percent of traffic comes from five fixed query patterns. A reasonable recommendation is: precompute those five patterns nightly into the existing PostgreSQL and serve them from there, and keep a smaller graph instance or move to an open-source graph database for the remaining exploratory work. We do not ask for a full migration on faith. We propose a pilot: serve the precomputed recommendations to 10 percent of traffic for four weeks and compare click-through, conversion and latency with the current system.

The pilot has success criteria agreed in advance, such as conversion within 2 percent of the control group and p99 latency under 50 milliseconds, and a decision date. If it meets them, we migrate in stages and plan the licence reduction at the next renewal; if not, we keep the graph and renegotiate with the evidence in hand.

Step throughFrom audit to decision
  1. Audit queries and costsvalue, cost, query patterns
  2. Present three options with risksone recommendation
  3. Pilot on 10 percent of trafficquality and latency, 4 weeks
  4. Meets agreed criteria?
    YesMigrate in stages, cut licenceNoKeep graph, renegotiate with evidence

4 steps in order. Play them, or step through them one at a time.

5Reducing Key-Person Risk Whatever We Choose

Even if we keep the graph database, depending on one team is not acceptable for a revenue feature. We write runbooks for operations, upgrades and incident handling, document the data model and the main queries with examples, and rotate engineers from other teams through the graph team for a few months at a time. A second team is put on the on-call rota with the original team as backup. Pairing on the next feature in the recommendation area spreads the knowledge further. These steps cost a little delivery speed now, and they are what makes any of the three options safe.

6Follow-up questions

How do you present this if leadership only has ten minutes?

One page: what the feature earns, what the platform costs and how fast the cost is growing, the three options with one line each on cost and risk, the recommendation, and the pilot with its success criteria and decision date. The detail stays in an appendix for anyone who wants it.

What if the team that owns the graph opposes the change?

They know the system best, so we involve them in the audit and the pilot design and make sure the criteria are fair. Often their concern is losing work they are proud of or being blamed for the cost. Framing it as reducing risk for the feature they built, and giving them a lead role in whatever comes next, usually turns opposition into ownership.

When would you recommend keeping the current product?

When the audit shows many varied, evolving traversals that precomputation cannot replace, when alternatives lack features the queries need, and when a negotiated licence brings the cost to an acceptable share of the value. Then the right investment is in skills and documentation.

7Conclusion

In this answer, we saw how to turn an expensive, single-team graph database into a decision for leadership. We set the value of recommendations against licence, infrastructure and staff costs, laid out keeping and investing, moving to an alternative platform, or precomputing relationships in existing stores, assessed key-person, vendor and migration risks through an audit of real queries, recommended a direction backed by a pilot with agreed criteria, and reduced key-person risk with documentation, rotation and shared on-call regardless of the outcome.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start by putting value next to cost. On the value side, the revenue attributed to recommendations, ideally from past A/B tests; on the cost side, the licence, the infrastructure and the people who run it, including how fast the licence has grown.

Then, if they want more

Then I would audit the queries, because the options depend on them: how many distinct traversals run, which serve the live product, and which features they use. With that I would present three options. Keep the graph database and invest in skills and a better licence deal.

Move to an open-source or managed graph alternative, which lowers licence cost but needs query rewrites and has feature risk. Or replace the common traversals with relationships precomputed in batch and stored in databases we already run, which is cheapest to operate but loses ad-hoc traversals.

I would be honest about the risks: key-person dependency, vendor renewal terms and migration complexity. My recommendation would come with a pilot, for example precomputed recommendations for 10 percent of traffic over four weeks, with agreed criteria for conversion and latency and a decision date.

And whichever option wins, I would reduce key-person risk now with runbooks, documentation, rotation and a second team on call.

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 documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Redis documentation, MongoDB manual
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 "Your company has run a graph database for five years for recommendations, but only one...": https://scrivio-interview-library.netlify.app/databases/nosql-fundamentals/a209c84b63/