MongoDB DBA · Question 167 · Multiple choice

51. Which of the following is true when using sh.stopBalancer()? Check all that apply:

Answer options

  1. A.
    The balancer will wait for the current balancing round to complete before stopping.
  2. B.
    The command sh.setBalancerState(true) will start the balancer.
  3. C.
    You can specify a timeout when issuing sh.stopBalancer(timeout).

Answer confidence: Medium

Correct answer: A, B

Explanation language: Chinese

sh.stopBalancer() 会等当前这一轮均衡结束后再停掉均衡器(A);要重新启动均衡器可用 sh.startBalancer() 或等价的 sh.setBalancerState(true)(B)。C 错:经典版本的 sh.stopBalancer() 不接受 timeout 参数,考试中它是干扰项。

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 ↗