What value for the index specification sorts in descending order?
-1
null
1
0
Which scenario suggests using a reference over embedding in MongoDB?
Representing a many-to-many relationship, like students and courses
Fetching order details along with customer information
Retrieving comments for a specific blog post
Accessing a user's profile data when they log in
Which of the following is NOT a key consideration when designing a schema in MongoDB?
Data normalization to eliminate redundancy
Data relationships and access patterns
Document size and growth potential
Query patterns and performance requirements
Which data type in MongoDB is used to store decimal numbers?
int
double
numberDecimal
decimal
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 function of the $project stage in the aggregation pipeline?
$project
To filter documents based on matching criteria.
To reshape and transform the structure of output documents.
To group documents based on shared values.
To sort documents in ascending or descending order.
MongoDB's ability to handle massive datasets and high traffic is attributed to its:
Strong data consistency guarantees
Horizontal scaling capabilities
Advanced indexing techniques
Use of SQL for querying
In the context of the Python MongoDB driver (PyMongo), what does the find_one() method return?
find_one()
A list of all documents matching the query
The number of documents matching the query
A single document matching the query (or None if no match)
A cursor object for iterating over matching documents
What is the command to download the latest stable release of MongoDB Community Edition on most Linux systems?
sudo systemctl start mongod
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
mongosh
sudo apt-get install -y mongodb-org
What is the BSON data type for storing an array of values in MongoDB?
array
set
list
object