All jobs / AI engineer / AI Data & Privacy
AI engineer interview question · 1–3 years
For debugging, your service logs every prompt and completion in full. What is the privacy problem, and what do you do about it?
The strongest answer
Those logs are now a second store of personal data. I set a retention period, restrict who can read them, redact on write where I can, keep a sample rather than everything, and make sure deletion requests reach them
Why it works
Exactly — debugging is a legitimate purpose, but it needs limits: how long, who, how much, and a deletion path. Otherwise the log outlives every promise the product makes.
What a good answer covers
- Prompt logs are a personal-data store.
- Set retention and restrict access.
- Redact on write; sample, don’t hoard.
- Make deletion requests reach the logs.
Answers that fall short
- Close, but not the strongest: Logs can hold personal data, so I would encrypt the log storage and make sure it is not publicly accessible
Encryption and no public access are the baseline. The privacy questions are inside: how long you keep it, which colleagues can read users’ conversations, and whether you can delete one person’s data. - Weak: There is no problem as long as the logs stay inside our own cloud account; privacy rules are about sharing data with others
Privacy law covers what you collect, how long you keep it and who inside can see it, not only what you share. An internal log is still processing personal data. - Red flag: Keep everything forever and give the whole team access — you never know which conversation you will need when a bug appears
Unlimited retention with open access is how a debugging aid becomes the most sensitive database in the company, with none of the controls.
Who gets asked this
More AI Data & Privacy questions
- Your RAG product serves many companies from one vector index. How do you guarantee one tenant never sees…
- You are choosing a hosted model provider for a feature that handles customer data. What do you check in their…
- An enterprise customer in the EU will sign only if their data “stays in the EU”. Your product calls a hosted…
- What do you expect to have ready, and what do you refuse to gloss over?
- Before your code sends a user’s text to a hosted model API, what questions do you ask about that data?
- You need an LLM to summarise support tickets that contain names, phone numbers and the odd card number. How…