4. It depends on the query, what query we are going to execute against the data.
Correct Answer : Get Lastest Questions and Answer : Explanation: Data modeling in Cassandra uses a query-driven approach, in which specific queries are the key to organizing the data. Cassandra's database design is based on the requirement for fast reads and writes, so the better the schema design, the faster data is written and retrieved. Queries are the result of selecting data from a table; schema is the definition of how data in the table is arranged.
Correct Answer : Get Lastest Questions and Answer : Explanation: Cassandra will reject query in option 2 because the query requires a sequential scan across the entire dataset, because trainer is not a partition key or clustering column.
If you have created below index, then you can query based on trainer.
CREATE INDEX ON TRINING_COURSE( trainer );
Question : Select the correct statement? 1. The partition key determines which node stores the data.
2. partition key is responsible for data distribution across the nodes.
Correct Answer : Get Lastest Questions and Answer : Explanation: A compound primary key consists of the partition key and one or more additional columns that determine clustering. The partition key determines which node stores the data. It is responsible for data distribution across the nodes. The additional columns determine per-partition clustering. Clustering is a storage engine process that sorts data within the partition.