Skip to content
RED SAGSkills
easyAI Engineer (LLM & Generative AI) interview question

How do you protect personal data when building a feature on a hosted LLM API?

What the interviewer wants to hear

  • Send only the data the task needs (data minimisation)
  • Redact or mask sensitive fields before sending
  • Check provider data retention and training terms
  • Control what gets stored in logs and traces
  • Apply access controls so retrieval only returns permitted data

Model answer

I start with data minimisation: only send the fields the task actually needs. If the summary does not need card numbers or phone numbers, I redact or mask them before the call, often with a PII detection step. I check the provider terms for retention and whether data is used for training, and pick settings or regions that match our privacy rules and contracts. Logs and traces are an easy place to leak data, so I mask or limit what is stored and set retention periods. In RAG features I enforce access controls in retrieval, so a user can never get another person record into the prompt. Prompt instructions like "do not reveal" are not protection; real controls must sit in code.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy AI Engineer (LLM & Generative AI) questions