Your team is implementing a TFX data validation component in a production pipeline to detect data drift between training and serving datasets. The team is debating how to handle schema mismatches. Which two of the following are valid approaches within TFX's responsible AI and data quality framework? (Select TWO.)
- A. Disable schema validation in production to avoid false positives from minor data drift
- B. Use the TFX SchemaGen component to generate a schema from training data, then use ExampleValidator to compare serving data against it and alert on anomalies✓ Correct
- C. Use TFDV (TensorFlow Data Validation) to compute detailed statistics and anomalies, integrating alerts into your monitoring workflow✓ Correct
- D. Manually inspect serving data each week and update the schema in a text file when drift is detected
- E. Configure the ExampleValidator to silently drop any serving examples that violate the learned schema
Explanation
Options 0 and 3 are correct because they represent systematic, automated approaches to detecting and responding to data quality issues. SchemaGen + ExampleValidator create a reproducible baseline; TFDV provides detailed statistical analysis and is the standard TFX component for drift detection. Option 1 is wrong because manual inspection is not scalable and does not fit the TFX pipeline paradigm. Option 2 is wrong because silently dropping data introduces hidden biases and violates responsible AI principles of transparency. Option 4 is wrong because disabling validation removes safeguards against serving data degradation, a key risk in production systems.