EX-29: GDPR Art. 6 Lawful Basis Gate Filter
Track: AI Readiness & EU AI Act • Difficulty: Beginner • Mastery Points: 100 PTS
Business Problem Scenario
GDPR Article 6 establishes six lawful bases for personal data processing: consent, contract, legal obligation, vital interests, public task, and legitimate interests. In machine learning operations for credit risk, consent is an inappropriate lawful basis because consent can be withdrawn at any time under GDPR Art 7, which would require costly retraining or model re-calibration. Global DynaDatum Bank's AI governance policy strictly mandates that credit scoring models ingest data processed only under three durable legal grounds: 'contract', 'legal_obligation', or 'legitimate_interest'. In silver.credit_applications, 184 rows carry revocable consent tags and must be filtered out before model feature ingestion.
Engineering Objective
Write an AI governance gate filter query over silver.credit_applications enforcing Global DynaDatum Bank's lawful basis policy. • Expected Columns: application_id, customer_id, decision_date, loan_amount, lawful_basis • Acceptance Criteria: - Filter where lawful_basis IN ('contract', 'legal_obligation', 'legitimate_interest'). - Exclude records processed under revocable consent or unverified legal grounds. Key Concepts: - GDPR Article 6: European privacy standard defining six lawful grounds for processing personal data. - Compliance Gate: Architectural pipeline barrier ensuring legally contaminated records never reach model training.
Target Table: silver.credit_applications (application_id STRING, customer_id STRING, decision_date DATE, loan_amount DECIMAL(18,2), lawful_basis STRING)
Verification & Architecture Insights
Training AI on data lacking valid GDPR Article 6 lawful basis exposes the bank to fines of up to 4% of global turnover and invalidates the entire scoring model.