Code Room
Vibe codingHardvc-g077
Subject Ai tool orchestrationLevel Senior–Staff~22 minCommon in Algorithms & data structures interviewsIndustries Software development, Technology

Question

You're tasked with a database migration on a live payments system: add a new column, backfill ~80M rows, dual-write during transition, then cut reads over — across a Postgres schema and the Go services that touch it. You have an AI agent that can write migrations, code, and scripts. Decompose this into agent-delegable steps versus human-owned steps, and place the verification/rollback gates.

What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it — tests, edge cases, reading critically — and how you’d re-prompt or decompose to get it right.

Describe your solution

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.