MongoDB's ability to handle massive datasets and high traffic is attributed to its:
Strong data consistency guarantees
Advanced indexing techniques
Horizontal scaling capabilities
Use of SQL for querying
What is the primary purpose of the MongoDB Aggregation Framework?
Defining the schema and structure of MongoDB collections.
Managing user authentication and authorization.
Processing and analyzing data to extract meaningful insights.
Performing CRUD (Create, Read, Update, Delete) operations on documents.
Which is NOT a valid index type in MongoDB?
Full Text Index
Array Index
Spatial Index
Hashed Index
What type of index would be most suitable for a field containing unique user IDs?
Multikey Index
Single Field Index
Geospatial Index
Text Index
In the context of the Python MongoDB driver (PyMongo), what does the find_one() method return?
find_one()
A single document matching the query (or None if no match)
A cursor object for iterating over matching documents
A list of all documents matching the query
The number of documents matching the query
What is the function of the $project stage in the aggregation pipeline?
$project
To reshape and transform the structure of output documents.
To sort documents in ascending or descending order.
To filter documents based on matching criteria.
To group documents based on shared values.
Which command in the MongoDB shell displays all available databases?
list databases
db.getDatabases()
show dbs
show databases
Which of the following best describes the relationship between documents and collections in MongoDB?
Documents are fields within a collection
Collections are made up of multiple documents
Documents and collections are unrelated
Collections define the structure of a document
Which data type in MongoDB ensures that all documents in a collection have a specific field?
required
mandatory
key
There is no such data type.
What is the command to download the latest stable release of MongoDB Community Edition on most Linux systems?
sudo systemctl start mongod
mongosh
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
sudo apt-get install -y mongodb-org