Skip to content
Sharp

Security · interview question

A bug appears around deserialization safety. What is the strongest first debugging move?

Multiple choiceHardchapter-17-curatedpremiumsecuritydeserialization-safety
python
payload = json.loads(raw_json)
assert isinstance(payload, dict)
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. Treating deserialization as harmless plumbing can turn malformed input into surprising runtime behavior.

Test yourself on Security

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

Start free test
All Security questions →