Apache Cassandra - Basics Flashcards

(27 cards)

1
Q

Define Apache Cassandra.

A

A distributed NoSQL database designed for handling large amounts of data across many servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or false: Cassandra uses a master-slave architecture.

A

FALSE

Cassandra employs a peer-to-peer architecture with no single point of failure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the primary data model of Cassandra?

A

Cassandra uses a wide-column store data model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fill in the blank: CQL stands for _______.

A

Cassandra Query Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a keyspace in Cassandra?

A

A keyspace is a namespace that defines data replication settings for tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define replication factor.

A

The number of copies of data stored across the cluster nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or false: Cassandra supports multi-data center replication.

A

TRUE

It allows data to be replicated across different geographical locations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does Tunable Consistency mean?

A

It allows users to configure the level of consistency required for read and write operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fill in the blank: Partitioning in Cassandra is done using a _______.

A

Partition key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a column family?

A

A collection of rows that share the same structure in Cassandra.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define SSTable.

A

A file format used by Cassandra to store immutable data on disk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

True or false: Cassandra uses eventual consistency.

A

TRUE

This means that data will eventually become consistent across all replicas.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the purpose of gossip protocol?

A

To allow nodes to communicate and share information about the state of the cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Fill in the blank: Tombstones are used to mark _______ in Cassandra.

A

Deleted data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a materialized view?

A

A precomputed query result stored as a table for efficient access.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Define lightweight transactions.

A

Transactions that provide conditional updates using a consensus protocol.

17
Q

True or false: Cassandra supports joins between tables.

A

FALSE

Cassandra does not support joins; data modeling must account for this.

18
Q

What is the role of a Cassandra node?

A

A single instance of Cassandra that stores data and participates in the cluster.

19
Q

Fill in the blank: Data modeling in Cassandra focuses on _______.

A

Query patterns

20
Q

What is scalability in Cassandra?

A

The ability to add more nodes to handle increased load without downtime.

21
Q

Define compaction.

A

The process of merging SSTables to optimize storage and read performance.

22
Q

True or false: Cassandra can handle unstructured data.

A

TRUE

It is designed to store various data types, including unstructured data.

23
Q

What does nodetool do?

A

A command-line utility for managing and monitoring Cassandra nodes.

24
Q

Fill in the blank: Cassandra is optimized for _______ workloads.

25
What is **data replication**?
The process of copying data across multiple nodes for fault tolerance.
26
Define **Cassandra driver**.
A library that allows applications to connect and interact with a Cassandra cluster.
27
True or false: Cassandra supports **ACID transactions**.
FALSE ## Footnote Cassandra prioritizes availability and partition tolerance over strict consistency.