MongoDB DBA · Question 383 · Multiple choice

Which of the following mongod command line arguments will impact how data and indexes are stored in the filesystem? Check all that apply:

Answer options

  1. A.
    --wiredTigerDirectoryForIndexes
  2. B.
    --wiredTigerCacheSizeGB
  3. C.
    --directoryperdb

Answer confidence: High

Correct answer: A, C

Explanation language: Chinese

--wiredTigerDirectoryForIndexes 让索引与集合数据分目录存放,--directoryperdb 让每个数据库各占一个目录,二者都改变数据/索引在文件系统上的落盘布局。--wiredTigerCacheSizeGB 只决定 WiredTiger 缓存占用多少内存,不影响存储位置。

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 ↗