Which of these practices helps protect against brute-force password attacks on MongoDB?
Regularly backing up database files
Using a firewall to restrict network access to the MongoDB server
Enabling access control and configuring strong password policies
Implementing rate limiting on database read operations
In the context of MongoDB Internals, what does 'Journaling' primarily ensure?
Authorization and access control for database users
Data durability and recovery in case of failures
Data compression for efficient storage
Real-time data replication across nodes
What is the minimum number of config servers required for a production-ready sharded cluster in MongoDB?
5
1
2
3
Why is it crucial to keep your MongoDB server and client drivers up-to-date?
To ensure backward compatibility with older versions of MongoDB.
To patch known security vulnerabilities that could be exploited by attackers.
To benefit from new features and performance improvements.
To reduce storage costs by using more efficient data compression algorithms.
Which operator within the $lookup stage specifies the field in the 'joined' collection that should match the 'localField'?
foreignField
from
localField
as
What happens during a failover event in a MongoDB replica set?
A new primary node is elected from the available secondaries.
All read and write operations are halted indefinitely.
Data is automatically restored from backups.
The primary node automatically recovers.
Which of the following is NOT a built-in authentication mechanism in MongoDB?
SCRAM-SHA-1
LDAP
x.509 Certificate Authentication
API Key Authentication
What happens to a multi-document transaction in MongoDB if one of the operations within the transaction fails?
The transaction enters a paused state, allowing the user to manually resolve the error before resuming.
The transaction partially succeeds, applying only the successful operations.
The transaction continues, ignoring the failed operation and proceeding with the rest.
The entire transaction is rolled back, ensuring atomicity and data consistency.
Which geospatial query operator in MongoDB finds documents within a specific radius?
$near
$nearSphere
$geoWithin
$geoIntersects
What is the significance of regularly rotating encryption keys used with MongoDB?
It improves query performance by reducing index size.
It prevents data corruption within the database.
It enables faster data recovery after a server failure.
It mitigates the impact of a potential key compromise.