Interview practice question
PII appearing in logs
Data Engineering · Python · Experienced
An audit finds customer emails and phone numbers in your Python pipeline logs. How do you fix it and prevent it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Stop logging full records or payloads.
- Mask or hash sensitive fields before logging.
- Add a logging filter that redacts patterns like emails.
- Purge or restrict access to existing logs as per policy.
- Add code review and scanning checks for logging of PII.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.