MongoDB Exam Questions / Learn / Paper 3 / Question 144 MongoDB DBA · Question 144 · Single choice
28. Which of the following applies to the localhost exception?
Choose the best answer: Answer options A. You need to use the default mongod password to create the first user on the mongod.
B. You can bypass authorization any time you connect to MongoDB via localhost
C. You can only create the first user prior to enabling authentication.
D. You can create the first user via localhost after enabling authorization but prior to any other user being created.
E. After turning on authentication, but prior to enabling authorization, you may create a user.
Answer confidence: High
Correct answer: D Explanation language: Chinese localhost exception 的准确定义是:已启用 authorization 但集群中还没有任何用户时,可以只从本机(localhost)连接创建第一个用户(通常是 admin 库的管理员)。它不是随时可用的授权后门(B 错),不需要什么默认密码(C 错),也不要求在开启认证之前创建(D 错)。
Start learning
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.
Questions come from this project's existing bank. Answers and Chinese explanations are AI-generated. Data checks cover field formats, answer-to-option mapping, and answer consistency across duplicate questions. Confidence is not official endorsement or a correctness guarantee. Check the MongoDB documentation for your version.
Independent study resource; not affiliated with MongoDB. MongoDB documentation