MongoDB DBA · Question 506 · Single choice

23. What is the compression algorithm used to store indexes in MongoDB? Choose the best answer:

Answer options

  1. A.
    prefix
  2. B.
    gzip
  3. C.
    snappy
  4. D.
    bson
  5. E.
    zlib

Answer confidence: High

Correct answer: A

Explanation language: Chinese

MongoDB 对索引键使用前缀压缩(prefix compression)来减小索引页体积(A)。snappy、zlib、gzip 是 WiredTiger 存储引擎对集合数据(文档)可选的压缩算法,bson 是数据存储格式而不是压缩算法,因此 B 至 E 都不对。

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 ↗