Latest Apache Cassandra Multiple choice Questions and Answers pdf

21: Explain the two types of compactions in Cassandra.
Compaction refers to a maintenance process in Cassandra , in which, the SSTables are reorganized for data optimization of data structures on the disk. There are two types of compaction in Cassandra:
Minor compaction: It starts automatically when a new table is created. Here, Cassandra condenses all the equally sized tables into one.
Major compaction: It is triggered manually using nodetool. It compacts all tables of a ColumnFamily into one.

22: Explain what is Cassandra-Cqlsh?
Cassandra-Cqlsh is a query language that enables users to communicate with its database. By using Cassandra cqlsh, you can do following things:
Define a schema
Insert a data, and
Execute a query

23: What is the use of “void close()” method?
This method is used to close the current session instance.

24: What are the collection data types provided by CQL?
There are three collection data types:
List : A list is a collection of one or more ordered elements.
Map : A map is a collection of key-value pairs.
Set : A set is a collection of one or more elements.

25: Describe Replication Factor?
Replication Factor is the measure of number of data copies existing. It is important to increase the replication factor to log into the cluster.

26). What is the syntax to create keyspace in Cassandra?
Syntax for creating keyspace in Cassandra is
CREATE KEYSPACE <identifier> WITH <properties>

27). What is a keyspace in Cassandra?
In Cassandra, a keyspace is a namespace that determines data replication on nodes. A cluster consist of one keyspace per node.

28). What is cqlsh?
cqlsh is a Python-based command-line client for cassandra.

29). Does Cassandra works on Windows?
Yes, Cassandra works pretty well on windows. Right now we have linux and windows compatible versions available.

30). What do you understand by Consistency in Cassandra?
Consistency means to synchronize and how up-to-date a row of Cassandra data is on all of its replicas.

Read More Questions:
Apache Cassandra Interview Questions Part1
Apache Cassandra Interview Questions Part2
Apache Cassandra Interview Questions Part3
Apache Cassandra Interview Questions Part4
Apache Cassandra Interview Questions Part5

0 comments: