Interview Process & Behavioral·Question 32 of 56Advanced

A stakeholder wants to send sensitive customer data (PII) to a third-party model API. They say the business need justifies it. What do you do?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

What they're probing: data-governance judgment under commercial pressure - increasingly a core AI-engineer competency, not a legal nicety. They want neither the engineer who YOLOs PII into an API nor the one who reflexively blocks and forces the business to route around them. The strong signal is knowing the actual technical option space.

Full worked answer with diagram

What they're probing: data-governance judgment under commercial pressure - increasingly a core AI-engineer competency, not a legal nicety. They want neither the engineer who YOLOs PII into an API nor the one who reflexively blocks and forces the business to route around them. The strong signal is knowing the actual technical option space.

Strong answer structure: first, clarify facts before positions - what data, which fields, what does the provider's data-processing agreement actually say (zero-retention options, no-training clauses, regional processing), what regulatory regime applies (GDPR, HIPAA, sector rules), what did customers consent to → then present the mitigation ladder, because this is rarely binary: field-level redaction/pseudonymisation before the API call with rehydration after, zero-retention enterprise agreements, regional endpoints, VPC or on-prem deployment of open models for the sensitive slice, or scoping the feature to non-sensitive fields → route the residual risk decision to the people authorised to accept it (legal/privacy), in writing → and a story showing you enabled the business rather than just gatekeeping.

Example sketch: "This exact scenario: product wanted support transcripts - names, account numbers, occasionally payment fragments - sent to an LLM API for summarization. Instead of yes or no, I mapped the options in a one-pager: (a) as-is under the provider's zero-retention enterprise terms, (b) PII-redaction layer before the call - we prototyped it in three days using a mix of regex and NER, with entity placeholders rehydrated after - or (c) self-hosted model, quality and cost penalty quantified from a quick eval. Legal reviewed; we shipped (b), and the summarization quality loss from redaction measured under 2 points on our eval because names rarely matter to summaries. Key part: privacy signed off on residual risk formally - engineers shouldn't be the ones silently accepting legal exposure, in either direction."

Pitfalls: "I'd just say no" (business routes around you, data flows anyway, unreviewed); "the DPA covers it" without having read what it actually covers; not knowing redaction/pseudonymisation is usually cheap and barely lossy; accepting or rejecting legal risk personally instead of escalating to the accountable function.

Worth sketching. It shows you know the option space between yes and no, and where the risk decision leaves engineering.

flowchart TD
    A["Which fields actually<br/>leave our boundary?"] --> B{"Does the feature<br/>need the PII at all?"}
    B -->|"no"| C["Scope to<br/>non-sensitive fields"]
    B -->|"yes"| D["Redact or pseudonymise,<br/>rehydrate after the call"]
    D --> E{"Quality loss<br/>acceptable on eval?"}
    E -->|"yes, under 2 points"| F["Zero-retention terms<br/>plus regional endpoint"]
    E -->|"no"| G["Self-hosted model<br/>for the sensitive slice"]
    F --> H["Privacy signs off<br/>on residual risk"]
    G --> H

What a good answer covers

  • What they're probing: data-governance judgment under commercial pressure - increasingly a core…
  • They want neither the engineer who YOLOs PII into an API nor the one who reflexively blocks and forces…
  • The strong signal is knowing the actual technical option space
  • Strong answer structure: first, clarify facts before positions - what data, which fields, what does the…
  • Example sketch: "This exact scenario: product wanted support transcripts - names, account numbers,…

Key terms: What they're probing · Strong answer structure · Example sketch · Pitfalls

Interviewer follow-ups to expect

  1. How would you build the redaction layer and how do you eval it (what's its recall on PII, and what does a miss cost)?

  2. Does using the provider's 'no training on API data' policy fully address this?

  3. What changes if the data is health records?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep