Data Models Flashcards

1
Q

What does a data model do?

A

A data model provides the mapping between an application entity and how it is stored in a system.

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

What does the Object-relational model provide?

A

It provides a way to map classes (from object oriented systems) to a schema (tables, relations, etc)

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

What does the Document model provide?

A

Document model encapsulates and encodes data in a semi structured standard (Json, XML)

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

What do Document Models struggle with?

A

They struggle with many-to relationships and implement join functionality less efficiently

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

Why would a Graph Like model be used?

A

It is suited for complex many-to-many relationships that are challenging for relational and document models.

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

How is a Graph Like Model structured?

A

Entities are represented as nodes and the relationship as an edge.

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

What are the features of NoSQL Databases?

A

Uses Not Only SQL to interact with it, applies non-relational storage and retrieval of data, focuses on simplicity and scalability.

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

What are the two types of Document Store?

A

Key-Value Store, Wide Column Store.

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

How does a Key-Value Store work?

A

Data is stored in associative arrays, with each object being represented by a set of key value pairs.

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

How does a Wide Column Store Work?

A

It is a Two Dimensional Key Value Database where data is grouped in rows, and the names and formats of columns can vary form record to record

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

What is the use case of Schema Flexability?

A

Most document databases do not enforce a schema and the structure is implicit and defined when the data is read by an application. Allows for more efficient changes of data format.

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

What is the CAP Theoram?

A

If using a distributed system only two of three can be chosen: Consistency, Availability, Partition Tolerance.

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

What id Data Locality?

A

A document is usually stored in a single continuous string

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