Code Room
Vibe codingHardvc-g220
Subject Ai risk judgmentLevel Senior–Staff~22 minCommon in Algorithms & data structures interviewsIndustries Telecom, Technology

Question

An engineer used an AI agent to generate a Python script that pushes BGP route-policy changes across a carrier's edge routers to mitigate a routing leak. The agent's diff looks correct and includes a confident explanation of each route-map. Network-wide misconfiguration here can black-hole traffic for millions of subscribers. The on-call wants to run it now to stop the leak. How do you handle the tension between urgency and the risk of AI-generated network changes?

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.