Skill 1.3.1
Create comprehensive data validation workflows to ensure data meets quality standards for FM consumption (for example, by using AWS Glue Data Quality, SageMaker Data Wrangler, custom Lambda functions, Amazon CloudWatch metrics)
Key Concepts
AWS Glue Data Quality evaluates rules written in Data Quality Definition Language (DQDL), such as completeness, uniqueness, allowed values, freshness and custom SQL, inside Glue ETL jobs or against Data Catalog tables. It can recommend rules from data statistics and stop a pipeline when a ruleset fails. SageMaker Data Wrangler produces data quality and insights reports with missing values, duplicates and distributions before data is used.
Unstructured inputs need custom checks: a Lambda function can reject empty or unreadable documents, verify encoding and language, check length against token limits, validate JSONL records for fine-tuning and detect duplicates by hashing. Each check publishes counts of passed and failed records as CloudWatch metrics, and alarms notify the team or stop ingestion when failure rates rise.