Skip to main content
InterviewHubPRO
Section Overview
Q8

Question 8 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

16%
MongoDB & NoSQL (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What is the 16 MB Document Size Limit and how do you store larger files?

junior LevelmongodbBasic

In Simple Words: A single BSON document cannot exceed 16 Megabytes:

  • Designed to prevent RAM bloat and preserve network transfer performance.
  • For Larger Files (> 16 MB): Use GridFS. GridFS automatically divides large files (videos, PDFs, high-res images) into 255 KB chunks stored across two collections: fs.files (metadata) and fs.chunks (binary blocks).