nerdexam
MongoDB

C100DBA · Question #90

Which of the following about Capped Collections is correct?

The correct answer is B. Only "Fixed Size" and "High-throughput operations that insert and retrieve documents based on. Option B is correct because Capped Collections in MongoDB are defined by two core characteristics working together: they have a fixed size (a maximum byte allocation set at creation), AND they support high-throughput insert/retrieve operations that maintain insertion order using

MongoDB Fundamentals

Question

Which of the following about Capped Collections is correct?

Options

  • AFixed Size
  • BOnly "Fixed Size" and "High-throughput operations that insert and retrieve documents based on
  • CHigh-throughput operations that insert and retrieve documents based on insertion order
  • DIf the allocated space for a capped collection exceeds, it stops inserting new documents

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    94% (34)
  • C
    3% (1)

Explanation

Option B is correct because Capped Collections in MongoDB are defined by two core characteristics working together: they have a fixed size (a maximum byte allocation set at creation), AND they support high-throughput insert/retrieve operations that maintain insertion order using a natural circular buffer mechanism. Options A and C are each individually true but incomplete on their own - neither alone fully describes a Capped Collection, making B the only answer that captures the full definition. Option D is wrong because when a capped collection reaches its size limit, MongoDB does not stop inserting - instead it automatically overwrites the oldest documents in a circular fashion, which is the key behavioral distinction.

Memory tip: Think of a capped collection like a fixed-length circular tape recorder - it never runs out of space by recording over the oldest content, and it plays back in the exact order things were recorded. "Fixed size + insertion order" are inseparable partners.

Topics

#capped collections#fixed size#insertion order#high throughput

Community Discussion

No community discussion yet for this question.

Full C100DBA Practice