Over a day of running, a Python worker grows in memory from two hundred megabytes to three gigabytes. How would you track down the leak?
~4 min by voice
How to approach it
This checks whether you understand how CPython manages memory, can systematically localize a leak with tools (tracemalloc, objgraph, memray), can tell a real leak from allocator behavior, and know how to fix the cause and temporarily mitigate the consequences.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.