1.

The __________ method returns a document that includes a metrics field.(a) db.serverStats()(b) db.serverStatus()(c) db.status()(d) all of the mentionedI have been asked this question by my college professor while I was bunking the class.My question is from Read Operations topic in portion MongoDB CRUD Concepts and Operation of MongoDB

Answer»

Right ANSWER is (b) db.serverStatus()

EXPLANATION: The metrics field contains a cursor with NUMBER of timed out cursors since the last SERVER restart.



Discussion

No Comment Found

Related InterviewSolutions