MongoDB Certified DBA Associate (C100DBA) — Question 4
Which two currentOp commands return information on all operations, including operations on idle connections and system operations? (Choose two.)
Answer options
- A. db.currentOp({“$all”: true})
- B. db.currentOp(true)
- C. db.currentOp({“$includeIdle”: true})
- D. db.currentOp.showAllOps()
Correct answer: A, B
Explanation
The correct answers, A and B, both return comprehensive information about all operations, including those on idle connections. Option C only includes idle operations but does not cover all operations, while option D does not provide the same level of detail as the correct answers.