Loading lesson…
Level 1 · Apprentice0 XP
One product, many customers: isolation models, noisy neighbours and per-tenant data.
Step 1 / 6
ProblemA query forgot WHERE tenant_id = ?. For ten minutes, one customer could see another's data. It became a security incident and a lost contract.
← → step
Before this: Serverless architecture
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Add a tenant_id to two tables in a PostgreSQL database, enable row-level security, and write an automated test that proves tenant A can never read tenant B's rows, even with a query that forgets the WHERE clause.