SQLancer
← All Database Flashcards Library / Flashcards / MongoDB
🍃 MongoDB Knowledge Base

MongoDB Study Flashcards

Leading document-oriented NoSQL database managing schema-less JSON-like BSON objects. Click any card to flip and test your knowledge.

Card 1 of 10 Storage Format

What is BSON in MongoDB?

Click Card to Reveal Answer ↷
Answer MongoDB

Binary JSON (BSON) is the binary serialization format used to store documents and extend JSON with data types like Date and ObjectId.

Click to Flip Back ↶
Card 2 of 10 Data Types

What is an ObjectId?

Click Card to Reveal Answer ↷
Answer MongoDB

A 12-byte unique identifier generated automatically for document _id fields containing timestamp, machine, process, and counter bits.

Click to Flip Back ↶
Card 3 of 10 Aggregation

What is the Aggregation Pipeline?

Click Card to Reveal Answer ↷
Answer MongoDB

A multi-stage framework ($match, $group, $lookup, $unwind) for transforming and summarizing documents sequentially.

Click to Flip Back ↶
Card 4 of 10 Joins

How does $lookup work in MongoDB?

Click Card to Reveal Answer ↷
Answer MongoDB

It performs an equality left outer join to a collection in the same database to pull in related document arrays.

Click to Flip Back ↶
Card 5 of 10 High Availability

What is a Replica Set in MongoDB?

Click Card to Reveal Answer ↷
Answer MongoDB

A cluster of MongoDB servers maintaining identical data copies to ensure high availability and automatic failover.

Click to Flip Back ↶
Card 6 of 10 Scaling

What is Sharding in MongoDB?

Click Card to Reveal Answer ↷
Answer MongoDB

Horizontal scaling method partitioning document datasets across multiple server shards using a shard key.

Click to Flip Back ↶
Card 7 of 10 Indexing

What is a 2dsphere Index?

Click Card to Reveal Answer ↷
Answer MongoDB

An index supporting spatial queries over spherical geometry objects like points, lines, and polygons.

Click to Flip Back ↶
Card 8 of 10 Schema

What is Schema Validation in MongoDB?

Click Card to Reveal Answer ↷
Answer MongoDB

JSON Schema rules enforced during write operations to guarantee document structure integrity.

Click to Flip Back ↶
Card 9 of 10 Aggregation

What does the $unwind stage do?

Click Card to Reveal Answer ↷
Answer MongoDB

It deconstructs an array field from input documents to output a document for each element in the array.

Click to Flip Back ↶
Card 10 of 10 CRUD Operations

What is an Upsert in MongoDB?

Click Card to Reveal Answer ↷
Answer MongoDB

An update operation that updates matching documents or creates a new document if no match is found.

Click to Flip Back ↶

Need practical SQL queries for MongoDB?

Explore our ready-to-use copy-paste query recipes in the Cookbook.

View MongoDB Cookbook →