CCAR-F Prompt Engineering & Structured Output practice questions
20% of the CCAR-F exam. These worked examples come from free Form 1, with an explanation for every answer option.
The extraction prompt tells the model to flag any invoice field that looks questionable. Roughly 30% of invoices come back flagged, most for fields the AP reviewers find are fine, and the reviewers have started clearing the flag queue without reading it. Which change most directly improves flag precision?
- A
Tell the model to be conservative and flag only high-confidence problems, leaving borderline fields unmarked.
This does dial down flag volume, and lower volume is part of what reviewers want. But "be conservative" and "high-confidence" are the same vague instruction in a quieter register: the model still has no definition of what counts as questionable, so the flags that survive are an arbitrary subset rather than a more accurate one.
- B
Have the model attach a 1-10 certainty rating to each flag so reviewers can work the strongest ones first.
Certainty ratings give reviewers an ordering, which is a real improvement to queue triage. They do not improve the underlying judgment, though - a model that cannot tell a genuine problem from a normal value will rate its bad flags confidently too, so the top of the sorted queue stays polluted.
- C
Replace it with named conditions - total mismatch, missing tax ID, date outside the billing period - with examples.Correct
Correct. Explicit categorical criteria with concrete examples define what a flag means, so the model is classifying against a rule rather than guessing at "questionable." That is what moves precision, and it is what restores reviewer trust in the flags that remain.
- D
Run a second extraction pass on every invoice and flag only the fields where the two passes disagree.
A second pass and a disagreement filter would catch genuine instability in the extraction, and it is a reasonable consistency check. It costs a full extra call per invoice and still measures agreement rather than correctness: two passes reading the same vague instruction can agree on the same wrong flag.
The principle
Vague quality instructions cannot be fixed by softening them or by filtering their output. Precision comes from specific categorical criteria that define what qualifies, illustrated with examples.
A field-level audit shows payment_terms flags are wrong on about 40% of the invoices they fire on, while vendor_name and stated_total flags are almost always right. Reviewers have begun skimming past all three. Rewriting the payment_terms criteria will take a full sprint. What should you do in the meantime?
- A
Keep all three categories running but mark payment_terms as lower-confidence in the reviewer UI so reviewers weight it.
Labelling the weak category is honest and keeps some payment_terms coverage alive, which has value. It also leaves the noise in the queue and asks reviewers to do the discounting themselves - the behaviour they have already shown they will not do, since they are skimming past all three today.
- B
Raise the flagging threshold across all three categories so fewer invoices land in the reviewer queue.
A uniform threshold rise would reduce total queue volume, which addresses the reviewers' workload complaint. It suppresses the accurate categories at the same rate as the inaccurate one, so you lose real findings from vendor_name and stated_total to fix a problem that lives in only one category.
- C
Turn off payment_terms flagging while its criteria are rewritten, leaving the two accurate categories running.Correct
Correct. The damage from a high false-positive category is not confined to that category - it teaches reviewers that flags in general are noise. Disabling the one bad category preserves the trust the two accurate ones have earned, and costs only the payment_terms coverage you were not getting value from anyway.
- D
Suspend all flagging until payment_terms is rewritten and the full rule set has been re-validated.
Stopping everything guarantees no further false positives reach reviewers, which is a defensible way to protect trust. It also discards two categories that are working, leaves invoices unchecked for a sprint, and treats a localised precision problem as though the whole rule set were suspect.
The principle
False positives are contagious across categories: one noisy category undermines confidence in accurate ones. Disable the offending category specifically rather than degrading or suspending the whole system.
A newly onboarded carrier starts sending shipping manifests on Monday, about 200 a night, on a layout the pipeline has never processed. The AP team wants them in the same nightly Message Batches run as the other 1,200 documents from the first night. What should happen before that batch goes out?
- A
Submit them with the rest, then resubmit whatever failed by custom_id once the morning's failure list is in.
Resubmitting failed custom_ids is the documented way to handle batch failures and is worth planning for anyway. A layout the prompt has never met fails as a class rather than at random, so most of the 200 come back for a second paid run.
- B
Run a sample of the carrier's manifests, refine the extraction prompt on the results, then batch all 200.Correct
Correct. Refining the prompt on a sample before batch-processing a large volume is what raises the first-pass success rate, and a dozen sample manifests cost a fraction of the resubmission a bad first night would force.
- C
Submit them with the rest under a tightened extract_manifest schema, so a misread layout is rejected on arrival.
A tighter schema does keep malformed extractions out of the AP ledger and is good hygiene on any new document type. Rejection is not extraction: the batch is paid for in full and every rejected manifest still has to be worked afterwards.
- D
Extract this carrier's manifests synchronously for the first week, then fold them into the nightly batch run.
Synchronous calls surface each failure immediately and would certainly expose the new layout fast. It forgoes the batch saving for a week on volume that has no latency requirement, to learn what a sample of a dozen answers in an hour.
The principle
A batch is committed and paid for all at once, so first-pass quality has to be established before submission. Prompt refinement on a sample is what buys that, and it is cheapest on a document type nothing has been tuned against.