1.

______ is used to load all the scripts saved in the system.js collection for the current database.(a) db.loadServerScripts()(b) db.loadScripts()(c) db.loadServerScriptsjs()(d) none of the mentionedThis question was addressed to me by my college professor while I was bunking the class.My doubt is from System Collections topic in division Production Checklist, Security Concepts and Network Security of MongoDB

Answer»

The correct OPTION is (a) db.loadServerScripts()

EXPLANATION: The DOCUMENTS in the system.js collection provide FUNCTIONS that your applications can use in any JAVASCRIPT context with MongoDB in this database.



Discussion

No Comment Found

Related InterviewSolutions