Apache Cassandra Interview Questions
Distributed wide-column NoSQL database: data modeling & partition/clustering keys, ring architecture & consistent hashing, replication factor & strategies, tunable consistency, the write path (commit log, memtable, SSTables), compaction & tombstones, read repair, hinted handoffs, CQL, gossip, multi-datacenter deployments and anti-patterns.
61 questions
Popular Searches
1. What is Apache Cassandra and what problems does it solve?
easyFundamentals 6 mins2. What is the difference between Cassandra and a relational database?
mediumComparisons 7 mins3. What is the difference between Cassandra and MongoDB?
mediumComparisons 7 mins4. What is a wide-column store and how does Cassandra's data model work?
mediumData Model 7 mins5. What is a partition key and how does it determine data distribution?
mediumPartitioning 7 mins6. What is the difference between a partition key and a clustering key?
mediumData Model 7 mins7. How does Cassandra's ring architecture and consistent hashing work?
mediumArchitecture 7 mins8. What are replication and the replication factor in Cassandra?
easyReplication 6 mins9. What are replication strategies (SimpleStrategy vs NetworkTopologyStrategy)?
mediumReplication 7 mins10. How does tunable consistency work in Cassandra (consistency levels)?
mediumConsistency 7 mins11. What does eventual consistency mean in Cassandra?
easyConsistency 7 mins12. What is the difference between QUORUM and ONE consistency levels?
mediumConsistency 7 mins13. How does Cassandra handle writes with the commit log and memtable?
mediumWrite Path 7 mins14. What are SSTables and how does the write path persist data?
mediumStorage Engine 7 mins15. What is compaction in Cassandra and why is it important?
mediumStorage Engine 8 mins16. What is a tombstone in Cassandra and why can tombstones cause problems?
mediumStorage & Deletes 7 mins17. What is read repair and how does anti-entropy work in Cassandra?
hardConsistency & Repair 8 mins18. What are hinted handoffs in Cassandra?
mediumAvailability & Writes 7 mins19. What is CQL and how does it differ from SQL?
easyQuery Language 6 mins20. How do you design data models in Cassandra (query-driven design)?
mediumData Modeling 7 mins21. Why is denormalization encouraged in Cassandra?
mediumData Modeling 7 mins22. What are secondary indexes in Cassandra and when should you avoid them?
mediumData Modeling 7 mins23. What are materialized views in Cassandra?
mediumData Modeling 7 mins24. What is a gossip protocol and how do Cassandra nodes communicate?
mediumArchitecture 7 mins25. How does Cassandra achieve high availability and fault tolerance?
mediumArchitecture 6 mins26. What is a coordinator node in Cassandra?
easyArchitecture 5 mins27. How do you handle multi-datacenter deployments in Cassandra?
hardOperations 7 mins28. What are common Cassandra anti-patterns to avoid?
mediumData Modeling 7 mins29. When should you choose Cassandra over other databases?
mediumArchitecture 7 mins30. What are Cassandra performance tuning and best practices?
hardOperations 8 mins31. A read query fails with TombstoneOverwhelmingException — how do you diagnose and fix it?
hardTroubleshooting 9 mins32. How do you choose between STCS, LCS and TWCS for a Cassandra table?
hardStorage Engine 9 mins33. How do you detect and fix large or hot partitions in Cassandra?
hardData Modelling 9 mins34. What is the difference between incremental and full repair, and how do you run repair safely in production?
hardOperations 9 mins35. What happens to reads and writes at each consistency level when replicas are down?
hardConsistency 9 mins36. How do lightweight transactions work in Cassandra and what do they cost?
hardConsistency 9 mins37. Nodes show long GC pauses and dropped mutations — how do you investigate?
hardTroubleshooting 9 mins38. When is a CQL BATCH the right tool, and when does it hurt the cluster?
mediumData Modelling 8 mins39. How do you add, replace and decommission Cassandra nodes without data loss?
hardOperations 9 mins40. How do you add a new datacentre to a live Cassandra cluster without downtime?
hardOperations 9 mins41. How do you configure a Cassandra driver's load-balancing, retry and speculative-execution policies for production?
hardClient & Drivers 9 mins42. Read latency has degraded at the high percentiles but the cluster looks healthy — how do you triage it?
hardTroubleshooting 9 mins43. How do you back up and restore a Cassandra keyspace, and what makes a restore actually work?
hardOperations 9 mins44. How do you secure a Cassandra cluster with authentication, authorisation and encryption?
hardSecurity 9 mins45. How do you upgrade a Cassandra cluster to a new major version without downtime?
hardOperations 9 mins46. How does driver paging work, and how do you scan an entire Cassandra table safely?
hardQuery Patterns 9 mins47. How do you apply schema changes safely on a live Cassandra cluster, and what causes schema disagreement?
hardOperations 9 mins48. How does TTL work in Cassandra at cell level, and what surprises does it cause in production?
mediumData Modelling 8 mins49. How do counter columns work in Cassandra, and why are counter updates not idempotent?
hardData Modelling 9 mins50. Which Cassandra metrics do you monitor and alert on in production, and why those?
mediumOperations 9 mins51. How do you test an application that uses Cassandra, including its failure behaviour?
mediumTesting 9 mins52. How do racks and snitches affect replica placement, and what breaks when racks are configured unevenly?
hardArchitecture 9 mins53. How do you size partitions for a time-series table in Cassandra so they never grow unbounded?
hardData Modelling 9 mins54. Why do deletes make Cassandra reads slower, and how do you design around it?
hardStorage Engine 9 mins55. How do compaction strategies differ in write amplification and disk headroom, and how does that drive your choice?
hardStorage Engine 10 mins56. How do you work out consistency levels across two datacentres so reads see writes without cross-region latency?
hardConsistency 9 mins57. How do you schedule repair in Cassandra, and what happens if a cycle does not finish in time?
hardOperations 10 mins58. Given a new query pattern, how do you choose between a secondary index, a materialised view and a second table?
hardData Modelling 10 mins59. How does clustering key ordering shape which range queries are efficient in Cassandra?
mediumData Modelling 8 mins60. What happens to lightweight transactions under contention, and what would you use instead?
hardConsistency 10 mins61. Walk me through tracing a single slow Cassandra query end to end to find where the time goes
mediumTroubleshooting 9 mins