MongoDB DBA · 题目 223 · 多选

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:

题目选项

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

答案置信度:中

正确答案:A、B、C、D

解析语言:中文

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

所在套题

此题在题库中有 3 条记录。公开详情合并相同题干和选项;完整公开题展示置信度最高的一条记录,其他题目仅展示摘要。按套学习保留每条记录原有的答案、解析和置信度。

作者 · 作品 · 开源

作者与 MongoDB 作品

专注数据平台、MongoDB 迁移同步与云运维产品研发。

有任何 MongoDB 需求,均可联系作者。

联系作者 ↗mlhp123@outlook.com

支持作者

如果题库对您有帮助,欢迎自愿扫码打赏。

支付宝扫码打赏作者打开打赏原图 ↗