Code Room
Vibe codingHardvc-g168
Subject Ai code reviewLevel Senior–Staff~20 minCommon in Algorithms & data structures interviewsIndustries Technology, Software development

Question

An AI generated this Kubernetes Deployment for a service that calls a downstream API. It's healthy in normal traffic, but during a downstream slowdown the whole fleet got killed and restarted in a loop, amplifying the outage. What's wrong with the probe design?

yaml
containers:  - name: api    image: acme/api:1.4.0    livenessProbe:      httpGet:        path: /healthz        port: 8080      initialDelaySeconds: 3      periodSeconds: 5      failureThreshold: 2    readinessProbe:      httpGet:        path: /healthz        port: 8080
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.