All jobs / Backend developer / Security
Backend developer interview question · 5+ years
The interviewer asks: “Product wants to keep clickstreams forever for “future ML.” What's your backend answer?” Strongest answer?
The strongest answer
We only keep what we have a documented purpose and retention for. Forever clickstreams are a privacy and security pile. I'll offer aggregated or hashed features with a TTL — not raw identity in an immortal log.
Why it works
Exactly. Purpose limitation is an engineering constraint: schemas, TTLs, and access. “Future ML” is not a purpose. That's how you fail a review and a breach notification.
What a good answer covers
- Purpose + retention, not “forever for ML.”
- Prefer aggregates and TTLs.
- Policy text isn't a blank cheque.
- No shadow buckets.
Answers that fall short
- Close, but not the strongest: Storage is cheap; say yes and we'll filter later.
Later never comes; the pile becomes the company's crown jewels. Minimise now. - Weak: If the privacy policy is long enough, we can keep it.
A long policy doesn't create a purpose. Counsel and the policy name the purposes; we implement them — we don't invent storage. - Red flag: Ship it to a personal S3 bucket so it's not “in production.”
A personal bucket is a shadow system with worse controls. That's still company data, now unaudited.
Who gets asked this
More Security questions
- 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…
- 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?”…