Which mongosh command initializes a replica set on a standalone mongod instance?
Replication
Question · Easy
What does rs.add('host:27017') do in a replica set context?
What is the minimum number of voting members required in a replica set to hold an election and maintain a primary?
Question · Medium
Tech Exam Prep Podcast
Listen on Spotify
Podcast
What is the oplog in MongoDB replication?
What does rs.stepDown() do when run on the primary?
What is the purpose of an arbiter in a MongoDB replica set?
Which mongodump flag creates a backup while reading from a replica set secondary to avoid impacting the primary?
Backup And Restore
What does mongodump --oplog do when backing up a replica set?
Which command restores a database backup created with mongodump?
What is the primary advantage of using filesystem snapshots for MongoDB backup over mongodump?
What does mongostat display when monitoring a running MongoDB instance?
Monitoring And Performance
How do you kill a long-running operation in MongoDB identified by db.currentOp()?
What is the default storage engine used by MongoDB since version 3.2?
Server Administration
In the mongod.conf YAML configuration file, which section configures the replication settings including the replica set name?
Which mongodump flag creates the backup output as a single archive file instead of a directory of BSON files?
What authentication mechanism does MongoDB use by default for username/password authentication in MongoDB 4.0 and later?
Security
Which built-in MongoDB role grants read and write access to all databases except the 'local', 'config', and 'admin' system databases?
What does enabling TLS/SSL in mongod.conf with net.tls.mode: requireTLS enforce?
What is a sharded cluster in MongoDB?
Sharding
What is the role of the mongos process in a sharded cluster?
Which mongosh command enables sharding on the 'ecommerce' database?
What is the primary consideration when selecting a shard key for a collection?
What is the difference between hashed sharding and ranged sharding?
What does the balancer do in a MongoDB sharded cluster?
Which mongotop output column shows the time MongoDB spends reading data for a collection per interval?
What does db.serverStatus().connections show?
Which mongod.conf setting controls the maximum number of simultaneous incoming connections?
What does the COLLSCAN stage in an explain() output indicate?
How do you enable MongoDB's query profiler to log all queries taking longer than 100 milliseconds?
Which replica set read preference should you use for analytics queries to avoid impacting primary performance?
What does the WiredTiger cache size setting control?
What is the purpose of the 'keyFile' authentication mechanism in a replica set?
Which mongod.conf section and key enables authorization (RBAC) on a MongoDB server?
How do you create a new MongoDB user 'appuser' with readWrite access to the 'myapp' database?
What is the purpose of a delayed replica set member?
Which command shows the current sharding status of a MongoDB cluster including shard key ranges?
Which setting in mongod.conf controls where MongoDB writes its log output?
What does mongorestore --drop do before restoring data?
How do you perform a rolling upgrade of a MongoDB replica set to minimize downtime?
What does the hidden replica set member property do?
Which command exports a MongoDB collection to a JSON or CSV file?
What is the role of config servers in a MongoDB sharded cluster?
Which db.serverStatus() field shows the amount of RAM MongoDB is currently using for its WiredTiger cache?
Question · Hard
What does the mongod --bind_ip option control?
What is the purpose of the MongoDB audit log?
What does sh.shardCollection('ecommerce.orders', { customerId: 1 }) do?
Which x.509 authentication mode allows clients to authenticate to MongoDB using TLS certificates instead of username/password?
Loading more…