1.

Point out the wrong statement.(a) sort() modifier sorts the results by age in ascending order(b) Queries in MongoDB return all fields in all matching documents by default(c) To scale the amount of data that MongoDB sends to applications, include a projection in the queries.(d) None of the mentionedThis question was posed to me during an online interview.The doubt is from Read Operations in section MongoDB CRUD Concepts and Operation of MongoDB

Answer»

Right choice is (c) To scale the amount of data that MONGODB SENDS to applications, include a projection in the queries.

For explanation: By PROJECTING results with a SUBSET of fields, applications reduce their NETWORK overhead and processing requirements.



Discussion

No Comment Found

Related InterviewSolutions