MongoDB DBA · Question 444 · Multiple choice

19. Consider the following document from the system.profile collection: { "op": "insert", "ns": "products.toys", "command": { "insert": "toys", "ordered": true, "$db": "products" }, "ninserted": 20, "keysInserted": 40, "millis" : 2, ... } This document describes a single operation that was captured by a profiler with level 1. Which of the following must be true? Check all that apply:

Answer options

  1. A.
    The toys collection has been sharded.
  2. B.
    There were 20 documents inserted by this operation.
  3. C.
    The slowms value was changed from the default.

Answer confidence: High

Correct answer: B, C

Explanation language: Chinese

ninserted: 20 直接说明这条操作插入了 20 个文档(C);profiling level 1 只记录慢于 slowms 的操作,默认 slowms=100ms,而这条只用了 2ms 却被记录,说明 slowms 已被改小(A)。keysInserted: 40 只是写入的索引键条数,与集合是否分片无关(B 错)。

Papers containing this question

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