Free Cassandra Skills Questions and Answers — Questions and Answers
Question 1: Which tool is employed to view a table's statistics?
- Nodetool (Correct answer)
- GossipStage
- Compaction executor
- JConsole
Correct answer: Nodetool
Explanation: <br> In Cassandra, nodetool is a command-line utility tool used to manage and monitor the Cassandra cluster. Nodetool can be used to view the statistics of a table, as well as other important information about the cluster and its nodes.
Question 2: Which of the following data types maintains the order of the supplied elements?
- Map
- List (Correct answer)
- None of these
- Set
Correct answer: List
Explanation: <br> In the List data type, the order of the elements entered is maintained. Lists are a collection of ordered elements, where each element is identified by an index or position within the list. Elements can be added, removed, or accessed by their index, and new elements can be added to the end of the list.
Question 3: Which of the following data types is utilized to produce our own data kinds?
- None of the Above
- User-defined data types (Correct answer)
- Collection data types
- Both Answer
Correct answer: User-defined data types
Explanation: <br> As the name suggests, User-defined data types are used to create data types of our own. In Cassandra, user-defined data types are used to group multiple columns into a single data type, allowing you to define custom structures for your data.
Question 4: How can there be a Cassandra error if there are no syntax errors?
- Changes in version
- Changes in system
- Changes in cluster
- All of the above (Correct answer)
Correct answer: All of the above
Even syntactically valid CQL can fail because of version mismatches, system-level problems (resources, configuration), or cluster issues (node failures, network partitions, consistency-level failures). Since errors can arise from all of these categories, no single option is sufficient — 'All of the above' is correct.
Question 5: What is the one thing that a cluster DOES NOT need?
- JDK
- LAN
- Java (Correct answer)
- Linux
Correct answer: Java
Cassandra runs on the JVM, but it's the JDK/JVM runtime that's the real dependency — plain 'Java' as a programming language isn't something the cluster itself needs. Nodes do require a JDK, network connectivity (LAN), and a supported OS like Linux, so those are genuine requirements.
Question 6: Which of the following factors determines how data are distributed within a cluster?
- Gossip Protocol
- Partitioner (Correct answer)
- Compaction
- Comit log
Correct answer: Partitioner
Explanation: <br> The partitioner is responsible for deciding the distribution of data across the nodes in a Cassandra cluster. When data is inserted into a Cassandra cluster, the partitioner hashes the partition key to determine which node in the cluster should store the data. Different partitioners use different algorithms for hashing the partition key, but they all aim to distribute the data evenly across the nodes in the cluster. The choice of partitioner can have a significant impact on the performance and scalability of a Cassandra cluster, so it's an important consideration when setting up a new cluster.
Question 7: Which of the following does Cassandra NOT possess?
- Decentralized deployments
- ACID operations (Correct answer)
- Supports every type of data
- Simple Transactions
Correct answer: ACID operations
Explanation: <br> ACID operations is NOT a property of Cassandra. Cassandra is a NoSQL database that is designed to provide high scalability, high availability, and fault tolerance, particularly for large-scale, distributed data sets.
Which tool is employed to view a table's statistics?