What is the BSON data type for storing an array of values in MongoDB?
object
list
array
set
How do you verify that the MongoDB server has started successfully?
Check the log file for messages indicating successful startup
Use the systemctl status mongod command to view the service's status
All of the above
Try to connect to the MongoDB server using the mongo shell
What is the primary purpose of indexing in MongoDB?
To store data in a sorted order for faster retrieval
To compress data and reduce storage space
To enforce data integrity and prevent duplicates
To enable full-text search capabilities
What is the command to list all databases in a MongoDB instance?
all databases
show databases
list databases
display databases
Which data type in MongoDB is used to store decimal numbers?
numberDecimal
int
double
decimal
In MongoDB, data is stored in BSON format. What does BSON stand for?
Binary Structured Object Notation
Balanced Schema Object Notation
Basic Serialized Object Notation
Binary System Object Notation
In a MongoDB cluster, which component acts as a query router and distributes requests to the appropriate shards?
Config Server
Mongos
Replica Set
Primary Node
What is the role of the MongoClient object in a MongoDB Node.js application?
MongoClient
To execute queries against the database
To create and manage user accounts
To define the database schema
To establish a connection to the MongoDB server
Which update operator replaces the value of a field with a specified value?
$inc
$push
$rename
$set
Which of the following is NOT a key consideration when designing a schema in MongoDB?
Document size and growth potential
Query patterns and performance requirements
Data relationships and access patterns
Data normalization to eliminate redundancy