Quick revision
The short answer
I would evaluate five things: whether the managed service fits our workload, meaning access patterns, consistency levels, multi-region needs and data growth; the true cost of running our cluster today, repairs, upgrades and on-call, against managed pricing at our real throughput in read and write capacity units; compatibility, because CQL-compatible services differ in lightweight transactions, secondary indexes, TTL and other features, which we must test; a migration path with dual writes or change data capture, backfill, verification and cutover per table; and lock-in, exit cost and data residency.
What to remember
In this answer, we saw how to evaluate moving a large Cassandra cluster to a managed service. We start from the workload's access patterns, consistency, multi-region needs and growth, compare the full cost of running the cluster with managed pricing at our measured throughput, test compatibility feature by feature with our own queries, plan a table-by-table migration with dual writes or CDC, backfill, verification and cutover, and weigh lock-in, exit cost and data residency, ideally finishing with a pilot on one table.
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 evaluate five things: whether the managed service fits our workload, meaning access patterns, consistency levels, multi-region needs and data growth; the true cost of running our cluster today, repairs, upgrades and on-call, against managed pricing at our real throughput in read and write capacity units; compatibility, because CQL-compatible services differ in lightweight transactions, secondary indexes, TTL and other features, which we must test; a migration path with dual writes or change data capture, backfill, verification and cutover per table; and lock-in, exit cost and data residency.
Why this question is asked
Running a large Cassandra cluster is real work. Repairs must run on schedule, upgrades take weeks of careful rolling restarts, and someone is on call when a node misbehaves at night. Managed services promise to take all of that away, and the proposal is reasonable. But the decision affects years of cost and the behaviour of a core product, and managed services that speak CQL are not identical to Cassandra. Interviewers ask this design question to see whether we can run a structured evaluation instead of choosing by price list or by enthusiasm. In this answer, we will go through workload fit, cost, compatibility, the migration path and lock-in, and then put them together into a decision.
1Start With the Workload, Not the Product
The options include Cassandra-compatible managed services such as Amazon Keyspaces, Azure Cosmos DB for Apache Cassandra or DataStax Astra, managed Cassandra-like systems such as ScyllaDB Cloud, and key-value services such as DynamoDB that would require rewriting the data access layer. Before comparing them we write down what the timeline workload actually needs.
That means the access patterns, for example 'read the 50 newest timeline entries for a user' and 'append an entry for each follower'; the read and write rates at peak and on average, say 400,000 writes and 150,000 reads per second at peak; the consistency levels the code uses, such as LOCAL_QUORUM for writes and LOCAL_ONE for reads; whether we need active writes in several regions or one primary region with read replicas; the data size today, perhaps 80 TB before replication, and its growth per year; and latency targets such as p99 under 20 milliseconds. Each candidate is judged against this list.
2Comparing Real Costs at Our Throughput
The current cost is more than the servers. We add instance and storage costs for all replicas, cross-zone and cross-region network transfer, backup storage, and the people: the hours spent on repairs, upgrades, capacity planning and incidents, often one or two engineers' worth of time for a large cluster. That total is what a managed service has to beat.
Managed pricing is usually per request and per gigabyte stored. Many services bill reads and writes in capacity units, where one unit covers a request up to a certain item size, either provisioned in advance or charged on demand per request. Because the price scales with throughput, a write-heavy timeline at hundreds of thousands of writes per second can cost far more than the servers it replaces, while a spiky, low-volume workload can cost much less. So we take one week of real traffic, with item sizes and the read-to-write ratio, and price it on each service, including storage, backups, multi-region replication and network.
| Item | Self-run Cassandra | Managed service |
|---|---|---|
| Compute and storage | Instances for 3 replicas per region | Per GB stored |
| Reads and writes | Included in instances | Capacity units at real rates |
| Multi-region | Our instances, network | Replication charge, network |
| Backups | Our storage and tooling | Often per GB, sometimes included |
| People | Repairs, upgrades, on-call | Integration and vendor management |
3Testing Compatibility, Feature by Feature
CQL compatibility layers implement the protocol and most of the language, but behaviour differs in ways that matter for a production system. Common areas of difference are lightweight transactions (the IF NOT EXISTS and IF conditions that use Paxos), secondary indexes, materialized views, logged batches, TTL behaviour and how expired data is removed, the supported consistency levels, limits on partition and row size, and how paging and timeouts behave. The exact support changes over time, so we do not rely on the documentation alone: check your version, and test.
Notice that the tests use our own statements, extracted from the driver logs or the code. Alongside them we run a load test that replays real traffic shape at a fraction of peak and compares p50 and p99 latencies, throttling behaviour when we exceed capacity, and error codes, because the Java driver's retry policies were written for Cassandra's errors.
4Planning the Migration Path
A timeline cluster cannot stop for a migration, so we move one table at a time. For each table we start dual writes from the application, or capture changes from Cassandra with change data capture and replay them into the target, so new data arrives in both places. Then a backfill copies historical data, for example with the Spark Cassandra connector or a bulk loader, while dual writes keep the target current. Verification compares row counts and checksums for sampled partitions, and a shadow-read mode sends a share of production reads to both stores and compares results. Only then do we switch reads for that table, keep dual writes for a rollback period, and finally stop writing to the old cluster.
- Dual write or CDC to the targetnew data in both stores
- Backfill historybulk copy while writes continue
- Verify counts and shadow readscompare sampled partitions
- Results match within tolerance?YesSwitch reads, keep rollbackNoFix and re-verify
- Stop writes to the old clusterafter the rollback window
5 steps in order. Play them, or step through them one at a time.
5Lock-in, Exit Cost and Data Residency
A proprietary managed service is easy to enter and harder to leave. We estimate the exit cost now: can we export all data in a standard format, at what speed and price, and how much of our code depends on service-specific features or APIs? A CQL-compatible service keeps the code more portable than a rewrite to a key-value API. Contract terms matter too: price changes, committed spend and support levels.
Data residency can rule options out entirely. If user timelines for European users must stay in the EU, the service must offer regions there and guarantee where backups and replicas live. Security reviews of encryption, key management and access logging belong here as well.
Putting it together, the decision is often a pilot rather than a yes or no: migrate one less critical table, run it for a month, measure cost, latency and operational effort, and decide on the main timeline tables with real numbers.
6Follow-up questions
Why might a managed service be more expensive even though it removes operations work?
Because managed pricing grows with throughput and storage, while a self-run cluster's cost grows with the number of servers, which can be packed efficiently for a steady, heavy load. A write-heavy timeline at hundreds of thousands of writes per second can cost several times more in capacity units than in instances. Provisioned capacity and committed-use discounts narrow the gap, so we price our actual traffic.
What would you do if a key feature, such as lightweight transactions, behaves differently?
First find out how much we depend on it. If only one flow uses it, we may redesign that flow, for example with idempotent writes keyed by a unique id. If it is central, that candidate is out, or we keep that table on Cassandra and move the rest.
Is staying on self-run Cassandra a valid outcome?
Yes. If the evaluation shows a managed service costs much more at our scale and the operational pain is mostly repairs and upgrades, investing in automation, such as a repair scheduler and a Kubernetes operator, or a support contract, may solve the problem for less. The evaluation exists to choose, not to confirm the proposal.
7Conclusion
In this answer, we saw how to evaluate moving a large Cassandra cluster to a managed service. We start from the workload's access patterns, consistency, multi-region needs and growth, compare the full cost of running the cluster with managed pricing at our measured throughput, test compatibility feature by feature with our own queries, plan a table-by-table migration with dual writes or CDC, backfill, verification and cutover, and weigh lock-in, exit cost and data residency, ideally finishing with a pilot on one table.
Open with
I would evaluate the proposal against our workload first: the access patterns of the timeline tables, peak read and write rates, the consistency levels we use, whether we need multi-region writes, the data size and its growth, and our latency targets.
Then, if they want more
Then cost: the full cost of the current cluster, including replicas, network, backups and the engineering time for repairs, upgrades and on-call, compared with the managed service priced on a week of our real traffic in read and write capacity units, storage and replication. Managed pricing scales with throughput, so a write-heavy workload can come out more expensive.
Third, compatibility: CQL-compatible services differ in lightweight transactions, secondary indexes, materialized views, batches, TTL behaviour and consistency levels, so I would run our own queries as a test suite and a load test against each candidate.
Fourth, the migration path per table: dual writes or change data capture, a backfill, verification with counts and shadow reads, then cutover with a rollback window. Finally lock-in and exit cost, contract terms and data residency. I would usually recommend a pilot with one less critical table before deciding on the main ones.
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 runs a large Cassandra cluster for user timelines, and the team proposes...": https://scrivio-interview-library.netlify.app/databases/nosql-fundamentals/81e85feb68/