Question : It is not possible to "tune" Cassandra into a completely CA system. 1. True 2. False
Correct Answer : Get Lastest Questions and Answer : Explanation: There is a tradeoff between operation latency and consistency: higher consistency incurs higher latency, lower consistency permits lower latency. You can control latency by tuning consistency.
Question : The consistency level determines the number of replicas that need to acknowledge the read or write operation success to the client application. 1. True 2. False
Correct Answer : Get Lastest Questions and Answer : Explanation: The consistency level determines the number of replicas that need to acknowledge the read or write operation success to the client application. For read operations, the read consistency level specifies how many replicas must respond to a read request before returning data to the client application. If a read operation reveals inconsistency among replicas, Cassandra initiates a read repair to update the inconsistent data.
Question : . Even at low consistency levels, Cassandra writes to all replicas of the partition key, including replicas in other datacenters. 1. True 2. False
Correct Answer : Get Lastest Questions and Answer : Explanation: For write operations, the write consistency level specified how many replicas must respond to a write request before the write is considered successful. Even at low consistency levels, Cassandra writes to all replicas of the partition key, including replicas in other datacenters. The write consistency level just specifies when the coordinator can report to the client application that the write operation is considered completed. Write operations will use hinted handoffs to ensure the writes are completed when replicas are down or otherwise not responsive to the write request.
Typically, a client specifies a consistency level that is less than the replication factor specified by the keyspace. Another common practice is to write at a consistency level of QUORUM and read at a consistency level of QUORUM. The choices made depend on the client application's needs, and Cassandra provides maximum flexibility for application design.