Skip to content
RED SAGSkills
mediumPrompt Engineer interview question

How would you handle personal data in an LLM workflow that processes customer emails?

What the interviewer wants to hear

  • Minimise what is sent; send only needed fields
  • Detect and mask or pseudonymise PII before the call
  • Use approved providers with suitable data terms and retention
  • Protect logs, traces and eval sets too
  • Check outputs for PII leakage

Model answer

I would follow data minimisation first: only send the parts of the email the task really needs. Before the model call, a detection step finds names, phone numbers, account and card numbers and replaces them with placeholders like [PHONE_1], keeping the mapping inside our system so we can restore values in the final reply if needed. The provider must be approved by legal and security, with suitable data processing and retention terms for our region. I would also protect the less obvious places: logs, traces, prompt playground history and eval datasets, which should be masked or synthetic. On the output side I would check that replies do not expose other customers' data. Finally, I document the flow so compliance teams can review it, and I test the redaction with tricky cases.

Can you answer it under time pressure?

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

Start mock interview

More medium Prompt Engineer questions