MongoDB DBA · Question 344 · Multiple choice

63. Which of the following are reasons to use normalized data in documents instead of embedding data in documents? Check all that apply:

Answer options

  1. A.
    allows for easier modeling of large hierarchical data sets.
  2. B.
    stores data in separate collections when embedding it in a document decreases read performance particularly when the majority of data may be not frequently used.
  3. C.
    allows for complex many-to-many relationships to more easily modelled.
  4. D.
    allows for data to be updated in a single atomic write.
  5. E.
    allows for modeling one-to-many relationships with a high arity with large documents on the many side of the relationship.

Answer confidence: Medium

Correct answer: B, C, E

Explanation language: Chinese

引用(规范化)的典型理由有三个:把体积大又不常访问的数据拆到独立集合,避免每次读主文档都一起拉回来(B);更好地建模多对多关系(C);以及多端文档很大或数量无上限(高基数)的一对多关系(E)。A 与 D 恰恰是内嵌的理由——层级数据内嵌更好建模,单文档内嵌可一次原子写完成更新。

Papers containing this question

This question appears in 2 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 ↗