SpinTheMic
Pro

Interview practice question

Database CPU is at 100 percent

Backend Engineering · Production Debugging · Intermediate

Your primary database's CPU is pegged at 100 percent, and the whole application is slow. What do you do?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Identify top queries now (pg_stat_activity, statements).
  • Kill runaway queries if safe.
  • Check recent deploys/new query patterns.
  • Add missing index, reduce load (cache, rate limit).
  • Move reads to replicas.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics