Question : Select correct statement for Cassandra database, w.r.t. RDBMS A. Cassandra is designed as a distributed database with peer-to-peer communication. B. As a best practice, queries should involve at least two table. C. Data should be de-normalized. D. client-side joins can be used in applications, after data fetch from Cassandra.
1. A,B,C 2. B,C,D 3. A,C,D 4. A,B,C,D
Correct Answer : 3 Explanation: Cassandra is designed from the ground up as a distributed database with peer-to-peer communication. As a best practice, queries should be one per table. Data is denormalized to make this possible. For this reason, the concept of JOINs between tables does not exist, although client-side joins can be used in applications.
Question : Select correct statement which applies for CQL. A. CQL and SQL share the same abstract idea of a table constructed of columns and rows. B. Cassandra emphasizes denormalization through CQL features like collections and clustering specified at the schema level C. Cassandra does not support joins. D. Cassandra does not support subqueries.
1. A,B,C 2. B,C,D 3. A,C,D 4. A,B,C,D
Correct Answer : 4 Explanation: Cassandra Query Language (CQL) is the primary interface into the Cassandra DBMS. Using CQL is similar to using SQL (Structured Query Language). CQL and SQL share the same abstract idea of a table constructed of columns and rows. The main difference from SQL is that Cassandra does not support joins or subqueries. Instead, Cassandra emphasizes denormalization through CQL features like collections and clustering specified at the schema level.
CQL is the recommended way to interact with Cassandra. Performance and the simplicity of reading and using CQL is an advantage of modern Cassandra over older Cassandra APIs.
Question : Which all are possible using cqlsh A. you can create keyspaces B. you can create tables C. you can insert and query tables
1. A,B 2. B,C 3. A,C 4. A,B,C
Correct Answer : 4 Explanation: The most basic way to interact with Cassandra is using the CQL shell, cqlsh. Using cqlsh, you can create keyspaces and tables, insert and query tables, plus much more. If you prefer a graphical tool, you can use DevCenter. For production, DataStax supplies a number of drivers in various programming languages, so that CQL statements can be passed from client to cluster and back.