0
0
MongoDBquery~5 mins

Memory and storage engine basics (WiredTiger) in MongoDB - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the WiredTiger storage engine in MongoDB?
WiredTiger is the default storage engine in MongoDB that manages how data is stored on disk and cached in memory. It uses compression and supports document-level concurrency control for better performance.
Click to reveal answer
beginner
How does WiredTiger use memory for caching?
WiredTiger uses a cache in RAM to store frequently accessed data and indexes. This cache speeds up read and write operations by reducing disk access.
Click to reveal answer
intermediate
What is document-level locking in WiredTiger?
Document-level locking means WiredTiger locks only the specific document being changed, not the whole collection. This allows many operations to happen at the same time without waiting.
Click to reveal answer
intermediate
Why does WiredTiger use compression for data storage?
WiredTiger compresses data to save disk space and reduce the amount of data read from or written to disk, which improves speed and efficiency.
Click to reveal answer
advanced
What happens if the WiredTiger cache is full?
When the cache is full, WiredTiger writes dirty data (changes) to disk to free up space. This process is called checkpointing and helps keep data safe and memory available.
Click to reveal answer
What is the default storage engine in MongoDB?
ARocksDB
BMMAPv1
CInMemory
DWiredTiger
What type of locking does WiredTiger use to improve concurrency?
ADocument-level locking
BDatabase-level locking
CCollection-level locking
DNo locking
Why does WiredTiger use compression?
ATo reduce disk space and improve speed
BTo increase disk space usage
CTo slow down data access
DTo encrypt data
What does WiredTiger do when its cache is full?
ADeletes old data
BWrites dirty data to disk (checkpointing)
CStops accepting writes
DIncreases cache size automatically
What is stored in the WiredTiger cache?
AOnly indexes
BOnly data
CFrequently accessed data and indexes
DBackup files
Explain how WiredTiger manages memory and storage to improve MongoDB performance.
Think about caching, locking, compression, and writing data safely.
You got /4 concepts.
    Describe the benefits of document-level locking in WiredTiger.
    Compare locking at document level vs collection level.
    You got /3 concepts.