What is the command to list all databases in a MongoDB instance?
list databases
display databases
all databases
show databases
Which of these is NOT a valid BSON data type?
character
boolean
float
string
When creating a single field index, what value indicates ascending sort order?
-1
ASC
1
DESC
What is the default data directory for MongoDB?
/var/lib/mongodb
/log/mongodb.log
/etc/mongodb.conf
/bin/mongod
Referencing in MongoDB involves:
Defining a strict one-to-one relationship between documents
Merging multiple documents into a single entity
Storing a copy of the related data within the main document
Creating a link (usually an ObjectId) to the related document in another collection
Which update operator replaces the value of a field with a specified value?
$inc
$set
$rename
$push
What is the primary component of MongoDB's architecture responsible for data storage?
Shard
Config Server
Mongos
Router
Which data type in MongoDB ensures that all documents in a collection have a specific field?
key
There is no such data type.
mandatory
required
In a MongoDB cluster, which component acts as a query router and distributes requests to the appropriate shards?
Primary Node
Replica Set
What Java class is commonly used with the MongoDB Java driver to interact with MongoDB collections?
MongoCursor
MongoClient
MongoDatabase
MongoCollection