Choosing an inappropriate shard key can lead to which of the following issues?
Simplified data backup processes
Improved data security
Decreased storage requirements
Reduced query performance
What is the significance of regularly rotating encryption keys used with MongoDB?
It prevents data corruption within the database.
It mitigates the impact of a potential key compromise.
It enables faster data recovery after a server failure.
It improves query performance by reducing index size.
When is it generally MORE advantageous to use referencing over embedding in MongoDB?
When the related data is frequently accessed together
When the related data is quite large or might grow significantly
When you need to enforce data integrity with constraints
When the embedded data is expected to change infrequently
What is the minimum number of nodes required to set up a MongoDB replica set?
2
3
1
7
What is the purpose of using the 'sparse' option when creating an index in MongoDB?
To create a case-insensitive index for text search.
To limit the index to only documents containing the indexed field.
To distribute the index data across multiple shards.
To compress the index data for reduced storage space.
In MongoDB aggregation, what does the $unwind stage do?
Merges multiple documents into one
Groups documents by a specific field
Deconstructs an array field into separate documents
Sorts documents in ascending order
Which of the following MongoDB concepts is MOST closely related to the 'A' in ACID properties within the context of transactions?
Authorization
Atomicity
Authentication
Aggregation
Which of the following is a recommended practice when using transactions in MongoDB?
Including as many operations as possible within a single transaction to simplify code logic.
Avoiding the use of indexes within transactions as they can negatively impact performance.
Keeping transactions short-lived and focused to minimize locking overhead and potential for conflicts.
Keeping transactions as long-running as possible to maximize the number of operations covered.
What is the primary advantage of using a compound index in MongoDB?
Improved performance for text search queries.
Faster retrieval of documents matching multiple fields.
Simplified management of index structures.
Reduced memory consumption for storing index data.
Which of these practices helps protect against brute-force password attacks on MongoDB?
Implementing rate limiting on database read operations
Enabling access control and configuring strong password policies
Regularly backing up database files
Using a firewall to restrict network access to the MongoDB server