Skip to content
Sharp

Logging · interview question

A bug appears around structured diagnostics. What is the strongest first debugging move?

Multiple choiceHardchapter-5-curatedpremiumloggingstructured-diagnostics
python
event = {"event": "order_import_finished", "processed": 245, "failed": 6}
print(event)
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. Unstructured free-form logs slow down incident response and make pattern detection harder.

Test yourself on Logging

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

Start free test
All Logging questions →