Which write concern level ensures that a write operation is durable even if the primary node fails?
w: all
w: majority
w: 0
w: 1
Which sharding strategy allows for geographically distributing data to optimize for local user access?
Random sharding
Ranged sharding
Zone sharding
Hashed sharding
What is the role of SSL/TLS in securing MongoDB deployments?
Encrypting communication between MongoDB clients and servers
Providing a mechanism for user authentication
Auditing and logging database access
Encrypting data at rest within the database files
Which of the following is NOT a built-in authentication mechanism in MongoDB?
API Key Authentication
SCRAM-SHA-1
LDAP
x.509 Certificate Authentication
In the context of MongoDB Internals, what does 'Journaling' primarily ensure?
Authorization and access control for database users
Data compression for efficient storage
Real-time data replication across nodes
Data durability and recovery in case of failures
What is the purpose of 'write concern' in MongoDB?
To manage data compression for write operations.
To specify the level of security for write operations.
To limit the number of writes per second.
To control how many nodes must acknowledge a write operation.
When is it generally MORE advantageous to use referencing over embedding in MongoDB?
When you need to enforce data integrity with constraints
When the related data is quite large or might grow significantly
When the related data is frequently accessed together
When the embedded data is expected to change infrequently
Which stage allows for conditional execution of pipeline stages in MongoDB's aggregation framework?
$cond
$case
$switch
$ifNull
Which component in a sharded cluster is responsible for routing read and write operations to the appropriate shards?
Mongos router
Replica set
Shard server
Config server
What role does an arbiter node play in a MongoDB replica set?
It stores a copy of the data for redundancy.
It participates in elections but doesn't store data.
It manages backups and restores for the replica set.
It processes read and write operations like other nodes.