nerdexam
MongoDB

C100DBA · Question #10

What is the maximum size of a MongoDB document

The correct answer is A. 16 MB. MongoDB enforces a hard limit of 16 MB per document, a deliberate design choice to prevent single documents from consuming excessive memory during query processing. Options B (12 MB) and C (2 MB) are simply incorrect values that don't correspond to any MongoDB limit. Option D is

MongoDB Fundamentals

Question

What is the maximum size of a MongoDB document

Options

  • A16 MB
  • B12 MB
  • C2 MB
  • DThere is no maximum size. It depends on the RAM.

How the community answered

(35 responses)
  • A
    89% (31)
  • B
    6% (2)
  • C
    3% (1)
  • D
    3% (1)

Explanation

MongoDB enforces a hard limit of 16 MB per document, a deliberate design choice to prevent single documents from consuming excessive memory during query processing. Options B (12 MB) and C (2 MB) are simply incorrect values that don't correspond to any MongoDB limit. Option D is a common misconception - MongoDB's document size limit is a fixed constant in the engine, not a runtime constraint tied to available RAM.

Memory tip: Think "16 MB = 16 megabytes = MongoDB's max" - the M in MB can remind you of MongoDB, and 16 is the only power of 2 that maps to this limit.

Topics

#document size limit#BSON#16MB limit

Community Discussion

No community discussion yet for this question.

Full C100DBA Practice