A team wants to run PostgreSQL inside Kubernetes instead of RDS. What do you tell them?

IntermediateScenarioData and databases
Answer

Situation read → It's possible and done in production, but it moves backups, failover, upgrades and storage operations onto your team.

What I'd do →

  1. Ask why: cost, portability across clouds, or needing extensions RDS doesn't support.
  2. If yes, use a mature operator (CloudNativePG or Crunchy PGO), never a hand-written StatefulSet. It handles replication, failover, backups to S3 and PITR.
  3. Requirements: dedicated nodes, PDBs, anti-affinity across AZs, gp3 volumes with enough IOPS, and tested restores.
  4. Compare honestly: RDS costs more per hour but includes patching, Multi-AZ, PITR and support. Count the engineering hours too.
  5. My default: managed database for core production data, Kubernetes Postgres for dev, preview environments, or where portability is a real requirement.

Why → The database is where mistakes are least reversible, so pay for operations unless there's a strong reason not to.

Interview tip → Give a balanced answer with conditions; "never" and "always" both sound junior.

All Real-World Interview questions Roadmap: Interview readiness

More on Data and databases