Question-: Which all are the possible node types in a Cassandra datacenter? A. Transactional B. Graph C. Analytics D. Search E. SearchAnalytics
Answer: A,B,C,D,E
Explanation: You have to make sure that each datacenter would have only one node type as below and have specific purpose. - Transactional: This is mainly used for storing transactional data for example e-commerce users purchase etc. - Graph: When you have connected data like social network data then you should use this for analyzing, searching and managing highly connected data. - Analytics : This node can be integrated with Apache Spark (To learn Apache Spark check here) - Search: It can be integrated with the Apache Solr for providing efficient search solution. - Search Analytics: You can have both search engine and analytics together.
Question-: Which of the following statement is correct with regards to Data storage in Cassandra? A. All Data is first written to the SSTables. B. All Data is first written to the Commit logs. C. Once data is written to commit log it can be archived, deleted. D. Once data is written to SSTables it can be archived, deleted.
Answer: B, D
Explanation: We need to understand the purpose of SSTables, and Commit Log first Whenever write happens on the Database data first get written to commit log for the durability. And then data will be flushed to SSTables where it can be archived, deleted or recycled.
Question-: Which of the following statements are correct for the SSTable? A. SSTable is a mutable data file. B. SSTable is an Immutable data file. C. SSTables are append only files. D. SSTables are stored sequentially and separately maintained for each database table.
Answer: B, C,D Exp: SSTable are named from sorted string table, which is an immutable file. Cassandra database periodically writes memtables to SSTables. And SSTables are append oly and stored on disk sequentially for each database table.