Interview Prep/Real-World Interview/Multi-env and multi-account

A developer asks for direct write access to the production database to debug an issue. What do you do?

BeginnerScenarioMulti-env and multi-account
Answer

Situation read → The need (debugging) is real; standing write access isn't the right way to meet it.

What I'd do →

  1. Ask what they need to see. Often a read replica, logs or a masked staging copy is enough.
  2. For read access: a read-only DB role, time-limited, granted through an approval flow (for example IAM database auth with a temporary role, or a tool like Teleport or StrongDM that records sessions).
  3. For a data fix: a reviewed SQL script run by a pipeline or a second person, with a backup or PITR point noted first.
  4. Log every session and review break-glass access weekly.

Why → Time-limited, recorded access meets the need without leaving a permanent hole.

Interview tip → Answer with "yes, and here's the safe path", not just "no"; it shows you enable teams.

All Real-World Interview questions Roadmap: Interview readiness

More on Multi-env and multi-account