A pipeline uses an LLM to extract invoice fields as JSON, but some responses contain invalid dates or missing required fields. What should the engineer add before loading the records?
Show the answer
Correct answerA. A schema and field-validation step that routes failures for review
AWhy this is right: Explicit validation checks each response against required fields and value rules before admitting it to the destination.
BWhy not this: A higher token limit can address truncated output, not missing-field or date-validation requirements.
CWhy not this: Format conversion with an inferred schema does not enforce required invoice fields or valid date values.
DWhy not this: More context may improve extraction but does not check whether each generated record satisfies the required constraints.
Schema and field validation detect missing required fields and invalid values before loading, allowing failures to be reviewed. Converting output to Parquet changes its representation but does not establish that extracted values meet business requirements.