Question : While querying the data from Cassandra table, you must be aware about the table partition keys. Which of the below is correct with regards to partition key? 1. Cassandra will take keys and then find the hash value of that the key to determine which node the partition resides on
2. Partition keys dynamically generate primary indexes on table
Question : In Cassandra table, number of columns can vary in different rows? 1. True 2. False
Correct Answer : Get Lastest Questions and Answer : Explanation: In Cassandra a table can have number of rows. Each row is referenced by a primary key also called row key. There are number of columns in a row but the number of columns can vary in different rows. For example one row in a table can have three columns whereas the other row in the same table can have ten columns.
Question : In Cassandra both column names and values have binary types 1. True 2. False
Correct Answer : Get Lastest Questions and Answer : Explanation: In Cassandra a table can have number of rows. Each row is referenced by a primary key also called row key. There are number of columns in a row but the number of columns can vary in different rows. For example one row in a table can have three columns whereas the other row in the same table can have ten columns. It is also important to note that in Cassandra both column names and values have binary types. Which means column names can have binary values such as string, timestamp or an integer etc. This is different from SQL databases where each row in an SQL table has fixed number of columns and column names can only be text.