Cassandra medium
In a Cassandra `cassandra.yaml` file, what is the 'Snitch' responsible for determining?
- A It monitors the cluster for unauthorized access attempts (Security Snitch).
- B It determines the topology (Rack and Datacenter) of every node, allowing Cassandra to distribute replicas safely across different physical failure zones.
- C It is a performance-tuning agent that automatically adjusts the JVM heap size.
- D It intercepts and logs every 'SELECT' query for audit purposes.
Answer: B. It determines the topology (Rack and Datacenter) of every node, allowing Cassandra to distribute replicas safely across different physical failure zones.
The Snitch is essential for High Availability. Without it, Cassandra might accidentally put all 3 replicas of your data in the same server rack. The `GossipingPropertyFileSnitch` is the production standard as it automatically propagates topology info through the cluster.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- In a Cassandra Keyspace, what does a 'Replication Factor of 3' specifically guarantee for your data redundancy?
- Unlike a Leader-Follower architecture (like MySQL or Redis), how does Cassandra maintain high availability within its node cluster?
- Cassandra Query Language (CQL) looks similar to SQL. What is a fundamental SQL feature that CQL does NOT support to ensure distributed performance?
- What is the critical architectural function of the 'Partition Key' in a Cassandra table?
- Apache Cassandra is fundamentally designed as which architectural category of NoSQL database?
- An extreme financial trading application requires 'Batch' sync for the Commit Log. What is the fundamental throughput limitation introduced by this setting?