Skip to content
Sharp

Security · interview question

A bug appears around log redaction. What is the strongest first debugging move?

Multiple choiceHardchapter-17-curatedpremiumsecuritylog-redaction
python
masked_email = user_email[:2] + "***"
print({"customer": masked_email})
Choose one answer
Answer and explanation

Correct answer

D. 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. Logging everything 'for debugging' often leaks exactly the data you most needed to protect.

Test yourself on Security

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

Start free test
All Security questions →