nerdexam
MongoDB

C100DBA · Question #11

What is the maximum size of a MongoDB document?

The correct answer is D. 16 MB. MongoDB enforces a hard limit of 16 MB per document, a design constraint that encourages normalized data modeling and prevents individual documents from consuming excessive memory or network bandwidth. A (2 MB) is incorrect - this is a common confusion, possibly mixed up with oth

MongoDB Fundamentals

Question

What is the maximum size of a MongoDB document?

Options

  • A2 MB
  • B12 MB
  • CThere is no maximum size. It depends on the RAM.
  • D16 MB

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    8% (3)
  • D
    87% (33)

Explanation

MongoDB enforces a hard limit of 16 MB per document, a design constraint that encourages normalized data modeling and prevents individual documents from consuming excessive memory or network bandwidth.

  • A (2 MB) is incorrect - this is a common confusion, possibly mixed up with other database limits or message queue constraints.
  • B (12 MB) is a plausible-sounding distractor but has no basis in MongoDB's actual specification.
  • C (no maximum) is incorrect - while RAM does influence performance, MongoDB's 16 MB cap is a strict BSON document size limit enforced at the driver and server level, regardless of available RAM.

Memory tip: Think "16 MB = MongoDB" - both start with the same number of letters as their value: MongoDB → 16 (or simply remember that MongoDB's logo is a leaf, and 16 is a power of 2, which fits the binary/database theme).

Topics

#document size limit#BSON#16MB limit

Community Discussion

No community discussion yet for this question.

Full C100DBA Practice