What is a consistency level in Cassandra? Give an example.

Last updated 11 July 2026

A consistency level is the per-operation setting that dictates how many replicas must acknowledge a read or write before Cassandra considers it successful. It is the knob behind Cassandra's tunable consistency, chosen individually on each query.

  • Set per request: The client or driver chooses it; the same table can be queried at different levels by different operations.

  • Controls the latency vs. consistency trade-off: Fewer replicas required means faster and more available; more replicas means stronger consistency.

  • Example: Writing at QUORUM waits for a majority of replicas to ack before returning success.

[lang:sql] CONSISTENCY QUORUM; INSERT INTO users (id, name) VALUES (1, 'Ada'); -- waits for a majority of replicas to acknowledge

  • https://www.adaface.com/blog/cassandra-interview-questions/
  • https://medium.com/system-design-interviews-simplified/system-design-mock-interview-nosql-databases-df99bc064205
  • https://radicals.in/apache-cassandra-training-in-bangalore/
  • https://dev.to/arslan_ah/system-design-interview-questions-by-level-junior-mid-level-senior-and-staff-2m6h
  • https://medium.com/geekculture/system-design-solutions-when-to-use-cassandra-and-when-not-to-496ba51ef07a
  • https://www.careers360.com/courses-certifications/articles/apache-cassandra-interview-questions
  • https://blog.huntingcube.ai/top-50-software-engineer-interview-questions-and-answers/
  • https://www.alooba.com/skills/tools/database-and-storage-systems/nosql-databases/cassandra/
  • https://github.com/Devinterview-io/cap-theorem-interview-questions
  • https://thenewstack.io/how-to-conduct-an-interview-for-a-senior-developer-role/
  • https://resumeworded.com/interview-questions/software-engineer
  • https://www.terminal.io/blog/15-general-software-engineer-interview-questions-for-hiring-software-engineers
  • https://agilemania.com/software-developer-interview-questions
  • https://4dayweek.io/interview-questions/software-engineer
All Cassandra interview questions