MongoDB MCQ Questions and Answers
Practice ModeShowing 10 of 43 questions
Q31
Which command returns quickly without impacting performance?
Answer: Option C
Explanation: `serverStatus()` shows instance health.
Q32
Which should be avoided with MongoDB deployments?
Answer: Option A
Explanation: RAID-0 lacks redundancy.
Q33
Which is important in Sharded Clusters?
Answer: Option A
Explanation: Time sync (NTP) is critical.
Q34
Which provides information on the MongoDB instance?
Answer: Option A
Explanation: `serverInfo()` gives build and system info.
Q35
Which method is used for managing users?
Answer: Option C
Explanation: `db.createUser()` adds a user.
Q36
Default authentication method in MongoDB?
Answer: Option B
Explanation: SCRAM-SHA-1 is default.
Q37
If `.mongorc.js` exists, which file will be evaluated on shell startup?
Answer: Option A
Explanation: `.mongorc.js` is auto-executed.
Q38
For which server-side operations does MongoDB support JavaScript execution?
Answer: Option D
Explanation: MongoDB allows JS in group, mapreduce, where.
Q39
Database command for mapreduce function?
Answer: Option B
Explanation: Use `mapReduce` for aggregation tasks.
Q40
Which stage cannot appear multiple times in a pipeline?
Answer: Option B
Explanation: `$out` must be the last stage.