All jobs / Cybersecurity / Governance & Compliance
Cybersecurity interview question · 0–1 years
A debug log prints the full request body, including national id. What do you do?
The strongest answer
Stop it, purge what policy requires, and log a redacted shape — I do not keep “just this week” of real identifiers
Why it works
Exactly. Logs leak. Redact at source. Internal is still a copy.
What a good answer covers
- Redact at source.
- Purge what you already wrote.
- Internal ≠ safe.
- Do not MD5 an id and relax.
Answers that fall short
- Close, but not the strongest: Leave it; logs are internal
Internal systems get breached and browsed. - Weak: Encrypt the log folder and keep printing ids
Encryption of a pile of PII is still a pile of PII if many people can decrypt. - Red flag: Hash the id with MD5 and call it anonymous
MD5 of an identifier is often still an identifier.
Who gets asked this
More Governance & Compliance questions
- An auditor asks if you “do MFA.” What do you show?
- What does GDPR ask of you as an engineer, in practical terms?
- What does “we encrypt at rest” look like as evidence?
- One customer asks for ISO 27001 and another asks for SOC 2. What is the difference, and what does each ask of…
- How do you stop PII from returning to logs after one purge?
- A control is “required by SOC 2.” What do you map it to internally?
- A squad wants a vuln exception “until after launch.” What do you require?
- Why bother classifying data if “we encrypt everything”?