NoSQL Flashcards

1
Q

What are some examples of common set of features use on NoSQL Databases:

A
❑ Non-relational data model.
❑ Runs well on clusters.
❑ Mostly open-source.
❑ Built for the new generation Web applications.
❑ Is schema-less.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is ACID?

A

Atomicity
Consistency
Isolation
Durability

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

What are the 4 basic types of NOSQL?

A

1) Key-Value (hash table of keys. E.G.)
2) Document-based (comprise of documents with tagged elements. E.G.: MongoDB)
3) Column-based (each block contains data from only one column E.G.: HBase, Cassandra)
4) Graph-based (used nodes for storage. E.G.: InfiniteGraph, FlockDB)

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

What is the CAP Theorem?

A

CAP theorem is also called brewer’s theorem. It states that is impossible for a distributed data store to offer more than two out of three guarantees.
❑ Consistency: The data should remain consistent even after the execution of an operation. This means once data is written, any future read request should contain that data. For example, after updating the order status, all the clients should be able to see the same data.
❑ Availability: The database should always be available and responsive. It should not have any downtime.
❑ Partition Tolerance: Partition Tolerance means that the system should continue to function even if the communication among the servers is not stable.

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

What is BASE?

A
  • Basically available
  • Soft State
  • Eventually consistent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the RDBMS database

A

❑ Data is stored in a relational model, with rows and columns.
❑ A row contains information about an item while columns contain specific information, such as ‘Model’, ‘Date of Manufacture’, ‘Color’.
❑ Follows fixed schema. Meaning, the columns are defined and locked before data entry. In addition, each row contains data for each column.
❑ Supports vertical scaling. Scaling an RDBMS across multiple servers is a challenging and time-consuming process.
❑ Atomicity, Consistency, Isolation & Durability(ACID) Compliant

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

What are the characteristics of NoSQL?

A

❑ Data is stored in a host of different databases, with different data storage models.
❑ Follows dynamic schemas. Meaning, you can add columns anytime.
❑ Supports horizontal scaling. You can scale across multiple servers. Multiple servers are cheap commodity hardware or cloud instances, which make scaling cost-effective compared to vertical scaling.
❑ Not ACID Compliant.

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

What is the column based NoSQL?

A

❑ Column-based databases store data in column families as rows. These rows contain multiple columns associated with a row key.
❑ Column families are groups of related data that is accessed together.

For example, you may access customer profile information at the same time, but not their
order history.
➢ Each column family is like a container of rows in an RDBMS table where the key identifies the rows.
➢ Each row consists of multiple columns. However, the various rows need not have the same columns. Moreover, you can add a column to any row at any time without adding it to other rows.

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