Code RoomDatabase CPU maxed
MediumPrep Room Coding #3012

Database CPU maxed

On-callReliability & on-callMid–Senior~20 min

The primary database is pinned at 100% CPU and queries are timing out, taking the app down with it. You could hunt for the offending query, or act now. What do you do?

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 20 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.