Skip to content
Sharp

HTTP Integration · interview question

A bug appears around json mapping. What is the strongest first debugging move?

Multiple choiceEasychapter-12-curatedpremiumhttp-integrationjson-mapping
python
payload = {"order_id": "ORD-1", "subtotal_cents": 8800}
dto = {"id": payload["order_id"], "subtotal": payload["subtotal_cents"] / 100}
Choose one answer
Answer and explanation

Correct answer

B. 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 partner field names through the whole codebase couples you to an external contract you do not control.

Test yourself on HTTP Integration

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

Start free test
All HTTP Integration questions →