Premium

Datastax Cassandra Administrator Certification Questions and Answer (Pratice Questions and Dumps)



Question-: In Cassandra cluster you should initiate the repair command for?
A. Adding or removing new nodes to the cluster.
B. if node goes out of the cluster then using repair command you can bring it back in the cluster.
C. using the repair command you can synchronize all the replicas in the Cassandra cluster.
D. using repair command client can reconnect with the Cassandra cluster if connection is broken.

Answer: C
Exp: There is a command “nodetool repair� in the Cassandra cluster. This has nothing to do with node living or joining the cluster. It is more of a synchronizing all the replicas distributed across the nodes in the cluster. All replica should have same data. And you can force that using the nodetool repair command.



Question-: You have set up a Cassandra cluster with nodes, three nodes in each datacenter. It was found that because of network disconnect for almost minutes one of the data center got disconnected. And you are worried that there were lot of write happening on the database during that time. What would you do in this case when network connectivity re-established?

A. You would execute it nodetool synchronize command.
B. you would execute nodetool repair command.
C. you would execute nodetool rejoin command
D. you would execute nodetool reconnect command

Answer: B

Explanation: Whenever in Cassandra cluster if you see there were drops in the writing of the data in one of the node in cluster, which is having replication factor more than 1. You should run nodetool repair command. So that all the replicas can be synchronized.



Question-: In Cassandra cluster to repair dropped writes, which of the following data structure is used to compare the data between two nodes?
A. B- tree
B. Merkel tree
C. Hashtable
D. Log data structure

Answer: B

Explanation: You require repair in the Cassandra cluster when replicas across the nodes are not in sync. There could be multiple reason for this, like one of the nodes is offline for some time and got reconnected to the cluster. Similarly, there are some drops in the write of the data then also you need to initiate the repair. There is a command to initiate the repair using the nodetool which is “nodetool repair� command. When repair command is issued nodes create Markel trees from partition to represent how current data values are. Then this Merkel tree would be Exchange with another node from which data synchronization would be happening. Nodes will compare the Merkel trees to identify any specific value that needs to be synchronized between these two nodes. Once it is identified both the nodes exchange the data values and update their data.

Related Questions


Question-: While adding a new node to the cluster. New node must know the IP addresses of the seed nodes?
A. True
B. False


Question-: Which of the following is recommended way to removing a node from the Cassandra cluster?
A. nodetool decommission
B. nodetool removenode
C. nodetool assassinate
D. nodetool cleanup


Question-: When you use the decommission command to remove a node from the Cassandra cluster. It would shut down the node immediately?
A. True
B. False


Question-: You are having a Cassandra cluster with the “Single token architecture� and you have found that one of the nodes in the cluster is having issue and you need to remove that node from the cluster. What you would be doing?
A. First manually adjust the tokens evenly, so that data can be distributed across the cluster on remaining nodes.
B. Use the “nodetool assassinate� command
C. Use the “nodetool removenode� command
D. Use the “nodetool decommission� command
E. Use the “nodetool rearrangetkn� command


Question-: Please map the following
A. “nodetool decommission�
B. “nodetool removenode�
C. “nodetool assassinate�

1. Cassandra would redistribute the data from the node that is being removed from the cluster
2. Cassandra would redistribute the data from the existing replicas.
3. Access Mostly Uused Products by 50000+ Subscribers


Question-: You have node cluster, and you have found that one of the node in the cluster is performing badly. You decided to remove this node. Which of the below correct way of removing this node (Assume replication factor set as for this cluster)?
A. As we know data is already replicated in the cluster. We simply tun-off the node and then remove it.
B. You would be running “nodetool decommission� command
C. You would be running “nodetool removenode� command
D. You would be running “nodetool assassinate� command