Premium

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



Question-: Whenever incremental_backup flag Is set as true in Cassandra.yaml file then as on when the memtable is flushed it creates the Snapshot for that flushed data as well.
A. True
B. False

Answer: A

Explanation: Yes by enabling flag “incremental_backup� to true it would create snapshot files from the memtable whenever it is being flushed. Hence both combined snapshot of Memtable as well as SSTables snapshot would be considered, as an entire backup for the table on that node. Still it is not a full snapshot of the table. Snapshot is only created from the data which is available on that node for that token range.



Question-: Which of the following are the correct way to restore snapshot?
A. You would be deleting your current data file and copy the snapshot and incremental files to appropriate data directory.
B. You can use sstableloader to load the data in the cluster.
C. You can use DSBulk tool to load the data from SSTable
D. You would be creating new cluster and using the copy command you load the data in your cluster.


Answer: A,B

Explanation: How to restore the data from the snapshot file as well as incremental file there are two options available as below
1. First you delete the current data files and copy the snapshot and incremental file to the appropriate data directories. Remember in this case table schema must be present in order to use this method. Once you have copied the data Restart and prepare the node.
2. Another option is using the sstableloader: this is good if you are having different size of cluster while restoring your snapshot. However, this approach would create lot of load on the cluster for loading the data. But it will properly analyses the token range on the new cluster and copy the data as per the new token range.



Question-: It is recommended that you truncate the table before restoring it.
A. True
B. False

Answer: A
Exp: Yes, it is recommended that you should truncate the table before initiating a restore. Reason being suppose some data have been deleted(accidently) from the table, which would have Tombstone data with the later write timestamp then the same data in the backed-up snapshot file. And if we restore to without truncating or removing the tombstone data, then database will, delete the data which it should not. Because data deletion was done accidentally and you want to load it from the snapshot. But as soon as it is loaded it was deleted again because of the Tombstone marker on that record.

Related Questions


Question-: Which of the following is you should define when setting up multiple datacenter cluster?
A. Use the NetworkTopologyStrategy
B. Use the SimpleStrategy
C. You should use the LOCAL_ONE or LOCAL_QUORUM consistency level to avoid latency during write operation.
D. You should use the EACH consistency level to avoid latency during write operation.
E. You should specify the Snitch.



Question-: You have Cassandra cluster setup using one datacenter having total nodes in it. You created keyspace using the following command.
ALTER KEYSPACE HE_KEPSPACE WITH replication={‘class’ : ‘NetworkTopologyStrategy’ , ‘DC1’ : 1 , ‘DC2’ : 2}

Which of the following statement is true?

A. This command would fail because there is only one datacenter and you have defined the two datacenters in the command.
B. This command would be successful and local datacenter would be created using the 3rd node in the cluster.
C. This command would fail as this would not be able to create 3 copy of the data.
D. This command would be successful, without any error.


Question-: If you are adding a new datacenter to your existing cluster then which of the following command you should use?
A. nodetool repair
B. nodetool rebuild
C. nodetool update
D. nodetool refresh


Question-: Which of the following statements are valid for COPY command in the CQL (Cassandra Qury Language).

A. This is a replacement for the DSBulk command.
B. When importing data using COPY command, it is fine to have each row different number of columns.
C. If the column data type is integer then empty value automatically inserted as zero.
D. You should import less than million records using this command.


Question-: Which of the following command you can use to dump the SSTable in JSON format?

A. SSDump
B. sstabledump
C. sstablejsondump
D. Importsstable


Question-: Which of the following command would help in loading the SSTable to Cassandra cluster?
A. CQL Copy command
B. sstabledump
C. DSBulk
D. sstableloader