Quick revision
The short answer
A managed Kafka service usually takes over the machines: provisioning brokers and controllers, patching and upgrades, replacing failed nodes, storage and basic monitoring, and sometimes Connect, a schema registry and stream processing. We still own everything about how Kafka is used: topic design, client configuration, security principals and ACLs, quotas, consumer lag and application monitoring, schema governance and cost control. Before comparing prices we must understand the billing model, provisioned capacity or serverless throughput, data in and out, storage, partitions, connectors and private networking, and above all the cloud network traffic, which often dominates.
What to remember
In this answer, we saw that a managed Kafka service takes over the infrastructure and the Kafka process, provisioning, patching, upgrades, node replacement, storage and basic monitoring, and sometimes Connect, schemas and stream processing. We still own topic design, client configuration, security principals and ACLs, quotas, lag and application monitoring, schema governance and cost control. Comparing costs means understanding the pricing model, data transfer, storage, partitions, connectors and private networking, and especially cross-zone, cross-region and egress traffic, then checking limits with a short proof of concept.
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 managed Kafka service usually takes over the machines: provisioning brokers and controllers, patching and upgrades, replacing failed nodes, storage and basic monitoring, and sometimes Connect, a schema registry and stream processing. We still own everything about how Kafka is used: topic design, client configuration, security principals and ACLs, quotas, consumer lag and application monitoring, schema governance and cost control. Before comparing prices we must understand the billing model, provisioned capacity or serverless throughput, data in and out, storage, partitions, connectors and private networking, and above all the cloud network traffic, which often dominates.
Why this question is asked
The decision between running Kafka ourselves and buying it as a service comes up in almost every platform team, and it is easy to get wrong in both directions: teams expect a managed service to remove all Kafka work, or they compare a vendor's broker price with the price of virtual machines and forget the network. Interviewers ask this to see whether we understand the shared responsibility model and the real cost drivers. In this answer, we will go through what the provider takes over, what stays with us, how pricing is built, why networking deserves its own section, and which limits to check before committing.
1What a Managed Service Takes Over
Running Kafka on virtual machines means we own the full stack: choosing instance types, installing and configuring brokers and KRaft controllers, rolling upgrades every few months, OS and security patching, replacing a broker when a machine dies and waiting for re-replication, growing disks, and wiring metrics and alerts. That is real, recurring engineering time, often one or two engineers for a mid-sized platform.
A managed service takes most of this layer. The provider provisions brokers and controllers, applies patches and version upgrades, often within maintenance windows we choose, replaces failed nodes, manages storage, sometimes with tiered storage built in, and exposes basic broker metrics. Many offerings also run Kafka Connect, a schema registry and a stream processing service, so we do not operate those clusters either.
2What Stays Our Responsibility
The provider runs Kafka; it does not design how we use it. Topic design stays with us: how many partitions, which key, which retention and cleanup policy. A badly keyed topic is just as hot on a managed cluster. Client configuration is ours too, the acks setting, idempotence, batching, consumer group settings and client library versions, and so is upgrading the clients in our services.
Security inside the cluster is also ours: which principals exist, which ACLs or IAM policies grant them access, and which quotas stop one team from saturating the cluster. Monitoring consumer lag and application behaviour remains ours, since the provider sees brokers, not whether our order service is falling behind. Schema governance, deciding compatibility rules and who may change a schema, and cost control, noticing that a team created 2,000 partitions, are ours as well.
- Our applicationsproducers, consumers, business logic, idempotency
- How we use Kafkatopics, keys, retention, client configs, schemas
- Access and costprincipals, ACLs or IAM, quotas, per-team cost
- Kafka servicebrokers, controllers, upgrades, patching (provider)
- Infrastructuremachines, disks, node replacement (provider)
5 layers, from the top down. Step through them one at a time.
The provider owns the bottom two layers. Everything that depends on our design stays with us.
3How Managed Kafka Is Priced
Pricing varies a lot between offerings, so we must read the model before comparing. Provisioned offerings charge for capacity: broker hours of a chosen size, or abstract capacity units that bundle throughput and partitions. Serverless offerings charge for what we use: data written and read per GB, partition hours, and requests, with limits per cluster. Many charge storage per GB-month, and we must check whether that counts the logical data once or each replica, and how tiered storage is priced.
On top come smaller lines that add up: a price per partition or per partition above an included amount, a price per connector task for managed Connect, schema registry tiers, and private networking such as private endpoints charged per hour and per GB. To compare fairly with self-managed Kafka, we model our actual workload, for example 50 MB/s in, 150 MB/s out, 30 days of retention and 3,000 partitions, against each pricing model, and add the engineering time we would save.
4Why Cloud Networking Often Dominates
Network traffic is the cost people forget, and for Kafka it is often the largest one. Cloud providers charge for data that crosses availability zones and regions, and for egress out of their network. Kafka moves a lot of data: every byte produced is written once and replicated to two more brokers, usually in other zones, and then read by every consumer group.
Take 50 MB/s produced and three consumer groups. That is roughly 4.3 TB a day written and about 13 TB a day read. If the consumers run in a different zone from the partition leaders, or in another region, or outside the provider entirely, much of those reads is billed. Some services include replication traffic in their price but bill client traffic, so where our clients run decides the bill. Features such as follower fetching with client.rack, which lets a consumer read from a replica in its own zone, can cut it sharply when the service supports them.
5Limits and Features to Check Before Committing
Finally, a managed service is a product with boundaries. We check partition limits per cluster and per broker, the maximum message size, retention options including infinite retention, which Kafka versions and APIs are supported, for example transactions, Kafka Streams and the newer consumer protocol, which broker and topic configs we may change, and how upgrades are scheduled and announced.
A short proof of concept with our real clients, security setup and a copy of a busy topic answers most of these in a week, and it is far cheaper than discovering a limit after migrating 150 services.
6Follow-up questions
Is managed Kafka always more expensive than self-managed?
Not once engineering time and risk are counted. The infrastructure line is often higher, but a self-managed cluster needs people for upgrades, incidents and capacity planning, and those people cost more than the difference for small and medium platforms. At very large scale, with a strong platform team, self-managed can be cheaper. The answer comes from modelling the workload, not from list prices.
Who is responsible if consumer lag grows on a managed cluster?
Almost always we are, unless the brokers themselves are unhealthy. Lag comes from consumers that are too slow, too few, or stuck, from poor partitioning, or from bursts of production. The provider's job is a healthy cluster; whether our consumers keep up is an application concern, and we must monitor it ourselves.
7Conclusion
In this answer, we saw that a managed Kafka service takes over the infrastructure and the Kafka process, provisioning, patching, upgrades, node replacement, storage and basic monitoring, and sometimes Connect, schemas and stream processing. We still own topic design, client configuration, security principals and ACLs, quotas, lag and application monitoring, schema governance and cost control. Comparing costs means understanding the pricing model, data transfer, storage, partitions, connectors and private networking, and especially cross-zone, cross-region and egress traffic, then checking limits with a short proof of concept.
Open with
I would describe it as a shared responsibility model. The provider takes over the infrastructure and the Kafka service itself: provisioning brokers and controllers, patching and version upgrades, replacing failed nodes, managing storage and basic broker monitoring, and in many offerings also running Connect, a schema registry and stream processing.
Then, if they want more
What stays with us is everything about how we use Kafka: topic design such as partitions, keys and retention, client configuration and library versions, security principals and ACLs or IAM policies, quotas, consumer lag and application monitoring, schema governance, and cost control.
For pricing, I would first identify the model: provisioned capacity like broker hours or capacity units, or serverless throughput. Then the dimensions: data in and out per GB, storage per GB-month and whether replicas or tiered storage count, partitions, connector tasks, and private networking.
I would stress that cloud networking often dominates, because cross-zone and cross-region traffic and egress to clients outside the provider are billed, and Kafka reads are multiplied by every consumer group, so where clients run matters.
Before committing, I would check limits like partitions per cluster, message size, retention options, supported versions and APIs, which configs we can change, and how upgrades are scheduled, ideally with a short proof of concept.
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 "Explain what a managed service typically takes over, what stays your responsibility, and...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-operations/0bd62285ae/