Documents feeding a knowledge base sometimes arrive empty, truncated or in the wrong language, and bad answers follow. What should you add before ingestion?
- Exam domain
- Foundation Model Integration, Data Management, and Compliance31% of the exam
- Difficulty
- Medium
- In this mock
- 28 questions on this domainPractise this domain
Why the exam asks this
Task 1.3: Implement data validation and processing pipelines for FM consumption.
Objective in the exam guide: 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, custom Lambda functions, CloudWatch metrics).
RAG quality is capped by data quality. Professionals are expected to stop bad data at the door instead of trying to compensate for it at query time.
Why B is the answer
A data validation step with quality rules, such as AWS Glue Data Quality, that rejects bad files
Validate data against quality rules before it reaches the index, so bad files never become bad answers.
Remember: Validate before you ingest: garbage in, garbage retrieved.
How it works
A validation step checks incoming data against rules before ingestion: completeness, size, format, language and freshness.
AWS Glue Data Quality defines such rules and reports results; Lambda functions can add custom checks, and CloudWatch metrics track how many files fail.
Rejected files go to a review queue instead of the index.
Clues in the question
The words that point to the answer, and what each one tells you.
- Empty, truncated or wrong language
- Data quality problems.
- Before ingestion
- Validate at the entry point.
In detail
- AWS Glue Data Quality lets you define rules and measure data against them.
- Custom Lambda checks and CloudWatch metrics can complement it.
Side by side with look-alikes
| Change | Stops bad data? |
|---|---|
| Validation rules before ingestion | Yes |
| Larger embedding model | No |
| Higher temperature | No |
| More chunk overlap | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. More chunk overlapWrong
Overlap changes chunk boundaries, not whether the data is valid.
B. A data validation step with quality rules, such as AWS Glue Data Quality, that rejects bad filesRight
Validate before you ingest: garbage in, garbage retrieved.
C. A larger embedding modelWrongMost tempting
A better embedding model still embeds empty or truncated files.
Why it tempts: A better model sounds like better quality. But it faithfully embeds the empty or truncated text it is given.
D. A higher temperature for the answering modelWrong
Temperature acts on generation, long after the bad data is indexed.
In practice
- Track the share of rejected files as a CloudWatch metric, and alert on spikes.
- Send rejected files to a review queue with the failed rule.
Use case
An illustrative scenario, not a real incident.
A team adds a rule that rejects files under 200 characters or in an unexpected language, and the bad answers stop.
See how it works
flowchart LR
I["Incoming file"] --> V{"Passes quality rules?"}
V -->|"Yes"| K["Ingest into the knowledge base"]
V -->|"No"| Q["Review queue"]
Q --> M["Metric: rejected files"]How to read this chart
- "Incoming file" leads to "Passes quality rules?".
- At "Passes quality rules?": if "Yes", go to "Ingest into the knowledge base"; if "No", go to "Review queue".
- "Review queue" leads to "Metric: rejected files".