MongoDB

MongoDB

Getting Started with MongoDB has 20 Questions

__________ is a part of the standard MongoDB distribution and provides a full JavaScript environmet

mongod
mongodb
mongo
None of the mentioned
Point out the correct statement:

MMS provides backup and monitoring
MongoDB can also be configured for data replication
MMS is available to all users in the cloud and on-premises as part of MongoDB Standard and Enterprise Subscriptions
All of the mentioned
mongo looks for a database server listening on port 27017 on the ________ interface.

web
localhost
web host
All of the mentioned
Which of the following method is used to query documents in collections ?

find
move
shell
replace
Command to check existence of collection is:

show collection
show collections
show collect
None of the mentioned
Which of the following also returns a list of databases ?

show databases
show database
display dbs
All of the mentioned
Which of the following operation is used to switch to new database mydb ?

use dbs
use db
use mydb
use mydbs
___________ command display the list of database.

show db
show dbs
show data
display dbs
Point out the wrong statement:

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
MongoDB works hard to be very easy to install, configure, maintain, and use
MongoDB does not provide a lot of the features of a traditional RDBMS
None of the mentioned
After starting the mongo shell, your session will use the ________ database by default.

mongo
master
test
primary
When you query a collection, MongoDB returns a ________ object that contains the results of the query

row
cursor
colums
None of the mentioned
Point out the correct statement:

A database is a set of key-value pairs
A MongoDB deployment hosts a number of databases
A document holds a set of collections
All of the mentioned
Which of the following method returns true if the cursor has documents ?

hasMethod()
hasNext()
hasDoc()
All of the mentioned
____________ method renders the document in a JSON-like format.

displayjson
print
printjson
printdoc
Point out the wrong statement:

Documents have static schema in MongoDB
Eventually-consistent reads can be distributed over replicated servers
Indexes can include keys from embedded documents and arrays.
None of the mentioned
Which of the following method is called while accessing documents using the array index notation ?

cur.toArray()
cursor.toArray()
doc.toArray()
All of the mentioned
The mongo shell and the drivers provide several cursor methods that call on the cursor returned by the _______ method to modify its behavion ?

cursor()
find()
findc()
None of the mentioned
Which of the following method corresponds to Order by clause in SQL ?

sort()
order()
orderby()
All of the mentioned
The __________ method limits the number of documents in the result set

limit()
limitOf()
limitBy()
None of the mentioned
Which of the following line skips the first 5 documents in the bios collection and returns all remaining documents ?

db.bios.find().limit( 5 )
db.bios.find().skip( 1 )
db.bios.find().skip( 5 )
db.bios.find().sort( 5 )