LearnThatStack Ace your next interview
Database Technologies
Cassandra.
35 Qs 5 free
Change topic Change
Drill · questions

All questions

of 35
Beginner 7
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 uses a ring architecture where:

  • All nodes are arranged in a logical ring
  • Each node is responsible for a range of data (token range)
  • Data is distributed using consistent hashing
  • No single point of failure as there's no master node
  • Nodes communicate using gossip protocol
  • Data is replicated to multiple nodes for fault tolerance

Each node knows about every other node in the cluster and can handle any request.

Rewriting in plainer words…

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

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
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

Tombstones are markers that indicate deleted data. Since Cassandra is distributed:

  • Deletes can't remove data immediately from all replicas
  • Tombstones ensure deleted data doesn't reappear during read repair
  • They have a configurable TTL (gc_grace_seconds, default 10 days)
  • Too many tombstones can impact read performance
  • Compaction eventually removes tombstones and associated data
Rewriting in plainer words…

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

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
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

Replication provides fault tolerance:

  • Replication Factor (RF): Number of copies of each piece of data
  • Replication Strategy: Determines which nodes get replicas
    • SimpleStrategy: For single datacenter
    • NetworkTopologyStrategy: For multiple datacenters
  • Coordinator Node: Any node can coordinate a request
  • Replica Nodes: Nodes that store copies of the data

Example: RF=3 means each piece of data is stored on 3 different nodes.

Rewriting in plainer words…

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

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

04

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

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
  • Partition Key: Determines which node stores the data (distribution)
  • Clustering Key: Determines the sort order within a partition (organization)
CREATE TABLE events (
    user_id UUID,
    event_time TIMESTAMP,
    event_type TEXT,
    data TEXT,
    PRIMARY KEY (user_id, event_time, event_type)
);
  • user_id is the partition key
  • event_time and event_type are clustering keys
  • All events for a user are stored together, sorted by time and type
Rewriting in plainer words…

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

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
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

Cassandra supports various data types:

Primitive Types:

  • TEXT, VARCHAR: Strings
  • INT, BIGINT, SMALLINT: Integers
  • FLOAT, DOUBLE, DECIMAL: Floating point
  • BOOLEAN: True/false
  • UUID, TIMEUUID: Unique identifiers
  • TIMESTAMP: Date and time
  • BLOB: Binary data

Collection Types:

  • SET<type>: Unordered unique values
  • LIST<type>: Ordered values (duplicates allowed)
  • MAP<key_type, value_type>: Key-value pairs

Advanced Types:

  • User-defined types (UDT)
  • Tuples
  • Counters
Rewriting in plainer words…

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

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
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
Intermediate 20
08

Explain the CAP theorem and how Cassandra fits into it.

Part of Pro
09

Explain partitioning in Cassandra and the role of partition keys.

Part of Pro
10

What are the different consistency levels in Cassandra?

Part of Pro
11

Describe the write path in Cassandra.

Part of Pro
12

Explain the read path in Cassandra.

Part of Pro
13

What is compaction in Cassandra and why is it important?

Part of Pro
14

What are the limitations of Cassandra's data model?

Part of Pro
15

Explain the concept of eventually consistent reads.

Part of Pro
16

What is hinted handoff in Cassandra?

Part of Pro
17

What is the gossip protocol in Cassandra?

Part of Pro
18

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

Part of Pro
19

What is read repair and when does it occur?

Part of Pro
20

What is the difference between SimpleStrategy and NetworkTopologyStrategy?

Part of Pro
21

Explain counter columns in Cassandra.

Part of Pro
22

What are User Defined Types (UDTs) in Cassandra?

Part of Pro
23

How do you implement pagination in Cassandra?

Part of Pro
24

What is the purpose of bloom filters in Cassandra?

Part of Pro
25

How do you backup and restore data in Cassandra?

Part of Pro
26

How does Cassandra handle schema changes?

Part of Pro
27

How do you monitor Cassandra cluster health?

Part of Pro
Expert 8
28

How do you handle large partitions in Cassandra?

Part of Pro
29

How do you handle time-series data in Cassandra?

Part of Pro
30

How do you troubleshoot performance issues in Cassandra?

Part of Pro
31

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

Part of Pro
32

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

Part of Pro
33

What is lightweight transaction (LWT) in Cassandra?

Part of Pro
34

How do you optimize Cassandra for write-heavy workloads?

Part of Pro
35

What is the difference between batches and transactions in Cassandra?

Part of Pro

No matches

Try a different filter or search term.

Pro · $10/mo

30 of 35 Cassandra answers are gated.

Full answers, code samples, AI explanations - simpler, deeper, or as an interactive diagram. Cancel anytime.

  • Full answers + code
  • AI explain - simpler, deeper, or visualized
  • 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

JAM

JavaScript, APIs, and Markup

Serverless on AWS

Serverless Architecture on AWS

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Flutter Mobile

Flutter Cross-Platform Mobile Development

Cross-cutting topics 44 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

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

Web3 / Ethereum

Solidity, Ethereum, Hardhat, Foundry

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git
Big-O & Complexity Analysis Arrays, Strings & Hash Tables Linked Lists, Stacks & Queues Trees, BSTs & Heaps Graphs Sorting, Searching & Recursion Operating Systems Concurrency & Multithreading Networking for Developers Git & Version Control API Design 45 Distributed Systems Fundamentals 34

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.


Cross-cutting topics 45 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.