Code Room
Vibe codingHardvc-g461
Subject Ai decompositionLevel Senior–Staff~24 minCommon in Algorithms & data structures interviewsIndustries Software development, Technology

Question

Ticket: "Make the analytics dashboard faster." It's a Python/SQL app where a few queries against a 200M-row Postgres table feel slow. You want to use an AI agent but the ticket has no clear shape. Break it into agent-sized steps with checkpoints, and identify which step is actually a human-led investigation the agent can only assist with, not own.

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.