Cassandra MCQ Questions And Answers
Cassandra MCQs : This section focuses on "Basics" of Cassandra. These Multiple Choice Questions (MCQ) should be practiced to improve the Cassandra skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Which of the following is true about Apache Cassandra?
A. Apache Cassandra is a free and open-source
B. Apache Cassandra is a distributed
C. Apache Cassandra has wide column store
D. All of the above
View Answer
Ans : D
Explanation: Apache Cassandra is a free and open-source, distributed, wide column store.
2. Cassendra is a?
A. Centralised database
B. End-user database
C. NoSQL database
D. Relational database
View Answer
Ans : C
Explanation: NoSQL database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.
3. Cassendra Initial release?
A. 2008
B. 2009
C. 2010
D. 2011
View Answer
Ans : A
Explanation: Initial release: July 2008
4. Programming language used in cassendra?
A. C
B. Java
C. C++
D. .Net
View Answer
Ans : B
Explanation: Programming language: Java
5. By default, Cassandra uses __________ for cluster communication.
A. 3000
B. 5000
C. 7000
D. 9000
View Answer
Ans : C
Explanation: By default, Cassandra uses 7000 for cluster communication (7001 if SSL is enabled), 9042 for native protocol clients, and 7199 for JMX.
6. Which of the following are Features of Cassandra?
A. Elastic scalability
B. Flexible data storage
C. Easy data distribution
D. All of the above
View Answer
Ans : D
Explanation: All of the above are the Features of Cassandra.
7. Cassandra was developed at?
A. IBM
B. Facebook
C. Google
D. Oracle
View Answer
Ans : B
Explanation: Cassandra was developed at Facebook for inbox search.It was open-sourced by Facebook in July 2008.
8. Cassandra uses the ________ in the background to allow the nodes to communicate with each other and detect any faulty nodes in the cluster.
A. Gossip Protocol
B. Commit Protocol
C. Mem Protocol
D. Talk Protocol
View Answer
Ans : A
Explanation: Cassandra uses the Gossip Protocol in the background to allow the nodes to communicate with each other and detect any faulty nodes in the cluster.
9. Which of them is a place where data is stored?
A. Data center
B. SSTable
C. Bloom filter
D. Node
View Answer
Ans : D
Explanation: Node : It is the place where data is stored.
10. Which of them is a memory-resident data structure?
A. Data center
B. SSTable
C. Mem-table
D. Bloom filter
View Answer
Ans : C
Explanation: Mem-table : A mem-table is a memory-resident data structure. After commit log, the data will be written to the mem-table. Sometimes, for a single-column family, there will be multiple mem-tables.
11. CQL stands for?
A. Cassandra Query Language
B. Cluster Query Language
C. Commit Query Language
D. Component Query Language
View Answer
Ans : A
Explanation: Users can access Cassandra through its nodes using Cassandra Query Language (CQL).
12. ____________ is the outermost container for data in Cassandra.
A. replication
B. Keyspace
C. network
D. topology
View Answer
Ans : B
Explanation: Keyspace is the outermost container for data in Cassandra.
13. A __________ is a special column, therefore, it is also a key-value pair, but it stores a map of sub-columns.
A. sub column
B. key column
C. super column
D. column
View Answer
Ans : C
Explanation: A super column is a special column, therefore, it is also a key-value pair. But a super column stores a map of sub-columns.
14. Which of the following is a unit of replication in Cassandra?
A. Row
B. Column
C. Both A and B
D. None of the above
View Answer
Ans : A
Explanation: Row is a unit of replication in Cassandra and Column is a unit of storage in Cassandra.
15. Which method used to close the cluster instance?
A. close()
B. void close()
C. data close()
D. cassendra close()
View Answer
Ans : B
Explanation: void close() : It is used to close the cluster instance.
16. Cassandra deals with structured data.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : B
Explanation: False, Cassandra deals with unstructured data.
17. Cassandra has peer-to-peer distributed system across its nodes.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: Cassandra has peer-to-peer distributed system across its nodes, and data is distributed among all the nodes in a cluster.
18. Which of the following is the command to run the queries in CQLSH.
A. execute query()
B. run()
C. execute()
D. run query()
View Answer
Ans : C
Explanation: execute() is the command to run the queries in CQLSH
19. Which method builds the cluster with the given contact points?
A. ResultSet execute()
B. Session connect()
C. Cluster build()
D. Cluster.Builder addContactPoint()
View Answer
Ans : C
Explanation: Cluster build() : This method builds the cluster with the given contact points.
20. CRUD stands for ____.
A. Create Read Update Delete
B. Change Return Upload Download
C. Both A and B
D. Create Read Update Drop
View Answer
Ans : D
Explanation: CRUD stands for Create Read Update Drop.
Discussion