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 Initial release?
A. 2008
B. 2009
C. 2010
D. 2011
View Answer
Ans : A
Explanation: Initial release: July 2008
3. 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.
4. 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.
5. 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.
6. 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).
7. 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.
8. 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.
9. 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.
10. 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.
Discussion