Practice the vocabulary of merging on-disk segments to keep a log-structured merge-tree's reads fast.
0 / 5 completed
1 / 5
At standup, a dev mentions a background process that merges and rewrites sorted on-disk segments in a log-structured merge-tree, reclaiming space from an overwritten or deleted key. What is this process called?
LSM-tree compaction is a background process that merges and rewrites sorted on-disk segments, reclaiming space from an overwritten or deleted key and keeping the number of segments a read has to check bounded. Appending every new write as a brand-new segment forever, with no merging, would let stale, overwritten data accumulate indefinitely on disk. This compaction is what keeps a log-structured merge-tree's storage usage and read performance sustainable over time.
2 / 5
During a design review, the team accepts that compaction rewrites the same data to disk multiple times over its lifetime, in exchange for keeping a read fast. Which tradeoff does this represent?
Write amplification traded for bounded read latency describes how compaction rewrites the same underlying data to disk multiple times over its lifetime, in exchange for keeping the number of segments a read must check under control. A system with zero write amplification would mean no compaction ever ran, letting an unbounded number of segments accumulate and slow reads down over time. This tradeoff is a deliberate, well-understood design choice at the core of how an LSM-tree balances write and read performance.
3 / 5
In a code review, a dev notices the team chose a leveled compaction strategy over a size-tiered one, accepting more write amplification in exchange for lower space amplification and more predictable read latency. What does this represent?
A compaction strategy choice, like leveled versus size-tiered, trades write amplification differently against read and space amplification, since each strategy organizes and merges on-disk segments in a structurally different way. Assuming there's a single universal strategy with no tradeoff ignores that a real system has to pick the balance that best fits its actual read-versus-write workload. This strategy choice is a meaningful, workload-specific tuning decision for any system built on an LSM-tree.
4 / 5
An incident report shows read latency degraded significantly under heavy write load because compaction had fallen behind, letting a large number of small on-disk segments accumulate that every read had to check individually. What practice would prevent this?
Ensuring compaction keeps pace with the write rate bounds the number of on-disk segments a read has to check, keeping read latency predictable even under sustained write pressure. Letting compaction fall arbitrarily behind lets segments accumulate without bound, exactly as this incident describes, directly hurting read performance. This is why monitoring and provisioning enough resources for compaction to keep pace is essential to an LSM-tree-based system's health.
5 / 5
During a PR review, a teammate asks why the team accepts the extra write cost of ongoing compaction instead of simply appending every write as a new segment forever with no merging. What is the reasoning?
Appending every write as a new segment forever, with no compaction, lets the number of segments a read must check grow unbounded as the system accumulates writes over time. Compaction bounds that number at the cost of rewriting the same data to disk multiple times over its lifetime. The tradeoff is real, ongoing write amplification, which is why choosing an appropriate compaction strategy for the workload matters so much.
What does the "LSM-Tree Compaction Vocabulary" vocabulary exercise cover?
This exercise tests real IT vocabulary related to lsm-tree compaction vocabulary through 5 multiple-choice questions, each built from realistic workplace sentences rather than abstract definitions.
Is this vocabulary exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is completely free — no account, sign-up, or payment required.
How many questions does this exercise have?
This exercise has 5 questions. Each one shows a real-world sentence or scenario with multiple-choice options and an explanation once you answer.
What happens after I answer a question?
You'll see immediate feedback showing whether your answer was correct, along with a short explanation of why — then a button to move to the next question, and a full results screen at the end.
Can I retry the exercise if I get questions wrong?
Yes. Once you reach the results screen, click "Try again" to reset your answers and go through the exercise from the start as many times as you like.
Do I need to create an account to take this exercise?
No account is needed. Your answers are scored in your browser during the session — nothing is saved to a server, so you can jump straight in.
Is my progress saved if I leave the page?
No — progress within an exercise resets if you navigate away or reload. Each exercise is short enough to complete in a few minutes in one sitting.
Are these vocabulary exercises connected to other topics?
Yes — browse the full vocabulary exercises hub to find related modules covering adjacent IT topics and roles.
How is this different from reading a glossary or blog article?
Exercises like this one are active recall drills — you have to choose the correct term or phrasing yourself, which builds retention faster than passively reading a definition.
Where can I find more vocabulary exercises?
Browse the full Vocabulary exercises hub for hundreds of modules covering Agile, DevOps, security, databases, architecture, and more — organised by IT role and skill.