All jobs / Backend developer / Security
Backend developer interview question · 5+ years
The interviewer asks: “Privacy by design — what does the backend actually ship?” Strongest answer?
The strongest answer
Collect the minimum, tag what is personal, expire it, encrypt it, and ship the delete/export path in v1 — not as a ticket after the first request. Access is logged. Defaults are off for secondary use.
Why it works
Exactly. Privacy is a feature set: minimisation, retention, rights workflows, access control. Retrofitting is where companies fail audits.
What a good answer covers
- Minimise, expire, encrypt, delete/export.
- Ship the rights path in v1.
- Don't theatre-hash the UI only.
- “Keep all events” is not a privacy design.
Answers that fall short
- Close, but not the strongest: We'll add deletion when legal asks.
Legal will ask on a deadline you can't meet if the path doesn't exist. Build it with the write path. - Weak: Hash emails in the UI and keep plaintext in backups forever.
UI hashing is theatre if backups and replicas keep plaintext without a schedule. - Red flag: Store all events of everything; storage is cheap.
Cheap storage of everything is a cheap breach and an expensive erasure. Retention is a product decision.
Who gets asked this
More Security questions
- 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?
- The interviewer asks: “How do you put user input into SQL?” Strongest answer?
- The interviewer asks: “We set CORS to our frontend origin. Are we safe?” Strongest answer?
- The interviewer asks: “How do services get secrets in production?” Strongest answer?
- The interviewer asks: “What must never land in logs or traces?” Strongest answer?
- The interviewer asks: “A user asks us to delete their data. What does a backend actually do?” Strongest…