Skill Zuno · skillzunos.com · Fullstack
Cassandra interview questions
Prepare for Cassandra interviews on Skill Zuno. This practice book covers Cassandra interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.
Open Cassandra on Skill ZunoAlso see the Cassandra tutorial.
Apache Cassandra is a distributed wide-column NoSQL database built for high write throughput and no single point of failure. Data is partitioned across a ring of nodes and replicated with tunable consistency. Cassandra interviews cover data modelling by query, partition and clustering keys, replication, consistency levels, compaction and tombstones.
Sample Cassandra interview questions
What is the difference between a partition key and a clustering column?
The partition key decides which nodes store a row; all rows with the same partition key live together. Clustering columns sort rows inside a partition and allow range queries within it.
How do consistency levels work?
Each read and write chooses how many replicas must respond. If read replicas plus write replicas exceed the replication factor, such as QUORUM for both, reads always see the latest write.
Why model Cassandra tables around queries?
Cassandra has no joins and can only query efficiently by partition key. You design one table per query pattern and duplicate data across tables, trading storage for fast reads.
What are tombstones and why can they be a problem?
A delete writes a tombstone marker instead of removing data, which is purged by compaction after gc_grace_seconds. Many tombstones in a partition slow reads and can make queries fail.
Why are writes so fast in Cassandra?
A write is appended to the commit log and stored in an in-memory memtable, with no read before write. Memtables are flushed to immutable SSTables on disk, and compaction merges them later.
What you can practice
- Cassandra interview questions for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- Fullstack topics alongside Cassandra on skillzunos.com