Challenge - 5 Problems
WiredTiger Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
WiredTiger Cache Size Calculation
If a MongoDB instance uses the WiredTiger storage engine on a server with 16 GB of RAM, what is the default WiredTiger cache size allocated by MongoDB?
Attempts:
2 left
💡 Hint
MongoDB reserves some RAM for the OS and other processes, so WiredTiger cache is less than total RAM.
✗ Incorrect
By default, WiredTiger cache size is set to 50% of (RAM - 1 GB) to leave memory for the OS and other MongoDB processes.
❓ query_result
intermediate2:00remaining
WiredTiger Cache Usage Query Result
What is the output of this MongoDB command showing WiredTiger cache statistics?
db.serverStatus().wiredTiger.cache
MongoDB
db.serverStatus().wiredTiger.cache
Attempts:
2 left
💡 Hint
Look for cache size and bytes info in the WiredTiger cache stats.
✗ Incorrect
The wiredTiger.cache object contains memory usage stats like bytes currently in cache and max bytes configured.
📝 Syntax
advanced2:00remaining
Correct WiredTiger Cache Size Configuration Syntax
Which of the following is the correct way to set WiredTiger cache size to 2 GB in the MongoDB configuration file (mongod.conf)?
Attempts:
2 left
💡 Hint
Check the correct nesting of keys under storage and wiredTiger.
✗ Incorrect
The cacheSizeGB setting must be under storage.wiredTiger.engineConfig in mongod.conf.
❓ optimization
advanced2:00remaining
Improving WiredTiger Write Performance
Which WiredTiger configuration option can improve write performance by reducing fsync frequency, but increases risk of data loss on crash?
Attempts:
2 left
💡 Hint
Look for an option that controls how often data is flushed to disk.
✗ Incorrect
syncPeriodSecs controls how often WiredTiger fsyncs data to disk; increasing it reduces disk writes but risks data loss.
🔧 Debug
expert3:00remaining
Diagnosing WiredTiger Cache Pressure Issue
A MongoDB server using WiredTiger shows frequent cache pressure warnings and slow queries. Which of the following is the most likely cause?
Attempts:
2 left
💡 Hint
Cache pressure warnings relate to memory usage and cache eviction.
✗ Incorrect
If WiredTiger cache is too small, it cannot hold the working set, causing cache pressure and slow queries.