Week 2 L1 Flashcards

1
Q

How is data stored and managed in MongoDB ?

A

stored in BSON(Binary JSON)

managed in json

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

How are documents organised in mongo db ?

A

Document are organised into collections

A collection of documents is loosely comparable in certain respects to a relation of rows

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

How is a document identified in mongo db ?

A

Using a unique document key. Can be overridden.

Can be generated from timestamp, machine id, process id and counter.

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

How do you create relationships between documents ?

A

Include one ID of a document in another. (Referencing)

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

Why do we use relational schema ?

A

defined before data is inserted
Fixed set of fields for all records with fixed datatype and size. Can use null constraints.
New fields means schema must be updated.

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

What do we mean by referential integrity ?

A

Using PK and FK for relationships

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

What is schema less documents ?

A

No fixed schema
First document creates collection
Fields can be different and have no fixed type
No integrity checks

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

What is CRUD ?

A

Create, read update delete?

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

What key words does MongoDB use for crud ?

A

Insert , find, update, remove

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