1.

Point out the wrong statement.(a) The MongoDB Wire Protocol is a simple socket-based, request-response style protocol(b) For queries that include a sort operation without an index, the server must load all the documents in memory to perform the sort before returning any results(c) Clients communicate with the database server through a regular TCP/IP socket(d) All of the mentionedThe question was asked in an interview.The query is from Read Operations topic in section MongoDB CRUD Concepts and Operation of MongoDB

Answer»

The correct answer is (d) All of the mentioned

Easiest explanation: As you iterate through the cursor and reach the END of the RETURNED batch, if there are more RESULTS, cursor.next() will perform a getmore operation to RETRIEVE the next batch.



Discussion

No Comment Found

Related InterviewSolutions