← Questions

Memory usage switcher with configurable thresholds

0
AmazonOO designLast asked Sep 2025

Design and code an in-memory switcher that watches memory usage and switches between states (or targets) when usage crosses thresholds the caller can configure. Cover how thresholds are set and changed, avoiding rapid flapping near a threshold, and how you would test it.

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing