MongoDB DBA · 题目 314 · 多选

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:

题目选项

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

答案置信度:中

正确答案:C

解析语言:中文

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

所在套题

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

作者 · 作品 · 开源

作者与 MongoDB 作品

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

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

联系作者 ↗mlhp123@outlook.com

支持作者

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

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