Question-: There are various types of partitioner provided for the Cassandra storage engine. What exactly this partitioner does? A. It takes the partition key and then generate the partition token for that key. B. It takes the clustering column values and then generate the partition token for that key. C. It helps in updating the partition Key index regularly. D. It helps in removing tombstone record from the SSTable
Answer: A Exp: Partitioner is an algorithm or mechanism by which a consistent hash token would be generated for each partition key. It affects on which node data should be stored.
Admin and Dev both
Question-: Which of the following is/are correct? A. Partition Key = Primary Key B. Primary Key = Partition Key + Clustering Column C. Clustering Column = Partition Key + Primary Key D. Partition Key = Clustering Column + Primary Key
Answer: A,B
Explanation: Primary key is must in Cassandra data model. And Primary key usually made of two things 1. Partition key: This decide the physical location of the data in cluster. 2. Clustering Column: This decide by which the columns are sorted in a partition. It is possible that you don’t have primary key without defining clustering columns.
Admin and Dev both
Question-: Either of the clustering or partition key columns are required? A. True B. False