LearnThatStack Ace your next interview
Database Technologies

Cassandra.

Start free Change topic Change
Practice · Questions

All questions

Showing of 41
Beginner 8
01

What is the ring architecture in Cassandra?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Cassandra places its nodes on a logical ring of tokens, and each node owns one or more token ranges. Cassandra hashes a row's partition key into a token and stores the row on the node that owns that range. This is consistent hashing.

There is no master node, so there is no single point of failure. Nodes share cluster state through the gossip protocol, so each node knows about every other node and can handle any request. Each row is replicated to several nodes for fault tolerance.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

What are tombstones in Cassandra?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

A tombstone is a marker Cassandra writes when you delete data. Deletes can't remove data from every replica at once, so Cassandra records the delete as a new write with a timestamp.

A tombstone is kept for the table's gc_grace_seconds, which defaults to 10 days. That grace period lets a replica that missed the delete receive it through repair, so the deleted data can't come back as a zombie. After the grace period, compaction removes the tombstone and the data it covers.

Too many tombstones slow down reads, because a read has to scan past them.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

Explain replication in Cassandra.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Cassandra stores several copies of each row on different nodes, so the data survives node failures. The replication factor (RF) sets how many copies exist. With an RF of 3, each row lives on 3 distinct nodes.

Each keyspace has a replication strategy that picks the nodes for the copies. SimpleStrategy is meant for test clusters, and NetworkTopologyStrategy is for production, with one or more datacenters.

Every replica can accept writes, and no copy is the primary. A client can send a request to any node, which acts as the coordinator and forwards it to the replicas that store the data.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

What is the difference between a partition key and clustering key?

Visual

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain
Visual

The partition key picks a row's partition and the nodes that store it, and the clustering key sorts the rows inside that partition. Cassandra hashes the partition key to pick the replica nodes, and every row with the same partition key lives in one partition.

CREATE TABLE events (
    user_id UUID,
    event_time TIMESTAMP,
    event_type TEXT,
    data TEXT,
    PRIMARY KEY (user_id, event_time, event_type)
);

Here user_id is the partition key, and event_time and event_type are clustering keys. All events for one user are stored together, sorted by time and then by type.

An efficient query gives the full partition key, because by default CQL refuses a query that would scan every partition. It can then restrict the clustering keys in the order they are declared, such as every event after a given time. You fix the clustering order when you create the table and can't change it later.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

Explain different data types available in Cassandra.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The Cassandra Query Language (CQL) has native types for single values and collections for groups of values. You can also define your own types and use tuples.

The native types:

  • Text: TEXT, VARCHAR and ASCII.
  • Small integers: TINYINT and SMALLINT.
  • Large integers: INT, BIGINT and VARINT, which has no size limit.
  • Other numbers: FLOAT, DOUBLE and DECIMAL, a variable-precision decimal.
  • Time: TIMESTAMP, DATE and TIME.
  • DURATION for a length of time.
  • Identifiers: UUID and TIMEUUID.
  • BOOLEAN for true or false, and BLOB for binary data.
  • INET for an IP address.
  • COUNTER, which you can only increment or decrement.
  • VECTOR, an array of floats for vector search, added in Cassandra 5.0.

The collections are SET<type> for sorted unique values, LIST<type> for values ordered by position that allow duplicates, and MAP<key_type, value_type> for key-value pairs.

User-defined types (UDTs) group named fields, and tuples group values without names.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

Explain the role of the coordinator node.

Part of Pro
07

What are the main differences between Cassandra and traditional RDBMS?

Part of Pro
08

What is TTL in Cassandra?

Part of Pro
Intermediate 26
09

Explain the CAP theorem and how Cassandra fits into it.

Part of Pro
10

Explain partitioning in Cassandra and the role of partition keys.

Part of Pro
11

What are the different consistency levels in Cassandra?

Part of Pro
12

Describe the write path in Cassandra.

Part of Pro
13

Explain the read path in Cassandra.

Part of Pro
14

What is compaction in Cassandra and why is it important?

Part of Pro
15

What are the limitations of Cassandra's data model?

Part of Pro
16

Explain the concept of eventually consistent reads.

Part of Pro
17

What is hinted handoff in Cassandra?

Part of Pro Visual
18

What is the gossip protocol in Cassandra?

Part of Pro
19

How do you model a one-to-many relationship in Cassandra?

Part of Pro
20

What is read repair and when does it occur?

Part of Pro Visual
21

What is the difference between SimpleStrategy and NetworkTopologyStrategy?

Part of Pro Visual
22

Explain counter columns in Cassandra.

Part of Pro
23

What are User Defined Types (UDTs) in Cassandra?

Part of Pro
24

How do you implement pagination in Cassandra?

Part of Pro
25

What is the purpose of bloom filters in Cassandra?

Part of Pro Visual
26

How do you backup and restore data in Cassandra?

Part of Pro
27

How does Cassandra handle schema changes?

Part of Pro
28

How do you monitor Cassandra cluster health?

Part of Pro
29

What is nodetool repair, and why do you need to run it regularly?

Part of Pro
30

When would you use a secondary index, SAI or a materialized view in Cassandra?

Part of Pro
31

What does ALLOW FILTERING do, and why is it dangerous?

Part of Pro
32

Explain the role of a snitch in Cassandra.

Part of Pro
33

What happens when you add or remove a node from a Cassandra cluster?

Part of Pro
34

What are the key factors to consider when designing a Cassandra data model?

Part of Pro
Expert 7
35

How do you handle large partitions in Cassandra?

Part of Pro
36

How do you handle time-series data in Cassandra?

Part of Pro
37

How do you troubleshoot performance issues in Cassandra?

Part of Pro
38

Explain the concept of vnodes (virtual nodes) in Cassandra.

Part of Pro
39

What is a lightweight transaction (LWT) in Cassandra?

Part of Pro
40

How do you optimize Cassandra for write-heavy workloads?

Part of Pro
41

What is the difference between batches and transactions in Cassandra?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for Cassandra? Send them this set.
Pro · $10/mo

36 of 41 Cassandra answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git