03 - The Document-oriented Database Flashcards

1
Q

How does a document-oriented database save its records?

A

Stores records as documents

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

Define

documents

A

key-value pairs

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

List

Advantages of Document-Oriented Database

3

A
  • Better Performance
  • Horizontal Scalability
  • Dynamic and Flexible Schema
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

List

Disadvantages of Document-Oriented Database

2

A
  • Functionality
  • Dependent on the application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define

Database

A

Top level containers for data

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

List

Commands run on a database

3

A
  • User creation
  • Configuration
  • Creating collections
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SQL: ____, MongoDB: ____
(in terms of data storage)

A

Tables, Collections

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

Collections are (explicitly, implicitly) created

A

implicitly

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

How to connect to a MongoDB server? (using mongosh)

A
mongosh --host <ip address>
mongosh "mongodb://<ip address>/"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to connect to a database in a MongoDB Server (using mongosh)?

A
mongosh --host <ip address> <database name>
mongosh "mongodb://<ip address>/<database name>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to switch db (from within Mongo Shell)?

A

use <database name>

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