Premium

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



Question-: Which of the following are the causes for GC pauses in Cassandra database?
A. lack of JVM space
B. Mistuned JVM GC algorithm
C. Slow disk
D. High volume of data
E. high number of nodes in Cassandra cluster


Answer: A,B,C
Exp: GC pauses means when client submit the query it has to wait for longer period to get the response. GC pauses are not only because of the garbage collection, there are many other reasons which can cause the garbage collection issue but generally speaking. when you see the high number of pauses with fast safepoint indicates a lake of JVM heap. means not enough memory available for the JVM are you have not properly tuned this algorithm.

but when you see the high pauses with slow safepoints. which typically indicates that the JVM is having trouble entering a safe point. And that could be because of the slow disc drives. Cassandra database uses the memory mapped reads very heavily and JVM would not be aware about this disk latency comma so the JVM safepoint logic doesn't handle a blocking memory mapped read particularly well.

so suppose you see a very good average performance of the Cassandra database but you see a multi second JVM pauses. which code you mostly safepoint pauses could be caused by slow disk.

Admin Only



Question-: While analyzing the Cassandra cluster you found that one of the nodes in the ring is responding quite slow to query. Hence, you decided to debug the system and wanted to enable the log level to Debug only on that particular node. And once analysis is done, you wanted to reset the log level to INFO. Which of the following option you would use, so that you don’t have to restart the cluster?
A. You would be changing the log level in logback.xml file. Which would be effective for next query
B. You would be updating the log level by changing the JVM options.
C. You will be using the nodetool setlogginglevel option.
D. It is not possible, without node restart

Answer: C

Explanation: You can use the nodetool setlogginglevel which can directly talk to the processes. And does not require node to be restart. If you restart the node then this command would not be effective after restart.
Below is the example through which you can enable the logging level to Debug, without the restarting of the node.
nodetool setlogginglevels org,apache.cassandra.service.StorageProxy DEBUG

Similar to fetch the logging levels, you can use the following command option
nodetool getlogginglevels
Admin Only



Question-: You have setup Splunk process as well as Geneos alert system to analyze the logs. And they both can read the logs from a particular directory only. Now you need to make sure that the logs can be created in that directory only. How can you achieve this?
A. You would be providing the log path at Cassandra.yaml file
B. You will be providing the log path using the jvm.options
C. You would be updating the log4j.properties file
D. You would be updating the logback.xml file

Answer: B
Exp: To change the logfile path, you have to use the jvm.options . You can use the logback.xml file for changing the log levels.
Admin Only

Related Questions


Question-: Tombstone is a marker for which rows to be deleted?
A. True
B. False


Question-: You have to restart a node in a Cassandra cluster to apply some patch on it. However, after restart it should take at least minutes to be part of the cluster as well as serving data.
A. True
B. False


Question-: Select the correct statement with regards to Partitioner?
A. It is the partitioner responsibility to distribute the data across the nodes in the cluster for load balancing.
B. It is the user who decide on which node first replica of the data should be placed and then partitioner decide how to distribute other replicas across other nodes in the cluster.
C. Partition key and primary key may be the same.
D. Murmur3Partitioner is decommissioned and should not be used in new version of Cassandra Cluster.


Question-: Select correct statement which applies to replication factor for Cassandra.
A. Replication factor 1 means each column will be separately copied on every node in cluster from a Row.
B. A replication factor 2 means two copies of each row, where each copy is on different node.
C. First replica is always considered primary replica, if node crashes which holds primary replica then second replica become primary.
D. You should not set replication factor more than number of nodes in the cluster.


Question-: You are setting up node cluster and you are expecting that in future you may want to expand this cluster to another data center as well, then which of the following statement is correct?
A. You will be using NetworkTopologyStrategy
B. You should avoid defining number of replicas during keyspace creation.
C. You should define the replica placement strategy while creating keyspace.
D. You should define which node will act as a master while crating keyspace.


Question-: Which of the following statements are correct for the snitch?
A. It helps in mapping IP addresses of nodes to physical and virtual locations like racks and datacenters.
B. Snitches inform the database about the network topology used.
C. GossipingPropertyFileSnitch is recommended in most of the cases.
D. A,B
E. A,B,C