Question : When you need to add new node to Cassandra cluster, you have to bring down Cassandra cluster? 1. True 2. False
Correct Answer : 2 Explanation: No, you donat have to bring down the cluster to add new node to the cluster. You can add new node on live cluster. joining a cluster : first thing it does is it gossips out to those seed nodes, in the neighborhood, to get the information. Other nodes are going to recalculate the token ranges, and figure out where that new node is going to fit in there, and they're going to start streaming their data down to them, so that new node will start receiving data. This will be joining, and until it's fully joined in the system, it's not ready for read, it's still accepting data. But this is a pretty critical part of operations when you're joining a node to the cluster, because it can do it online.
Question : When your driver uses TokenAwarePolicy
1. Co-ordinator cannot be avoided, each read and write go through co-ordinator node
2. Co-ordinator is not used, each read and write directly go to the specific node, which data belong to.
3. It eliminates a hop for your data
4. 1 and 3
5. 2 and 3
Correct Answer : 5 Explanation: TokenAwarePolicy understands the token ranges and knows which node has what and which replicas store that data as well. Now the coordinator is not so important because we can go directly to the nodes that have the data and bypass this coordination phase. It's just more efficient. It eliminates a hop for your data.
Question : Which of the policy rely on coordinator
1. RoundRobin
2. DCAwareRoundRobinPolicy
3. TokenAwarePolicy
4. 1 and 2 5. 1 and 3
Correct Answer : 4 Explanation: RoundRobin, which do rely on coordination, and the DCAwareRoundRobinPolicy makes sure that that data is staying in the local data center.