logLevel is a MongoDB server parameter, and server parameters are retrieved through the administrative getParameter database command. The documented and unambiguous mongosh form is db.adminCommand({ getParameter: 1, logLevel: 1 }), which executes the command against the admin database and requests the current value of logLevel. The first numeric value activates the command, while the logLevel field identifies the parameter to return. Options B and C refer to a db.getParameter() helper that is not the documented interface. Option A uses db.runCommand() without explicitly switching to the admin database. Because getParameter is an administrative command, db.adminCommand() is the correct and reliable form among the choices. Administrators use server parameters to inspect and, where supported, tune aspects of mongod or mongos behavior. logLevel controls global diagnostic verbosity, while component-specific verbosity can be managed through the logging configuration. For this question, option D precisely matches the expected administrative syntax. Checking the current value before changing logging settings is also a sound operational practice during troubleshooting.
Study Guide reference/topic:Performance Monitoring and Tuning - runtime server parameters, logging configuration, and getParameter.
===========
C100DBA PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 70% Discount on All Products,
Use Coupon: "coponace"