Hadoop Questions and Answers – Cassandra with Hadoop – 2

This set of Interview Questions & Answers focuses on “Cassandra with Hadoop – 2”.

1. _________ is a Cassandra feature that optimizes the cluster consistency process.
a) Hinted handon
b) Hinted handoff
c) Tombstone
d) Hinted tomb
View Answer

Answer: b
Explanation: You can enable or disable hinted handoff in the cassandra.yaml file.

2. Point out the correct statement.
a) Cassandra does not immediately remove data marked for deletion from disk
b) A deleted column can reappear if you do not run node repair routinely
c) The deletion of marked data occurs during compaction
d) All of the mentioned
View Answer

Answer: d
Explanation: Marking data with a tombstone signals Cassandra to retry sending a delete request to a replica that was down at the time of delete.

3. Cassandra searches the __________ to determine the approximate location on disk of the index entry.
a) partition record
b) partition summary
c) partition search
d) all of the mentioned
View Answer

Answer: b
Explanation: If the Bloom filter does not rule out the SSTable, Cassandra checks the partition key cache.

4. You configure sample frequency by changing the ________ property in the table definition.
a) index_time
b) index_interval
c) index_secs
d) none of the mentioned
View Answer

Answer: b
Explanation: By default, the partition summary is a sample of the partition index.

advertisement
advertisement

5. Point out the wrong statement.
a) A hint indicates that a write needs to be replayed to one or more unavailable nodes
b) When the cluster cannot meet the consistency level specified by the client, Cassandra does store a hint
c) By default, hints are saved for three hours after a replica fails because if the replica is down longer than that, it is likely permanently dead
d) All of the mentioned
View Answer

Answer: b
Explanation: When the cluster cannot meet the consistency level specified by the client, Cassandra does not store a hint.

6. The compression offset map grows to ____ GB per terabyte compressed.
a) 1-3
b) 10-16
c) 20-22
d) 0-1
View Answer

Answer: a
Explanation: The more you compress data, the greater number of compressed blocks you have and the larger the compression offset table.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

7. The type of __________ strategy Cassandra performs on your data is configurable and can significantly affect read performance.
a) compression
b) collection
c) compaction
d) decompression
View Answer

Answer: c
Explanation: Using the SizeTieredCompactionStrategy or DateTieredCompactionStrategy tends to cause data fragmentation when rows are frequently updated.

8. There are _________ types of read requests that a coordinator can send to a replica.
a) two
b) three
c) four
d) all of the mentioned
View Answer

Answer: b
Explanation: The coordinator node contacts one replica node with a direct read request.

advertisement

9. _________ can be configured per table for non-QUORUM consistency levels.
a) Read repair
b) Read damage
c) Write repair
d) None of the mentioned
View Answer

Answer: a
Explanation: If the replicas are inconsistent, the coordinator issues writes to the out-of-date replicas to update the row to the most recent values. This process is known as read repair.

10. If the table has been configured with the __________ property, the coordinator node for the read request will retry the request with another replica node.
a) rapid_retry
b) speculative_retry
c) speculative_rapid
d) none of the mentioned
View Answer

Answer: b
Explanation: Rapid read protection allows Cassandra to still deliver read requests when the originally selected replica nodes are either down or taking too long to respond.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

To practice all interview questions and answers on Cassandra, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.