MongoDB DBA · Question 1 · Multiple choice

1. Which of the following are advantages of embedded data in documents when compared to traditional relational database tables and records? Check all that apply:

Answer options

  1. A.
    allows documents to have different sets of fields and their data types can different within a single collection
  2. B.
    allows fields to be added and removed without any additional steps or constraints.
  3. C.
    allows related data to be updated in a single atomic write operation.
  4. D.
    provides better performance for read operations, as data can be requested and retrieved in a single database operation

Answer confidence: Medium

Correct answer: A, B, C, D

Explanation language: Chinese

四项都是文档模型/内嵌数据相对关系表与记录的实打实优势:A 指同一集合允许文档的字段集合与取值类型互不相同(多态),B 指增删字段不需要 ALTER TABLE 之类的额外步骤,C 指把相关数据内嵌后可以在一次单文档原子写入中一起更新,D 指读取时不必做 JOIN、一次读写即可取回整条数据。关系表要表达同样的结构就得靠多表 JOIN 或大量可空列,所以这四点都成立,源卷答案 ABCD 可采纳。

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 ↗