Explain the Unified Compaction Strategy in Cassandra 5.0 and discuss its benefits and tradeoffs.

Last updated 11 July 2026

  • Unified Compaction Strategy (UCS, new in Cassandra 5.0) merges tiered and leveled compaction into one framework controlled by a scaling parameter w: negative acts like LCS (read-optimized), positive like STCS (write-optimized), zero is balanced.

  • Benefits: you shift the read/write/space tradeoff by changing a parameter instead of migrating strategies, and density-based sharding of the token range gives bounded SSTable sizes and better parallelism.

  • Tradeoffs: it is newer and harder to tune. Leveled-like settings still cost write amplification, and tiered-like settings still cost read amplification and temporary space.

  • https://goodspace.ai/interview-questions/cassandra
  • https://www.indeed.com/viewjob?jk=6312ab868af274dd
  • https://www.ministryoftesting.com/dojo/lessons/tips-for-interviewing-junior-software-testers
  • https://nareshjobs.com/full-stack-real-time-scenario-based-interview-questions-and-answers/
  • https://www.reddit.com/r/programming/comments/1u7o7s0/why_is_meta_destroying_its_engineering/
  • https://bebee.com/us/jobs/distributed-systems-software-engineer-l5-open-connect-control-plane-netflix--theirstack-685694602
  • https://towardsaws.com/top-25-devops-interview-questions-and-answers-a0f143e5883d
  • https://www.researchgate.net/scientific-contributions/Shamit-S-Prabhu-2173491990
  • https://www.scribd.com/document/426830599/Top-100-core-java-interview-questions
  • https://axonops.com/blog/apache-cassandra-5-the-features-that-really-count/
  • https://yellowgnu.com/how-to-fix-corrupted-sstables-in-apache-cassandra-a-complete-guide/
  • https://www.youtube.com/watch?v=r9WmZFCP3z8
  • https://clivern.com/apache-cassandra-for-developers-part-2/
  • https://www.scribd.com/document/667020712/Postgresql-Interview-Questions
  • https://docs.datastax.com/en/cql-oss/3.x/cql/cql_using/useIndexColl.html
  • https://mocksensei.com/blog/ibps-so-dbms-sql-complete-guide
  • https://www.quora.com/Is-it-legal-to-ask-about-gaps-in-employment
  • https://www.researchgate.net/publication/373878126_Parents'_food_choice_for_their_preschool-aged_children_A_means-end_investigation
  • https://ejournal.upsi.edu.my/index.php/juraisembah/article/download/10052/5542/53544
All Cassandra interview questions