Skip to content
Sharp

Service Design · interview question

A bug appears around repository boundaries. What is the strongest first debugging move?

Multiple choiceHardchapter-13-curatedpremiumservice-designrepository-boundaries
python
@app.post("/orders")
def create_order(request: CreateOrderRequest, service: OrderService = Depends(get_service)):
    return service.create(request)
Choose one answer
Answer and explanation

Correct answer

C. Trace one concrete example, inspect the state transitions, and compare them to the intended rule before rewriting anything.

Why

That approach is reliable because it creates evidence. Leaking database detail into handlers or domain logic makes every change ripple farther than necessary.

Test yourself on Service Design

A free test with instant, explained results. No account needed.

Start free test
All Service Design questions →