Quiz time
Q.1. State whether the following statements are true or false:
Cassandra has a default consistency of
ALL
.QUORUM
is the consistency level that provides the highest availability.Cassandra uses a snitch to identify the closeness of the nodes.
Cassandra reads and writes features have consistency level 1 by default.
Q.2. Fill in the blanks:
_______________ is used to determine the physical closeness of the nodes.
_______________ is the consistency that provides the highest availability and lowest availability.
The ___________ is the service that ensures that a node, which has been down for a while, is correctly updated with the latest changes.
Q.3. Execute the following use case to see Cassandra high availability and replications:
Create a four-node Cassandra cluster.
Create a keyspace with a replication factor of 3.
Add some data into a column family under this keyspace.
Attempt to retrieve data using read consistency with using
ALL
in select query.Shut down the Cassandra daemon on one node...