🚨 Production Engineering — interview questions

11 questions. Filter by what the role asks for; open one for the six layers of the answer. The course is where the answers come from.

11 of 11

01`jstat -gcutil` on a struggling service shows the old generation climbing over hours: 20%, 40%, 60%, and now full GCs are starting. A teammate says "that just means the heap is too small, bump -Xmx." How do you tell a leak from an undersized heap from this kind of trace, and why does the fix matter?Memory and OOMeasy0-2y02A heap dump's dominator tree ranks a `Map` object at the top by retained size, but its own shallow size is 48 bytes — smaller than almost everything else in the heap. A teammate is confused: "how can something that small be the leak?" Walk through what retained size means and why sorting by it, not shallow size, is what actually finds the root cause.Memory and OOMhard5-8y03`jcmd <pid> Thread.print` prints "Found one Java-level deadlock" with two threads, each shown as waiting on a lock the other holds. How does the JVM actually determine this is a deadlock rather than just two threads that happen to be blocked, and what can this detector not see?Thread problemsmedium3-5y04Two services both show requests hanging with low CPU. In the first, `jcmd <pid> Thread.print` shows every thread in a four-thread pool parked in the same stack frame calling a downstream dependency. In the second, five threads are BLOCKED on the same monitor address, one thread holds it. Are these the same problem, and does adding more threads to the pool help either one?Thread problemshard5-8y05A deploy fails with `deploy failed before the switch — removing /srv/code10x/releases/20260912-204250`, and the on-call engineer's first instinct is to roll back. Why would that be the wrong move here, and what does a good runbook do to prevent it?On-call and incidentsmedium3-5y06A service adds a 100ms timeout to a call that used to hang for two seconds under fault injection, and the chaos experiment confirms p50 latency is back to normal. A teammate says the resilience story is done. What does a bare timeout still leave unaddressed once the dependency has a sustained outage, not just a transient fault, and what does a circuit breaker add?Chaos engineering and resiliencehard5-8y07A load test shows p99 latency at 14ms at 80% utilisation and 110ms at 90% utilisation — twelve percent more traffic, eight times the tail latency. Is this evidence of something specific to this service, or would you expect the same shape in any queue? Explain why, using Little's Law.Capacity planningsenior8+y08A load test claims p99 latency of 50ms at the target throughput, using a tool that waits for each response before sending the next request. Production, at the same throughput, sees p99 latencies over a second during a brief slowdown. What's wrong with the load test's methodology?Capacity planningeasy0-2y09A team states an RPO of five minutes for their order database, but their backup mechanism is an hourly `pg_dump`, and the dump itself completes in 90 seconds. Does this mechanism actually meet a five-minute RPO, and would making the dump run faster fix the gap?Backups and disaster recoverymedium3-5y10A migration adds a nullable column — `ALTER TABLE orders ADD COLUMN gift_note text` — which should be a millisecond metadata-only change on PostgreSQL. Instead, an ordinary `SELECT ... WHERE id = ?` on the same table times out after three seconds. There's an idle transaction from a forgotten reporting query sitting open. Walk through exactly why an unrelated, lock-compatible SELECT gets stuck behind this.Deployments and migrationssenior8+y11A five-whys analysis of an incident produces a clean, single chain of five causes ending in a missing shell option. It reads as complete and convincing. What might this chain be hiding, and what test would you apply to find out?Root cause analysishard5-8y