Quick revision
The short answer
I would decide from the use cases, not the tools: continuous transformations that produce new streams fit Flink SQL, low-latency dashboards and ad hoc slicing fit a real-time analytics store fed from Kafka, and continuously maintained views for serving fit a streaming database, and one tool rarely does all three well. Every self-service job needs an owner, a quota and lifecycle reviews, production is protected by read-only access to curated topics, and the offering starts as a pilot with stated latency and correctness guarantees.
What to remember
In this answer, we decided what to offer from the use cases: Flink SQL for continuous transformations, a real-time analytics store for dashboards and ad hoc slicing, and a streaming database for serving maintained views. Because streaming jobs run forever, each needs an owner, a quota and lifecycle reviews. Production stays protected through curated topics, separate quotas, no writes to operational topics and schema enforcement. We weighed managed offerings against lock-in, kept business definitions portable, and planned a pilot that measures value and cost and states latency and correctness guarantees plainly.
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 decide from the use cases, not the tools: continuous transformations that produce new streams fit Flink SQL, low-latency dashboards and ad hoc slicing fit a real-time analytics store fed from Kafka, and continuously maintained views for serving fit a streaming database, and one tool rarely does all three well. Every self-service job needs an owner, a quota and lifecycle reviews, production is protected by read-only access to curated topics, and the offering starts as a pilot with stated latency and correctness guarantees.
Why this question is asked
Self-service streaming SQL is an appealing promise: analysts write a query and get a live metric without waiting for an engineering team. It is also a way to fill a cluster with hundreds of stateful jobs nobody owns, reading topics they should not, with costs nobody tracks. Interviewers ask this leadership question to see whether we can choose technology from needs, count the cost of permanent jobs, and set guardrails that make self-service safe rather than forbidden. In this answer, we will map use cases to options, look at the ownership problem of jobs that run forever, protect production, weigh build against buy, and plan a pilot.
1Starting From the Use Cases
The request bundles three different needs. Some teams want continuous transformations: filter, join and aggregate topics into new topics that other systems consume, such as a stream of suspicious logins. That is what Flink SQL does well. Others want low-latency dashboards and ad hoc slicing over recent data, such as revenue by region for the last hour, filtered whichever way the analyst likes. That fits a real-time analytics store such as Apache Pinot, Apache Druid or ClickHouse, loading topics continuously and answering arbitrary queries in milliseconds. A third group wants continuously maintained views that an application can query, such as a customer's current balance; streaming databases such as Materialize or RisingWave are built for that.
Each option is weak at the others' jobs. Flink SQL is not designed for ad hoc interactive queries; an analytics store does not produce new streams for other services; a streaming database's strength is serving views, not running large stateful pipelines at the scale Flink handles. So the first step is to collect real use cases from the requesting teams and count them by category before choosing anything.
| Use case | Best fit | Weak at |
|---|---|---|
| Continuous transformations into new topics | Flink SQL platform | ad hoc interactive queries |
| Dashboards and ad hoc slicing of recent data | Real-time analytics store fed from Kafka | producing streams for services |
| Continuously maintained views for serving | Streaming database | very large stateful pipelines |
2Jobs That Run Forever
A dashboard query runs for a second and is gone. A streaming SQL job runs until someone stops it, holds state that grows, and keeps consuming resources and producing output. When its author changes teams, the job stays, and its failures land on the platform team. A year into an unmanaged self-service platform, it is common to find many jobs whose outputs nobody reads.
So every self-service job must have an owner, a team, not a person; a budget or quota for compute and state; and a lifecycle review, for example every quarter the owner confirms the job is still needed or it is stopped after a warning. Jobs without a confirmed owner are paused, not silently kept. This turns self-service from a source of orphaned load into a service with accountable users.
3Protecting Production
Analysts reading production topics directly creates two risks: they see data they should not, and their jobs compete with operational consumers. The guardrails are simple to state. Self-service reads only curated topics that have contracts and schemas, not raw CDC or internal topics. Self-service consumers run under separate principals with Kafka quotas, so a runaway query cannot starve operational consumers. Self-service jobs never write to operational topics; their outputs go to a separate namespace. And schema registry enforcement means a job's reads and writes follow registered schemas.
- Operational topicswritten by services; no self-service access
- Curated topicscontracts, schemas, sensitivity class
- Self-service jobs and storesseparate principals, quotas, owners
- Self-service outputsown topic namespace or analytics store
- Analysts and dashboardsstated latency and correctness guarantees
5 layers, from the top down. Step through them one at a time.
4Build Versus Buy and Lock-In
Running Flink, an analytics store or a streaming database ourselves needs people who can operate stateful distributed systems. Managed offerings remove much of that work and are often the right start for a pilot. The cost is lock-in: each vendor's SQL dialect differs in functions, window syntax and semantics, and a job's state lives in the vendor's system and cannot be moved.
We reduce lock-in by keeping business definitions portable: metric definitions such as what counts as an active customer live in a shared, versioned place, and the SQL in each engine implements them. Moving engines then means rewriting queries against documented definitions rather than reverse-engineering hundreds of undocumented jobs.
5Piloting and Stating the Guarantees
I would not launch to the whole company at once. A pilot with two or three teams whose use cases fit the chosen option shows whether the value is real. During the pilot we measure value, such as decisions made faster or manual reports retired, and running cost per query or job, including platform engineering time. If the numbers hold, we expand with the guardrails already in place.
We also state plainly what the offering guarantees: typical latency, for example results within a minute; correctness, such as at-least-once delivery so counts may briefly double after a failure, or exactly-once where we provide it; and how late data is handled. Analysts who know that a metric can be revised after late events arrive build dashboards that say so, rather than discovering it in a meeting.
- Collect and categorise use casestransform, analyse or serve
- Choose option per categoryand build or buy
- Pilot with 2-3 teamswith owners, quotas, curated topics
- Value exceeds cost?Yesexpand with guardrailsNonarrow or stop
- Quarterly lifecycle reviewsstop jobs without owners
5 steps in order. Play them, or step through them one at a time.
6Follow-up questions
How would you stop a self-service job from hurting production consumers?
Give self-service its own principals with produce and fetch quotas, restrict reads to curated topics, keep its consumer groups separate, and monitor broker load by principal. If a job still causes harm, the platform can pause it, which the terms of the service should allow.
Why not just give analysts read access to raw topics and a SQL tool?
Raw topics carry personal data and internal details, change shape when owning teams refactor, and have no contract. Analysts would build on something that breaks silently, and the company would lose control of who sees what.
What would make you pick a streaming database over Flink SQL?
Use cases centred on serving: applications or dashboards that query continuously maintained views with low latency, where Flink would need an extra serving store. If most demand is producing new streams for other systems, Flink SQL fits better.
7Conclusion
In this answer, we decided what to offer from the use cases: Flink SQL for continuous transformations, a real-time analytics store for dashboards and ad hoc slicing, and a streaming database for serving maintained views. Because streaming jobs run forever, each needs an owner, a quota and lifecycle reviews. Production stays protected through curated topics, separate quotas, no writes to operational topics and schema enforcement. We weighed managed offerings against lock-in, kept business definitions portable, and planned a pilot that measures value and cost and states latency and correctness guarantees plainly.
Open with
I would start from the use cases rather than a tool, because the request mixes three needs. Continuous transformations that produce new streams fit Flink SQL. Low-latency dashboards and ad hoc slicing over recent data fit a real-time analytics store fed from Kafka, like Pinot or ClickHouse.
Then, if they want more
Serving continuously maintained views to applications fits a streaming database. One tool rarely covers all three well, so I would collect real use cases and offer what most of them need. Then the guardrails.
Streaming jobs run forever and hold state, so their cost and failures stay with the platform after the author moves on; every job needs an owning team, a budget or quota, and periodic lifecycle reviews, and jobs without owners get paused.
To protect production, self-service reads only curated topics with contracts, runs under separate principals with quotas, never writes to operational topics, and goes through schema registry enforcement.
On build versus buy, managed Flink SQL or a vendor streaming database removes operations, but ties the SQL dialect and state to the vendor, so I would keep business definitions portable in a shared, versioned place.
Finally, I would pilot with two or three teams, measure value and running cost per query, and only then expand, stating plainly which latency and correctness guarantees the offering gives.
About this answer
- Last updated
- 13 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
- Apache Kafka documentation
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 "As head of data platform engineering, how do you decide what to offer, and what...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-streams-connect/4931d34840/