

InterviewSolution
Saved Bookmarks
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
301. |
Which of the following also returns a list of databases?(a) show databases(b) show database(c) display dbs(d) all of the mentioned |
Answer» Correct answer is (a) show databases The best I can explain: show databases is new in version 2.4. |
|
302. |
Point out the correct statement.(a) The mongostat diagnostic tool, when running with the –mode need to be able to reach all components of a cluster(b) All shards in a cluster need to be able to communicate with all other shards to facilitate chunk and balancing operations(c) Authorization does not control or affect access to this interface(d) None of the mentioned |
Answer» The correct choice is (b) All shards in a cluster need to be able to communicate with all other shards to facilitate chunk and balancing operations The explanation is: You can also specify the shard server option with the shardsvr value for the clusterRole setting in the configuration file. Shard members are also often conventional replica sets using the default port. |
|
303. |
___________ command display the list of databases.(a) show db(b) show dbs(c) show data(d) display dbs |
Answer» Correct choice is (b) show dbs The explanation is: Show dbs print a list of all databases on the server. |
|
304. |
The mongo program can evaluate JavaScript expressions using the command line ________ option.(a) –opt(b) –js(c) –eval(d) None of the mentioned |
Answer» Right option is (c) –eval The explanation is: The mongo program can evaluate a JavaScript file (.js) passed directly to it (e.g. mongo someFile.js). |
|
305. |
Point out the correct statement.(a) MMS provides backup and monitoring(b) MongoDB can also be configured for data replication(c) MMS is available to all users in the cloud and on-premises as part of MongoDB Standard and Enterprise Subscriptions(d) All of the mentioned |
Answer» Correct option is (d) All of the mentioned To explain I would say: MongoDB is limited to a total data size of about 2GB for all databases in 32-bit mode. |
|
306. |
mongo looks for a database server listening on port 27017 on the ________ interface.(a) web(b) localhost(c) web host(d) all of the mentioned |
Answer» The correct option is (b) localhost The explanation is: To connect to a server on a different port or interface, use the –port and –host options. |
|
307. |
Point out the wrong statement.(a) MongoDB works right out of the box, and you can dive right into developing your application, instead of spending a lot of time fine-tuning obscure database configurations(b) MongoDB works hard to be very easy to install, configure, maintain, and use(c) MongoDB does not provide a lot of the features of a traditional RDBMS(d) None of the mentioned |
Answer» The correct option is (c) MongoDB does not provide a lot of the features of a traditional RDBMS To explain: MongoDB focuses on flexibility, power, speed, and ease of use. |
|
308. |
After starting the mongo shell, your session will use the ________ database by default.(a) mongo(b) master(c) test(d) primary |
Answer» Correct answer is (c) test To elaborate: At any time, db operation at the mongo shell is used to report the name of the current database. |
|
309. |
On Windows systems _________ command line interface provides access to the underlying Windows Firewall.(a) netsh(b) netstat(c) netln(d) SelectIndexes |
Answer» Correct choice is (a) netsh To elaborate: To minimize overall exposure, ensure that only traffic from trusted sources can reach mongod and mongos instances and that the mongod and mongos instances can only connect to trusted outputs. |
|