Testing with Generative AI study guide
PII & Data Privacy in GenAI
Data Privacy testing in GenAI assesses risks around Personally Identifiable Information (PII), including training data, input handling, retention and outputs. Testing can reduce risk but cannot guarantee that a model has never memorized PII.
Practical example
If an employee pastes customer medical records into a public LLM to summarize them, that data may be stored by the AI provider and regurgitated to other users. QA must test data masking pipelines (Data Loss Prevention) that intercept and redact PII before the prompt hits the API.
Exam scenario and common trap
Scenario: A model inadvertently outputs a real customer's credit card number. The Trap: "Implement a regex filter on the output." The Correct Answer: Output filtering can help, but training data is only one possible source. Investigate prompts, retrieved documents, logs, training data and output controls before determining the cause.
Related syllabus sections cover this topic. Reference sections: 3.2.1–3.2.3. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.