MongoDB DEV · Question 101 · Multiple choice

MongoDB documents having a flexible schema means that: Check all that apply:

Answer options

  1. A.
    there is no way to enforce a preferred schema in a collection.
  2. B.
    documents are not required to have the same number of fields within one collection.
  3. C.
    a field value type can vary from document to document in a collection.

Answer confidence: High

Correct answer: B, C

Explanation language: Chinese

灵活模式指同一集合内的文档不必拥有相同的字段集合、字段的值类型也可以随文档不同,所以 B、C 正确。A 错:MongoDB 3.2 起支持 schema validation(validator/$jsonSchema),可以按需为集合强制约束结构,只是默认不强制。

Papers containing this question

This question appears in 6 bank records. Public pages combine identical prompts and options. Selected questions display the highest-confidence record; the others show a short preview. Paper-based learning preserves each record's answer, explanation, and confidence.

AUTHOR · PROJECTS · OPEN SOURCE

Author & MongoDB projects

Building data platforms, MongoDB migration and sync tools, and cloud operations products.

Contact the author for any MongoDB needs.

Contact the author ↗mlhp123@outlook.com

Support the author

If this question bank helps you, optional donations are welcome.

Scan with Alipay to support the authorOpen full-size donation image ↗