Complete the code to check the current storage engine in MongoDB.
db.serverStatus().storageEngine.[1]The name field shows the current storage engine used by MongoDB, such as WiredTiger.
Complete the command to enable the WiredTiger cache size to 2GB in the MongoDB configuration file.
storage:
wiredTiger:
engineConfig:
cacheSizeGB: [1]Setting cacheSizeGB to 2 allocates 2 gigabytes of RAM for WiredTiger's cache.
Fix the error in the command to check WiredTiger statistics.
db.serverStatus().wiredTiger.[1]The stats field contains detailed WiredTiger statistics like cache usage and page reads.
Fill both blanks to create a command that lists all collections using WiredTiger storage engine.
db.getCollectionInfos({storageEngine: [1]: [2])The name field inside storageEngine is matched against wiredTiger to filter collections using that engine.
Fill all three blanks to create a command that sets the WiredTiger journal commit interval to 100 milliseconds.
db.adminCommand({setParameter: 1, [1]: [2], [3]: 100})The wiredTigerEngineRuntimeConfig parameter accepts a string with runtime settings. Setting "commitIntervalMs" to journalCommitInterval of 100 sets the journal commit interval to 100 milliseconds.