MongoDB DBA · Question 314 · Multiple choice

33. The following command line options were used to start a mongod process: mongod --dbpath data/db --auditDestination file \ --auditFilter '{ atype: { $in: [ "createCollection", "dropCollection" ] } }' \ --auditFormat JSON --auditPath data/db/auditLog.json Which of the following files will contain audit events from this mongod process? Check all that apply:

Answer options

  1. A.
    config.yaml
  2. B.
    mongod.log
  3. C.
    auditLog.json

Answer confidence: Medium

Correct answer: C

Explanation language: Chinese

命令里 --auditDestination file 且 --auditPath data/db/auditLog.json,审计事件就只会写到该路径指定的文件,即 auditLog.json。mongod.log 是服务端自身的运行日志(本例连 --logpath 都没配,日志只会输出到终端),只有 auditDestination 取 console/syslog 时审计消息才会随之进入系统日志;config.yaml 是配置文件,不会接收任何审计事件。

Papers containing this question

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