Mongo DB 6 Flashcards
Which command is used to create a new MongoDB database?
A. new db
B. create db
C. use mydb
D. db.create()
C. use mydb
How do you insert a single document into MongoDB?
A. insertOne()
B. put()
C. insert()
D. addDocument()
A. insertOne()
Which MongoDB command removes all documents from a collection?
A. db.removeAll()
B. db.clear()
C. db.q.deleteMany({})
D. db.dropAll()
C. db.q.deleteMany({})
What is the equivalent of a SQL table in MongoDB?
A. Database
B. Row
C. Collection
D. Schema
C. Collection
Which command in MongoDB selects all documents?
A. db.q.findAll()
B. db.q.selectAll()
C. db.q.find()
D. db.q.get()
C. db.q.find()
In MongoDB, what does $regex operator do?
A. Sort
B. Count
C. Pattern match
D. Group
C. Pattern match
Which field is automatically used as a primary key in MongoDB?
A. id
B. key
C. _id
D. pk
C. _id
Which operation in MongoDB is equivalent to SQL GROUP BY?
A. $group
B. $sum
C. $match
D. $join
A. $group
What does the MongoDB $lookup operator perform?
A. Sorting
B. Indexing
C. Joins
D. Projection
C. Joins
How do you replace a document in MongoDB?
A. updateMany()
B. replaceOne()
C. insert()
D. deleteOne()
B. replaceOne()
What is Big Data?
A. Small structured data
B. Data stored in RAM
C. Voluminous and complex data
D. Tabular data
C. Voluminous and complex data
Which of the following is NOT one of the 4 V’s of Big Data?
A. Volume
B. Variety
C. Value
D. Variance
D. Variance
Which NoSQL database type uses JSON-like structure?
A. Key-Value
B. Graph
C. Document
D. Column
C. Document
Which storage type is optimized for analytics?
A. Row-oriented
B. Columnar
C. Relational
D. Object
B. Columnar
What does ACID stand for in databases?
A. Atomicity, Consistency, Isolation, Durability
B. Analytics, Control, Isolation, Durability
C. Aggregation, Configuration, Integrity, Data
D. Access, Consistency, Info, Duration
A. Atomicity, Consistency, Isolation, Durability
Which NoSQL type models data using edges and nodes?
A. Document
B. Graph
C. Column
D. Key-Value
B. Graph
Which system is an example of a NewSQL database?
A. MongoDB
B. SAP HANA
C. Redis
D. Cassandra
B. SAP HANA
What is the main advantage of in-memory databases?
A. Low disk usage
B. Speed
C. Better storage
D. Backup capability
B. Speed
What is the CAP theorem?
A. Theory of relational DB
B. Storage optimization
C. Trade-off between Consistency, Availability, and Partition Tolerance
D. NoSQL versioning rule
C. Trade-off between Consistency, Availability, and Partition Tolerance
Which of the following describes BASE in NoSQL?
A. Basic Atomic Schema Extension
B. Basically Available, Soft state, Eventual consistency
C. Binary Abstract Storage Engine
D. Best Approximate Structural Efficiency
B. Basically Available, Soft state, Eventual consistency
Which command is used to create a new MongoDB database (variant)?
A. new db
B. create db
C. use mydb
D. db.create()
C. use mydb
How do you insert a single document into MongoDB (variant)?
A. insertOne()
B. put()
C. insert()
D. addDocument()
A. insertOne()
Which MongoDB command removes all documents from a collection (variant)?
A. db.removeAll()
B. db.clear()
C. db.q.deleteMany({})
D. db.dropAll()
C. db.q.deleteMany({})
What is the equivalent of a SQL table in MongoDB (variant)?
A. Database
B. Row
C. Collection
D. Schema
C. Collection
Which command in MongoDB selects all documents (variant)?
A. db.q.findAll()
B. db.q.selectAll()
C. db.q.find()
D. db.q.get()
C. db.q.find()
In MongoDB, what does $regex operator do (variant)?
A. Sort
B. Count
C. Pattern match
D. Group
C. Pattern match
Which field is automatically used as a primary key in MongoDB (variant)?
A. id
B. key
C. _id
D. pk
C. _id
Which operation in MongoDB is equivalent to SQL GROUP BY (variant)?
A. $group
B. $sum
C. $match
D. $join
A. $group
What does the MongoDB $lookup operator perform (variant)?
A. Sorting
B. Indexing
C. Joins
D. Projection
C. Joins
How do you replace a document in MongoDB (variant)?
A. updateMany()
B. replaceOne()
C. insert()
D. deleteOne()
B. replaceOne()
What is Big Data (variant)?
A. Small structured data
B. Data stored in RAM
C. Voluminous and complex data
D. Tabular data
C. Voluminous and complex data
Which of the following is NOT one of the 4 V’s of Big Data (variant)?
A. Volume
B. Variety
C. Value
D. Variance
D. Variance
Which NoSQL database type uses JSON-like structure (variant)?
A. Key-Value
B. Graph
C. Document
D. Column
C. Document
Which storage type is optimized for analytics (variant)?
A. Row-oriented
B. Columnar
C. Relational
D. Object
B. Columnar
What does ACID stand for in databases (variant)?
A. Atomicity, Consistency, Isolation, Durability
B. Analytics, Control, Isolation, Durability
C. Aggregation, Configuration, Integrity, Data
D. Access, Consistency, Info, Duration
A. Atomicity, Consistency, Isolation, Durability
Which NoSQL type models data using edges and nodes (variant)?
A. Document
B. Graph
C. Column
D. Key-Value
B. Graph
Which system is an example of a NewSQL database (variant)?
A. MongoDB
B. SAP HANA
C. Redis
D. Cassandra
B. SAP HANA
What is the main advantage of in-memory databases (variant)?
A. Low disk usage
B. Speed
C. Better storage
D. Backup capability
B. Speed
What is the CAP theorem (variant)?
A. Theory of relational DB
B. Storage optimization
C. Trade-off between Consistency, Availability, and Partition Tolerance
D. NoSQL versioning rule
C. Trade-off between Consistency, Availability, and Partition Tolerance
Which of the following describes BASE in NoSQL (variant)?
A. Basic Atomic Schema Extension
B. Basically Available, Soft state, Eventual consistency
C. Binary Abstract Storage Engine
D. Best Approximate Structural Efficiency
B. Basically Available, Soft state, Eventual consistency