All jobs / Backend developer / Security
Backend developer interview question · 3–5 years
The interviewer asks: “What must never land in logs or traces?” Strongest answer?
The strongest answer
Secrets, session tokens, passwords, full card numbers, and anything our retention policy treats as sensitive PII unless it's hashed or tokenised. I redact at the logger, not by hoping people remember.
Why it works
Exactly. Logs are a datastore with weak access control and long copies. Redaction libraries and allow-listed fields beat folklore.
What a good answer covers
- Redact secrets and sensitive PII.
- Logs are a store; treat them like one.
- Don't keep “everything for court.”
- Collection beats permissions — don't collect it.
Answers that fall short
- Close, but not the strongest: Nothing — we might need it for a lawsuit.
Legal hold is a process with counsel — not “keep everything forever in Splunk.” Retention is a privacy control. - Weak: Only passwords; emails and phone numbers are fine at info.
Emails and phones are PII. Info-level is still searchable by half the company. - Red flag: I log everything at debug in production and rely on log access control.
Access control fails (exports, screenshots, vendors). Don't collect what you can't justify.
Who gets asked this
More Security questions
- The interviewer asks: “A user asks us to delete their data. What does a backend actually do?” Strongest…
- The interviewer asks: “Threat-model this order service. Where do you start?” Strongest answer?
- The interviewer asks: “A customer requires their data stay in the EU. What do you actually implement?”…
- The interviewer asks: “The API pod's cloud role can read all buckets and impersonate other roles. What's…
- The interviewer asks: “Privacy by design — what does the backend actually ship?” Strongest answer?
- The interviewer asks: “A popular npm/NuGet/Maven package you use was compromised. What should already have…
- The interviewer asks: “Product wants to keep clickstreams forever for “future ML.” What's your backend…
- The interviewer asks: “Where do database passwords and API keys live?” Strongest answer?