![]() |
VOOZH | about |
Question 1
What does ACID stand for in MongoDB transactions?
Atomicity, Consistency, Isolation, Durability
Aggregation, Clustering, Indexing, Durability
Authentication, Consistency, Integrity, Data Model
Atomicity, Caching, Isolation, Database
Question 2
Which MongoDB feature allows performing multi-document transactions?
Replica Sets
Aggregation Framework
Sharding
Transactions
Question 3
When should you use embedded documents instead of references in MongoDB?
When related data is frequently accessed together
When data needs to be normalized
When you have many-to-many relationships
When foreign key constraints are required
Question 4
What is the primary purpose of MongoDB replication?
To speed up aggregation queries
To distribute data across multiple shards
To provide high availability and data redundancy
To enforce schema validation
Question 5
What is a primary node in a MongoDB replica set?
A node responsible for backup operations
The node that handles all write operations
A secondary node used only for reads
A configuration node for routing queries
Question 6
What is the function of a shard key in MongoDB?
It uniquely identifies documents in a collection
It determines how data is distributed across shards
It indexes documents for fast retrieval
It compresses data for efficient storage
Question 7
What is the difference between Ranged Sharding and Hashed Sharding?
Ranged sharding distributes data evenly, while hashed sharding clusters similar values
Ranged sharding is used for unstructured data, while hashed sharding is used for numeric data
Ranged sharding stores values in an increasing order, while hashed sharding distributes them randomly
Ranged sharding uses a round-robin approach, while hashed sharding sorts data in memory
Question 8
How can you enable authentication in MongoDB?
By setting "auth": true in the MongoDB configuration file
By using the $auth command in the shell
By enabling read-only mode for users
By granting dbAdmin privileges to all users
Question 9
What does Role-Based Access Control (RBAC) do in MongoDB?
Allows users to create custom indexes
Grants different access levels based on assigned roles
Encrypts all database operations
Prevents query execution unless manually approved
Question 10
What is the best practice to secure MongoDB against unauthorized access?
Run MongoDB on the default 0.0.0.0 IP address
Disable authentication for all users
Enable TLS/SSL encryption and restrict network access
Store passwords in plaintext for easy recovery
There are 10 questions to complete.