Premium

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



Question-: You are working as an administrator for the Cassandra database. Where the data modeling is done of the time series data. And you have decided to use the “DateTieredCompactionStrategy�. What all the benefits of having compaction with this strategy?

A. It helps in compacting SSTable based on time period.
B. It helps in compacting SSTable based on size.
C. With this you can have better disk usage
D. Your read performance will also increase after compaction
E. There is lesser RAM needed.
F. You can have your data in only one data center

Answer: A,C,D,E

Explanation: In case of Time Series data, you should use the DateTieredCompactionStrategy. Because it can help to compact your data based on the Time period. Like compact data for every 4 hours. 4+4 hours, hence new SSTable could have 8 hours data in it. And also your tombstone data can be removed from SSTable of their gc grace period is already expired. And overall more disk space would be available for new data.

And most of the data is fond in the single SSTable then overall lesser overhead of seeking the data on the disk and memory. As well less memory is needed to store the lesser partition index etc. It has nothing to do with the Data center.

Admin only



Question-: Whenever compaction happens
A. It always deletes the tombstone data
B. It keeps the tombstone data upto 3 consecutive Compaction. So that read repair can happen.
C. It would delete the tombstone data if gc grace period had expired.
D. It deletes the tombstone data if it is older than 1hr

Answer: C

Explanation: Tombstone data are the data which is marked for deletion. And while compaction process those should be taken care. It depends in the parameter gc grace period whether to consider the tombstone data for deletion or not. If gc grace period which is by default 10 days. Has expired, it means tombstone records is older than 10 days, it would not be included in the new SSTable and would be discarded.

Admin only



Question-: When compaction happens, it picks the partition from the both the old SSTables and merge them, it is always the case that new partition segment in new SSTable bigger than both of the older partition segment.
A. True
B. False

Answer: B

Explanation: No we can not conclude that new partition segment would be bigger or smaller until and unless we know the data tombstone detail in these partition segments. If both the partition segments have lot of tombstone data and their gc grace period had expired then actually newly created partition segment would have smaller partition segment. If there is no tombstone and new inserts are happened then in this case new partition would be bigger than older one.

Admin only

Related Questions


Question-: Suppose there are two Database tables in your Cassandra cluster, HE_VISIT and HE_SIGNUP. As you can see that HE_VISIT table has a high throughput, frequent write operations for this table. Which of the following statements are correct with regards to memtable flush for each table?
A. Table HE_VISIT’s memtable fills up rapidly and gets flushed frequently the table HE_SIGNUP.
B. Table HE_SIGNUP’s memtable fills up slowly and rarely gets flushed.
C. When commit log reaches to its maximum size then it forces HE_SIGNUP’s to flush.
D. If the commit log space and memtable space are same size than table HE_Signup’s memtable would flush every time table HE_VISIT is flushed.


Question-: Which of the following is shared across all the tables?
A. Memtable
B. SSTables
C. Commit logs
D. Both memtable and SSTable



Question-: You have been given below detail from the directory stored on one of the nodes in the Cassandra cluster.

data/hadoopexam/course_fee-a5g22x211gf422l7790c34ad987777d3d/xx-1-bti-Data.db
Can you please map the following?

A. HadoopExam
B. Course_FEE
C. BTI
D. XX

1. Keyspace Name
2. Table Name
3. Access Mostly Uused Products by 50000+ Subscribers
4. Version of the SSTable



Question-: Compaction is a process
A. Which deletes data from memtables
B. Which deletes data from SSTables
C. It merges the various SSTables
D. It deletes the Tombstone marked data



Question-: Which of the following is true for the leveled compaction strategy?
A. It is very IO intensive process.
B. It compacts many more SSTable at once then size tiered compaction
C. This is executed more frequently than size tiered compaction.
D. None of the above


Question-: In which scenario do you think leveled compactions is a good strategy?
A. When your table has high write.
B. when your table has very intensive read operations.
C. it does not matter; it is good for every situation other than time series data.
D. you should avoid this compaction strategy altogether.