As asked
You are building the data layer for a new SaaS product before you have a single paying user. How do you choose between PostgreSQL, a document store like MongoDB, and a hosted service like PlanetScale or Supabase? What signals make you revisit that choice six months later?
Sample answer outline
Strong answers prioritize operational simplicity and schema flexibility in early stages, default to Postgres for relational integrity, and treat hosted services as DX wins until team has ops maturity. Candidate should name concrete revisit triggers: read replica need, JSONB abuse, join query pain, or multi-region latency.
Expect these follow-ups
- You chose Postgres and six months in every feature is adding nullable columns to avoid migrations. What do you do?
- How do you handle database migrations safely when you are deploying multiple times a day with one engineer?