CCAR-P practice › Solution Design & Architecture · Question 7 of 110

Solution Design & Architecture

An invoice-extraction pipeline tested well, but in production about 15% of outputs are empty or nonsensical. Investigation finds these invoices are scanned PDFs with no text layer, and the pipeline sends only the extracted text to Claude. What is the best fix?

Show answer and explanation

Answer: D — Detect a missing text layer at input and send page images or OCR output instead, flagging files that stay unreadable

The defect is in input handling: the model never received the content. (d) fixes the stage where the problem originates. (a) makes the failure visible but extracts nothing. (b) cannot read text that was never sent. (c) repeats the same empty input and wastes calls.