Question : Map the below, components A. Node B. Data center C. Cluster
1. It can span Physical locations 2. Where you store your data. It is the basic infrastructure component of Cassandra 3. A collection of related machines and can be physical as well as virtual
Correct Answer : 1 Explanation: Node Where you store your data. It is the basic infrastructure component of Cassandra.
Data center A collection of related nodes. A data center can be a physical data center or virtual data center. Different workloads should use separate data centers, either physical or virtual. Replication is set by data center. Using separate data centers prevents Cassandra transactions from being impacted by other workloads and keeps requests close to each other for lower latency. Depending on the replication factor, data can be written to multiple data centers. Data centers must never span physical locations.
Cluster A cluster contains one or more data centers. It can span physical locations.
Question : Map the followings A. Commit log B. SSTable C. CQL Table
1. Consists of columns and has a primary key 2. All data is written first to this for durability. 3. Maintained for each Cassandra table
1. A-1 B-2 C-3
2. A-3 B-2 C-1 3. A-1 B-3 C-2 4. A-2 B-3 C-1
Correct Answer : 4 Explanation: Commit log All data is written first to the commit log for durability. After all its data has been flushed to SSTables, it can be archived, deleted, or recycled.
SSTable A sorted string table (SSTable) is an immutable data file to which Cassandra writes memtables periodically. SSTables are append only and stored on disk sequentially and maintained for each Cassandra table.
CQL Table A collection of ordered columns fetched by table row. A table consists of columns and has a primary key.
Question : Select correct statements, with regards to Gossip protocol. A. Using Gossip protocol nodes periodically exchange state information about themselves and about other nodes they know about. B. The gossip process runs every 5 seconds and exchanges state messages with as many other nodes in the cluster as possible. C. The nodes exchange information about themselves and about the other nodes that they have gossiped about, so all nodes quickly learn about all other nodes in the cluster. D. A gossip message has a version associated with it
1. A,B,C 2. B,C,D 3. A,C,D 4. A,B,C,D
Correct Answer : 3 Explanation: Gossip is a peer-to-peer communication protocol in which nodes periodically exchange state information about themselves and about other nodes they know about. The gossip process runs every second and exchanges state messages with up to three other nodes in the cluster. The nodes exchange information about themselves and about the other nodes that they have gossiped about, so all nodes quickly learn about all other nodes in the cluster. A gossip message has a version associated with it, so that during a gossip exchange, older information is overwritten with the most current state for a particular node.