# Implement validation, retry, and feedback loops for extraction quality — Practice reading

Exam: CCAR-F — Claude Certified Architect - Foundations (CCAR-F)
Knowledge domain: Prompt Engineering & Structured Output
HTML: https://learningpathx.com/learning-path/CCAR-F/learn/450

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: multiple\_choice
Knowledge point: Retry-with-error-feedback: appending specific validation errors to the prompt on retry to guide the model toward correction

Which two elements make a retry-with-error-feedback loop effective for structured output? (Choose 2.)

### Options

**A**

Append validation errors to the next prompt.

**B**

Set a retry limit and preserve a failure state with a recovery or escalation path when the limit is reached.

**C**

Conceal validation errors from the LLM writer.

**D**

Increase the retry budget after every failure until a structurally valid answer appears.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — Append validation errors to the next prompt.**: Concrete validation errors show the writer what to correct on the next attempt.
* **B — Set a retry limit and preserve a failure state with a recovery or escalation path when the limit is reached.**: Bounded recovery needs a defined outcome when correction does not succeed.
* **C — Conceal validation errors from the LLM writer.**: The retry pattern depends on communicating discrepancies to the writer.
* **D — Increase the retry budget after every failure until a structurally valid answer appears.**: Continually extending the budget removes the bound and can conceal persistent failure.

## Question 2

Type: single\_choice
Knowledge point: Retry-with-error-feedback: appending specific validation errors to the prompt on retry to guide the model toward correction

Validation rejects {"quantity":"many"} because quantity must be an integer. Which retry feedback best supports a targeted correction?

### Options

**A**

At $.quantity, expected integer but received string "many"; re-extract the supported quantity using the original source.

**B**

The object is invalid; try producing a more confident result.

**C**

At $.quantity, the field is present, so keep it unchanged and retry serialization.

**D**

Replace quantity with 1 whenever integer validation fails.

Correct answer: A

### Explanation

A supplies the failing field path, expected type and actual value, then directs a correction using the original source. This gives the next attempt a specific target while preserving factual support. A generic confidence request does not diagnose the error, field presence does not satisfy an integer constraint, and replacing the value with 1 can invent a quantity. The feedback itself does not establish the true quantity or guarantee that a retry will succeed.

## Question 3

Type: single\_choice
Knowledge point: Retry-with-error-feedback: appending specific validation errors to the prompt on retry to guide the model toward correction

A writer repeatedly receives feedback that its output is invalid, but the writer instructions require a field that the grader rubric prohibits. What correction is most likely to let the feedback loop converge?

### Options

**A**

Align writer instructions and grader rubric on validation rules.

**B**

Rewrite the error message more politely while keeping the field required by the writer and prohibited by the grader.

**C**

Increase retry counts without changing contradictory criteria.

**D**

Allow the writer to rename the field while the grader continues to reject every equivalent field.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Align writer instructions and grader rubric on validation rules.**: Consistent instructions and rubric rules remove the contradiction causing repeated failure.
* **B — Rewrite the error message more politely while keeping the field required by the writer and prohibited by the grader.**: Wording does not remove the contradictory requirements.
* **C — Increase retry counts without changing contradictory criteria.**: Increasing retry counts does not resolve the underlying conflicting requirements.
* **D — Allow the writer to rename the field while the grader continues to reject every equivalent field.**: Renaming does not make the two contracts jointly satisfiable.

## Question 4

Type: single\_choice
Knowledge point: Retry-with-error-feedback: appending specific validation errors to the prompt on retry to guide the model toward correction

An Agent SDK extraction uses {"type":"object","properties":{"status":{"enum":\["present","missing"\]},"value":{"type":\["string","null"\]}},"required":\["status","value"\],"additionalProperties":false}. The application also checks source grounding after structured generation. The source has no account number. An older task sentence says 'Never output null', while the current approved rule says missing evidence must yield {"status":"missing","value":null}. Application feedback shows repeated invented strings rejected as unsupported. Which smallest correction should precede a bounded retry?

### Options

**A**

Remove the conflicting no-null sentence and append feedback identifying the absent source field and the approved missing/null pair, keeping the supported schema.

**B**

Make value optional and stop checking factual support, because every retry error proves that required fields are the cause.

**C**

Increase the retry limit without removing the conflicting no-null sentence.

**D**

Add the last invented account number as a few-shot example, because a string already meets the field type.

Correct answer: A

### Explanation

The schema already allows value to be null while requiring the key to exist. The approved missing/null pair therefore satisfies the stated schema and accurately represents the absence of an account number. The older no-null sentence conflicts with that rule and encourages unsupported strings. Removing it and appending feedback about the absent source field gives a coherent correction target before a bounded retry. Making the key optional, removing source checks, adding more attempts under the conflict, or teaching an invented identifier does not address the stated cause.

## Question 5

Type: multiple\_choice
Knowledge point: Retry-with-error-feedback: appending specific validation errors to the prompt on retry to guide the model toward correction

Which two responsibilities belong to a retry-with-error-feedback architecture whose grader applies deterministic contract checks and source-grounding checks? (Choose 2.)

### Options

**A**

The grader validates the output against the contract.

**B**

The writer uses the grader's specific discrepancies on the next attempt.

**C**

The writer declares success without independent validation.

**D**

The grader checks only JSON parsing and treats every parsed value as source-verified.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — The grader validates the output against the contract.**: The grader checks the declared contract and the supplied source evidence; it need not be another model.
* **B — The writer uses the grader's specific discrepancies on the next attempt.**: Specific discrepancy feedback guides the writer's correction on retry.
* **C — The writer declares success without independent validation.**: Writer self-assessment does not replace validation.
* **D — The grader checks only JSON parsing and treats every parsed value as source-verified.**: Syntax alone does not establish source accuracy.

## Question 6

Type: multiple\_choice
Knowledge point: The limits of retry: retries are ineffective when the required information is simply absent from the source document (vs format or structural errors)

A source-only extractor has no retrieval tools. Four failed jobs are inspected below. Which two are reasonable candidates for one retry with specific error feedback and the same available source? (Choose 2.)

### Options

**A**

Source: "Units: 12"; output: {"units":"12"}; validator: units must be an integer.

**B**

Source: "Date: 2026-04-09"; output: {"date":"09/04/2026"}; application validator: use YYYY-MM-DD.

**C**

Source: "Contact: Mina" with no address; output: {"email":null}; validator demands an email.

**D**

Source: "Details are in Appendix B"; Appendix B is not provided; output omits the appendix's serial number.

Correct answer: A, B

### Explanation

The first two sources contain the necessary facts; feedback can target representation errors. The other jobs require missing evidence or a schema policy that allows absence.

## Question 7

Type: multiple\_choice
Knowledge point: The limits of retry: retries are ineffective when the required information is simply absent from the source document (vs format or structural errors)

A retrieval query succeeds against a fixed data snapshot with no transient or indexing failure, but returns no matching records. Which two responses handle this outcome appropriately? (Choose 2.)

### Options

**A**

Recognize that repeating the identical query against this unchanged snapshot will not create missing facts.

**B**

Return an empty-result outcome so the agent can explain it to the user.

**C**

Repeat the identical query indefinitely before reporting that it returned no matches.

**D**

Treat the valid empty result as a timeout and discard its query context.

Correct answer: A, B

### Explanation

A successful query with no matches is a valid empty outcome. Under the stated fixed-snapshot conditions, repeating the identical query does not change its evidence, so the application should preserve the empty result and let the agent explain it. This does not rule out a revised query or new source material. Indefinite identical retries lack a changing condition, and treating the response as a timeout misstates what happened and loses useful query context.

## Question 8

Type: single\_choice
Knowledge point: The limits of retry: retries are ineffective when the required information is simply absent from the source document (vs format or structural errors)

A source includes a customer name but omits an email address. The extracted email field fails a required-field check. What diagnosis should guide the next action?

### Options

**A**

Handle the information gap through the approved missing-value state or clarification path, rather than blindly retrying the same source.

**B**

The email address is present but contains a minor casing error, so a simple retry will correct it.

**C**

Silently drop the required field and mark the entire extraction complete, without recording the missing email.

**D**

Use a syntactically valid default address and treat it as source-supported.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Handle the information gap through the approved missing-value state or clarification path, rather than blindly retrying the same source.**: The application must represent or resolve absent evidence explicitly; it cannot extract an email the source lacks.
* **B — The email address is present but contains a minor casing error, so a simple retry will correct it.**: No email value actually exists in the source to normalize or correct via retry.
* **C — Silently drop the required field and mark the entire extraction complete, without recording the missing email.**: Silent schema weakening conceals the unresolved required information.
* **D — Use a syntactically valid default address and treat it as source-supported.**: Valid syntax does not make a default address true of this customer.

## Question 9

Type: single\_choice
Knowledge point: The limits of retry: retries are ineffective when the required information is simply absent from the source document (vs format or structural errors)

An extractor has one remaining retry and cannot access new documents. The source says "Units shipped: 18; support email: see account profile." Its failed output is {"units":"18","email":null}. The validator requires integer units and a nonempty email string. A previous retry fixed the units type but invented an email; source checks rejected it. Which next action best follows from both failures?

### Options

**A**

Retain the evidence-supported integer correction and stop retrying email against this source; record the information gap and obtain the profile or revise the missing-value contract.

**B**

Retry the unchanged full request until both fields pass the validator, accepting any syntactically valid email.

**C**

Spend the final retry asking for the most likely email while protecting the already corrected units.

**D**

Discard the corrected units because an absent email means no field can be extracted from the document.

Correct answer: A

### Explanation

The type error is repairable from present evidence, while the email problem is a source/contract mismatch. Repeating extraction cannot resolve that mismatch and has already produced a fabricated value.

## Question 10

Type: single\_choice
Knowledge point: Feedback loop design: tracking which code constructs trigger findings (detected\_pattern field) to enable systematic analysis of dismissal patterns

A bot records finding\_id, file and dismissed. Three dismissed reports in different files all flag an early return inside usingResource(...), whose project contract performs cleanup on exit. A fourth report flags an early return after manualOpen(...) without cleanup and is confirmed as a defect. Which recording change best enables the next analyst to aggregate the observed false-positive construct without merging it with the real leak?

### Options

**A**

Add detected\_pattern values that distinguish managed\_cleanup\_early\_return from manual\_resource\_early\_return, retaining the finding IDs and outcomes.

**B**

Use detected\_pattern: resource\_issue for all four records and discard the code excerpts.

**C**

Group by file extension and treat every dismissal in that extension as the same construct.

**D**

Replace dismissed with whether the finding contained the word return.

Correct answer: A

### Explanation

A useful pattern field identifies the triggering construct at the level needed to explain different adjudicated outcomes.

## Question 11

Type: multiple\_choice
Knowledge point: Feedback loop design: tracking which code constructs trigger findings (detected\_pattern field) to enable systematic analysis of dismissal patterns

A finding registry includes detected\_pattern and human outcomes. For managed\_cleanup, 72/80 findings were dismissed; adjudication says 68 were false positives and 4 valid but deferred. For raw\_resource\_exit, 8/40 were dismissed; 2 were false positives and 6 valid but deferred. Management proposes suppressing every resource warning because 80 findings were dismissed. Which two next steps are supported? (Choose 2.)

### Options

**A**

Prioritize managed\_cleanup prompt examples, using its 68/80 false-positive result and preserved code evidence to identify the mistaken trigger.

**B**

Keep raw\_resource\_exit findings in scope and separate false-positive dismissals from deferred valid findings when evaluating a prompt change.

**C**

Estimate the raw\_resource\_exit false-positive rate as 8/40 because every dismissal means the code was correct.

**D**

Remove the pattern field and use the combined dismissal count as the sole quality metric.

Correct answer: A, B

### Explanation

Pattern-level evidence distinguishes a noisy construct from a mostly valid one; dismissal reasons separate incorrect findings from legitimate but deferred work.

## Question 12

Type: multiple\_choice
Knowledge point: Feedback loop design: tracking which code constructs trigger findings (detected\_pattern field) to enable systematic analysis of dismissal patterns

A review export has findings F1 and F2 on generated accessor code and F3 on handwritten parsing code. A feedback export contains {id:F1, outcome:false\_positive}, {id:F2, outcome:valid\_deferred}, and {id:F3, outcome:confirmed}. The analyst needs a reproducible false-positive share among reported findings for each triggering construct. Which two preparation steps are required? (Choose 2.)

### Options

**A**

Assign a stable detected\_pattern to every finding, using the actual trigger and retaining F1-F3 as join keys.

**B**

Join feedback to findings by ID and count false\_positive separately from valid\_deferred for each pattern.

**C**

Join rows by their current list positions and use all non-confirmed outcomes as false positives.

**D**

Record patterns only for false positives, then compute each rate using the number of recorded pattern rows as the denominator.

Correct answer: A, B

### Explanation

For each construct, the requested share is the number of reported findings adjudicated false\_positive divided by all reported findings assigned to that construct. Stable pattern membership for every finding supplies the denominator, and joining by finding ID supplies the correct outcomes. A valid deferred finding remains in the denominator but is not a false positive. Joining by row position can attach the wrong outcome, while recording only errors removes non-error members. These exports do not provide the true-negative opportunities needed for the statistical false positive rate.

## Question 13

Type: single\_choice
Knowledge point: Feedback loop design: tracking which code constructs trigger findings (detected\_pattern field) to enable systematic analysis of dismissal patterns

A prompt change reduces overall dismissals from 40% to 20%. The old workload had 80 managed\_cleanup findings (48 dismissed) and 120 raw\_resource findings (32 dismissed). The new workload has 20 managed\_cleanup findings (12 dismissed) and 180 raw\_resource findings (28 dismissed). All findings retain IDs, code evidence and feedback. Which investigation best determines whether the prompt improved the recurring noisy construct?

### Options

**A**

Preserve detected\_pattern and prompt version, compare rates within each construct and review dismissal reasons; managed\_cleanup remains 60% dismissed despite the aggregate improvement.

**B**

Declare the managed\_cleanup issue solved because the overall dismissal rate halved.

**C**

Delete managed\_cleanup records before comparing versions because that category became less common.

**D**

Compare only total finding counts because both versions generated 200 reports.

Correct answer: A

### Explanation

A workload-mix change can lower the aggregate rate without improving the noisy construct. Pattern and version fields preserve the comparisons needed to investigate that effect.

## Question 14

Type: single\_choice
Knowledge point: Feedback loop design: tracking which code constructs trigger findings (detected\_pattern field) to enable systematic analysis of dismissal patterns

In a structured review feedback record, what should detected\_pattern identify?

### Options

**A**

The code construct that triggered the finding, such as unchecked nullable dereference.

**B**

The reviewer's disposition, such as dismissed or accepted.

**C**

The severity assigned to the finding, such as Important or Nit.

**D**

The remediation proposed for the developer, such as add a null guard.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — The code construct that triggered the finding, such as unchecked nullable dereference.**: Use a stable normalized trigger label, such as unchecked nullable dereference, so equivalent constructs group together despite different prose descriptions.
* **B — The reviewer's disposition, such as dismissed or accepted.**: Disposition records what happened to the finding after review, not the construct that produced it.
* **C — The severity assigned to the finding, such as Important or Nit.**: Severity describes impact or priority rather than the triggering code pattern.
* **D — The remediation proposed for the developer, such as add a null guard.**: A fix describes the proposed change and may vary for the same triggering pattern.

## Question 15

Type: single\_choice
Knowledge point: The difference between semantic validation errors (values don't sum, wrong field placement) and schema syntax errors (eliminated by tool use)

Which defect is a semantic validation error rather than a JSON syntax error?

### Options

**A**

Line items do not sum to the reported total.

**B**

quantity is returned as a string although its schema requires an integer.

**C**

The required total property is absent from a parseable object.

**D**

The object cannot be parsed because its closing brace is missing.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Line items do not sum to the reported total.**: The values are structurally present but logically inconsistent.
* **B — quantity is returned as a string although its schema requires an integer.**: This is a schema type violation.
* **C — The required total property is absent from a parseable object.**: This is a required-property violation.
* **D — The object cannot be parsed because its closing brace is missing.**: This is a JSON syntax violation.

## Question 16

Type: single\_choice
Knowledge point: The difference between semantic validation errors (values don't sum, wrong field placement) and schema syntax errors (eliminated by tool use)

A migration to strict tools eliminates malformed JSON. Yet two invoices still fail downstream checks. Invoice R has line items totaling 100, tax 10 and total 110; an old validator incorrectly compares only line items with total. Invoice S has the same numeric fields but vendor and buyer reversed relative to the source, while both fields satisfy their string types. Which diagnosis and correction best separates the remaining issues?

### Options

**A**

Correct the validator's tax basis for R and add source-role checks for S; neither issue is repaired by changing JSON punctuation.

**B**

Relax strict schemas for both records because semantic failures show that structural enforcement is ineffective.

**C**

Swap R's total and tax fields, then accept S because all required string fields are present.

**D**

Retry both extractions with a larger token limit without changing the validator or checking source roles.

Correct answer: A

### Explanation

R is a false alarm from an incomplete business rule; S is a genuine semantic extraction error. Structural compliance neither creates R's rule nor proves S's attribution.

## Question 17

Type: multiple\_choice
Knowledge point: The difference between semantic validation errors (values don't sum, wrong field placement) and schema syntax errors (eliminated by tool use)

A completed extraction passes a schema requiring sender and recipient strings, amounts as an array of numbers, and total as a number. The source states "Sender: Oak; Recipient: Pine; amounts: 25, 35; total: 60; no fees." The payload is {"sender":"Pine","recipient":"Oak","amounts":\[25,35\],"total":65}. Which two checks should fail at the semantic-validation layer? (Choose 2.)

### Options

**A**

Compare sender and recipient to the source labels.

**B**

Recompute the total from the two amounts on the stated no-fee basis.

**C**

Check that the payload has balanced JSON braces.

**D**

Check that amounts is an array whose elements are numbers.

Correct answer: A, B

### Explanation

The payload is structurally valid; source-role and arithmetic checks identify the remaining errors.

## Question 18

Type: single\_choice
Knowledge point: Implementing follow-up requests that include the original document, the failed extraction, and specific validation errors for model self-correction

A repair worker receives no previous conversation. The original document says "items 100; shipping 10; discount 5; amount due 105." A failed extraction is {"items":100,"shipping":10,"discount":5,"stated\_total":115}. Error E1 says stated\_total disagrees with the document. Error E2 says total must equal items alone; inspection shows E2 comes from a validator that omitted shipping and discount. Only one correction request is allowed, and source facts must remain unchanged. Which request package best supports a justified correction?

### Options

**A**

Include the original document, failed extraction and a corrected error list: point E1 to amount due 105, explain the valid calculation 100 + 10 - 5, and identify E2 as a validator defect.

**B**

Include the failed extraction and both error messages unchanged, ordering the model to satisfy them simultaneously.

**C**

Include only the original document and the command try again, omitting the failed fields and diagnosed errors.

**D**

Include only the failed extraction and instruct the model to change stated\_total to 100 so E2 passes.

Correct answer: A

### Explanation

A follow-up needs the source as evidence, the failed output as a revision target and accurate field-specific feedback. Conflicting or defective validator messages should not be treated as source truth.

## Question 19

Type: single\_choice
Knowledge point: Implementing follow-up requests that include the original document, the failed extraction, and specific validation errors for model self-correction

The source says invoice date 2026-09-01 and due date 2026-09-30\. The extractor swaps invoice\_date and due\_date. Which follow-up most directly supports correction?

### Options

**A**

Provide the source and swapped output, identifying that invoice\_date and due\_date contradict their respective source labels.

**B**

Ask for ISO date formatting while keeping the swapped field assignments.

**C**

Provide only the two dates without their source labels.

**D**

Accept the mapping because both values are valid calendar dates.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Provide the source and swapped output, identifying that invoice\_date and due\_date contradict their respective source labels.**: It links each failed assignment to the source evidence.
* **B — Ask for ISO date formatting while keeping the swapped field assignments.**: The dates already have usable formatting; attribution is the error.
* **C — Provide only the two dates without their source labels.**: Unlabeled values omit the distinction needed to repair the swap.
* **D — Accept the mapping because both values are valid calendar dates.**: Calendar validity does not establish field meaning.

## Question 20

Type: single\_choice
Knowledge point: Implementing follow-up requests that include the original document, the failed extraction, and specific validation errors for model self-correction

The source lists quantity 3; the output has quantity 5\. Which feedback directly supports a source-grounded correction?

### Options

**A**

$.quantity is 5, but the cited source line states 3; reconcile this field with that line.

**B**

$.quantity is a valid integer; increase confidence in the current value.

**C**

$.quantity is present; retry JSON parsing before changing any content.

**D**

$.quantity is 5; replace it with the most common quantity from earlier examples.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — $.quantity is 5, but the cited source line states 3; reconcile this field with that line.**: It names the field, actual error, and supporting correction evidence.
* **B — $.quantity is a valid integer; increase confidence in the current value.**: A valid type does not establish the correct value.
* **C — $.quantity is present; retry JSON parsing before changing any content.**: Parsing does not address the source mismatch.
* **D — $.quantity is 5; replace it with the most common quantity from earlier examples.**: Earlier examples do not establish this source’s quantity.

## Question 21

Type: multiple\_choice
Knowledge point: Identifying when retries will be ineffective (e.g., information exists only in an external document not provided) versus when they will succeed (format mismatches, structural output errors)

An extractor can retry against only the supplied contract text; it has no tools. The text says "Term: 12 months. Signed: 2026-06-04\. Pricing: see Schedule C." Schedule C is absent and no billing email appears. Which two failures can reasonably be addressed by a targeted retry without obtaining another source? (Choose 2.)

### Options

**A**

term\_months is returned as the string "12", although the schema requires an integer.

**B**

signed\_date is returned as "June 4, 2026", although the application requires YYYY-MM-DD.

**C**

The monthly price from Schedule C is null.

**D**

The billing email is null.

Correct answer: A, B

### Explanation

The term and signature date are explicitly available. The price and email require evidence absent from the retry context.

## Question 22

Type: multiple\_choice
Knowledge point: Identifying when retries will be ineffective (e.g., information exists only in an external document not provided) versus when they will succeed (format mismatches, structural output errors)

A workflow has one correction retry per record and may request an external attachment only after declaring an evidence gap. Its JSON Schema requires numeric price and string effective\_date, allowing neither null. Separately, the consuming application validates that a stated date uses YYYY-MM-DD. Record R's main text says "Price: see Schedule C; effective date: 2026-07-01"; its output has price:null and effective\_date:"July 1, 2026". R's schema check rejects the null price but accepts the date's string type; the application rejects the date representation. Record S's complete text says "Price: 75; effective date: not yet agreed"; its output has price:"75" and effective\_date:null, both rejected by the schema. Which two recovery decisions correctly separate retriable output defects from missing-source or contract problems? (Choose 2.)

### Options

**A**

For R, correct effective\_date to the source-supported "2026-07-01", declare the price evidence gap and request Schedule C before attempting to extract its price.

**B**

For S, correct price to the number 75, but escalate the required-date contract or permit an authorized missing-value state because the source supplies no agreed date.

**C**

For R, use successful date normalization as proof that another retry can also recover Schedule C's price without receiving the attachment.

**D**

For S, require the retry to choose the most probable YYYY-MM-DD date, because a non-null date string that passes the representation check must be source-correct.

Correct answer: A, B

### Explanation

R combines an application-level date-format mismatch with an unavailable price attachment. S combines a numeric-type error with a date that has not been agreed. Retrying can correct representations of available facts, but cannot supply absent evidence or resolve an impossible required-field contract. Keep schema typing, application-format validation and source-evidence sufficiency distinct when deciding what a bounded retry can repair.

## Question 23

Type: single\_choice
Knowledge point: Identifying when retries will be ineffective (e.g., information exists only in an external document not provided) versus when they will succeed (format mismatches, structural output errors)

The source explicitly states 9 September 2026\. An extractor returns 09/09/2026, but the contract requires YYYY-MM-DD. Which correction should the workflow request?

### Options

**A**

Use the source date to return 2026-09-09 in the required field, preserving the date’s meaning.

**B**

Swap day and month repeatedly until validation passes.

**C**

Keep 09/09/2026 and remove the format rule from this result only.

**D**

Use today’s date because the original string failed validation.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Use the source date to return 2026-09-09 in the required field, preserving the date’s meaning.**: The unambiguous source supports a precise representation correction.
* **B — Swap day and month repeatedly until validation passes.**: Blind swaps are unnecessary and do not apply the explicit convention.
* **C — Keep 09/09/2026 and remove the format rule from this result only.**: Relaxing the contract does not correct the representation.
* **D — Use today’s date because the original string failed validation.**: The current date is not evidence for the document’s date.

## Question 24

Type: single\_choice
Knowledge point: Identifying when retries will be ineffective (e.g., information exists only in an external document not provided) versus when they will succeed (format mismatches, structural output errors)

A required fact is available only in an attachment that was not provided, and no external retrieval tool is available. Which next step can enable a grounded retry?

### Options

**A**

Request the missing attachment, then retry after the evidence arrives.

**B**

Retry the unchanged source with a larger output budget.

**C**

Retry with a lower sampling temperature while supplying no new evidence.

**D**

Make the required field a string and infer its value from the filename.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Request the missing attachment, then retry after the evidence arrives.**: The workflow first obtains the evidence that extraction lacks.
* **B — Retry the unchanged source with a larger output budget.**: More output space does not supply the attachment.
* **C — Retry with a lower sampling temperature while supplying no new evidence.**: Sampling changes do not add source information.
* **D — Make the required field a string and infer its value from the filename.**: A type declaration and filename do not establish the missing fact.

## Question 25

Type: single\_choice
Knowledge point: Identifying when retries will be ineffective (e.g., information exists only in an external document not provided) versus when they will succeed (format mismatches, structural output errors)

A retrieval step found the required date, but the extraction omits a required field from its JSON output. What action is appropriate?

### Options

**A**

Retry with structural validation feedback

**B**

Run the same successful retrieval again without sending the omitted-field error.

**C**

Remove the required date key from the schema to accept the incomplete object.

**D**

Replace the date field with free text while keeping the extraction unchanged.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Retry with structural validation feedback**: Structural feedback can guide a schema-compliant correction.
* **B — Run the same successful retrieval again without sending the omitted-field error.**: The evidence is already available; the omission needs targeted feedback.
* **C — Remove the required date key from the schema to accept the incomplete object.**: Weakening the contract hides the missed extraction.
* **D — Replace the date field with free text while keeping the extraction unchanged.**: Changing the type does not restore the missing required fact.

## Question 26

Type: single\_choice
Knowledge point: Adding detected\_pattern fields to structured findings to enable analysis of false positive patterns when developers dismiss findings

A finding record contains detected\_pattern:'unchecked\_nullable\_dereference', disposition:'dismissed', and reason:'the caller guarantees a non-null value'. What does detected\_pattern contribute to a false-positive investigation?

### Options

**A**

It lets analysts group this finding with similar triggers and examine whether caller guarantees are repeatedly being overlooked.

**B**

It proves that every unchecked nullable dereference in the repository is safe.

**C**

It records the developer's dismissal reason without needing a separate reason field.

**D**

It establishes that the finding is correct because a recognized pattern name was assigned.

Correct answer: A

### Explanation

The pattern label identifies a candidate recurring trigger; the dismissal reason supplies separate contextual evidence about why this particular report may be wrong.

## Question 27

Type: multiple\_choice
Knowledge point: Adding detected\_pattern fields to structured findings to enable analysis of false positive patterns when developers dismiss findings

An analyst wants to compare dismissal patterns by code construct before adjudicating which dismissals truly indicate false positives. Which two pieces of information are directly required for that grouping and comparison? (Choose 2.)

### Options

**A**

A normalized detected\_pattern identifying the construct behind each finding.

**B**

The developer's disposition and recorded dismissal reason, kept distinct from any later correctness label.

**C**

The finding's severity label as a replacement for its triggering construct.

**D**

The finding's suggested\_fix text as a replacement for the developer's disposition.

Correct answer: A, B

### Explanation

Construct labels provide the groups, and dispositions with reasons provide feedback to inspect. Dismissal is an outcome of review, not automatically a ground-truth false-positive label.

## Question 28

Type: single\_choice
Knowledge point: Adding detected\_pattern fields to structured findings to enable analysis of false positive patterns when developers dismiss findings

A feedback log groups all "missing validation" findings together. Inspecting dismissed records shows ten findings on generated DTO setters that are validated by a documented boundary layer. Confirmed defects instead involve handwritten external-input handlers with no boundary validation. Which detected\_pattern design best supports analysis and prompt refinement?

### Options

**A**

Record the trigger as generated\_setter\_with\_boundary\_validation or external\_handler\_without\_validation, preserving code evidence and final outcomes.

**B**

Record missing\_validation for every finding because a shorter label is easier to count.

**C**

Record the reviewer's final decision as the pattern, replacing the outcome field.

**D**

Record only the file basename as the pattern because the construct can be inferred from naming conventions.

Correct answer: A

### Explanation

The pattern should capture the construct and safeguard that explain the outcome difference, while the outcome remains a separate observation.

## Question 29

Type: single\_choice
Knowledge point: Adding detected\_pattern fields to structured findings to enable analysis of false positive patterns when developers dismiss findings

A registry logs detected\_pattern, prompt\_version, code evidence and dismissal reason. After a prompt update, findings labeled null\_check have a 10% false-positive share, down from 50%. However, the new prompt labels its safe-wrapper cases wrapper\_check instead; those have an 80% false-positive share. Some historical null\_check records contain the same wrapper construct. Management wants to decide whether the original defect is fixed. Which analysis is most defensible?

### Options

**A**

Use the code evidence to map both versions to a stable construct taxonomy, then compare adjudicated false-positive shares within corresponding constructs while preserving original labels.

**B**

Declare success from the null\_check trend because identical label strings always denote identical code populations.

**C**

Combine all current labels into one category and compare only the total number of comments.

**D**

Discard historical wrapper records so the old and new label names appear consistent.

Correct answer: A

### Explanation

A changed label definition can create an artificial improvement. Pattern tracking is useful only when the construct meaning remains comparable or is explicitly mapped.

## Question 30

Type: single\_choice
Knowledge point: Designing self-correction validation flows: extracting "calculated\_total" alongside "stated\_total" to flag discrepancies, adding "conflict\_detected" booleans for inconsistent source data

A validator compares independently calculated and source-stated totals on the same currency and adjustment basis. It flags differences greater than 0.01\. calculated\_total is 245.00 and stated\_total is 260.00\. Which result follows?

### Options

**A**

conflict\_detected: true, because the difference exceeds 0.01.

**B**

conflict\_detected: false, because both totals are positive.

**C**

conflict\_detected: false, because the source-stated total takes precedence without comparison.

**D**

conflict\_detected: false, because any difference below 20 is a rounding difference.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — conflict\_detected: true, because the difference exceeds 0.01.**: The difference is 15.00, which exceeds the supplied tolerance.
* **B — conflict\_detected: false, because both totals are positive.**: Positivity does not resolve the unequal totals.
* **C — conflict\_detected: false, because the source-stated total takes precedence without comparison.**: The policy requires comparison rather than silent precedence.
* **D — conflict\_detected: false, because any difference below 20 is a rounding difference.**: The stated tolerance is 0.01, not 20.

## Question 31

Type: single\_choice
Knowledge point: Designing self-correction validation flows: extracting "calculated\_total" alongside "stated\_total" to flag discrepancies, adding "conflict\_detected" booleans for inconsistent source data

An invoice source states line subtotal 480, shipping 20, discount 10 and amount due 500, all in USD with no other adjustments. An extraction records stated\_total:490 and calculated\_total:490, so conflict\_detected is false. The application defines conflict\_detected as disagreement between the source-stated amount due and an independently calculated amount due on the same basis. Which correction preserves the evidence and identifies both failures?

### Options

**A**

Keep both totals at 490 because their equality means the extracted invoice is internally consistent.

**B**

Restore stated\_total to 500, retain the independently verified calculated\_total of 490 and set conflict\_detected to true pending source reconciliation.

**C**

Change calculated\_total to 500 so that it agrees with the source-stated amount and leave conflict\_detected false.

**D**

Set stated\_total to 480 and calculated\_total to 500, treating the subtotal as the amount due.

Correct answer: B

### Explanation

The extractor erased a real source discrepancy by changing the stated amount. The verified calculation is 480 + 20 - 10 = 490, while the document states 500\. Both values must remain visible.

## Question 32

Type: multiple\_choice
Knowledge point: Designing self-correction validation flows: extracting "calculated\_total" alongside "stated\_total" to flag discrepancies, adding "conflict\_detected" booleans for inconsistent source data

A document states "items: 80 and 30; shipping: 5; discount: 10; amount due: 110 USD." All amounts use the same basis, and there are no other charges. The validator must preserve the stated amount and independently calculate the payable amount. Which two values belong in the corrected validation record? (Choose 2.)

### Options

**A**

calculated\_total: 105, computed as 80 + 30 + 5 - 10.

**B**

stated\_total: 110 with conflict\_detected: true.

**C**

calculated\_total: 110, copied from amount due to avoid a discrepancy.

**D**

stated\_total: 105 with conflict\_detected: false, replacing the document's amount.

Correct answer: A, B

### Explanation

Independent arithmetic yields 105 while the source states 110\. Preserving both values exposes the discrepancy for review.

## Question 33

Type: multiple\_choice
Knowledge point: Designing self-correction validation flows: extracting "calculated\_total" alongside "stated\_total" to flag discrepancies, adding "conflict\_detected" booleans for inconsistent source data

Two records are under self-correction. R's source says subtotal 100, tax 10 and amount due 110; its calculated\_total is 100 because the validator omitted tax, and conflict\_detected is true. S's source says subtotal 100, tax 10 and amount due 115, with no other adjustments; the extractor has overwritten stated\_total with 110 and set conflict\_detected false. All amounts are USD on the same basis. Which two corrections preserve the purpose of the validation flow? (Choose 2.)

### Options

**A**

For R, calculate 110 including tax and set conflict\_detected false after verifying that stated\_total remains 110.

**B**

For R, lower stated\_total to 100 so it agrees with the old calculation and leave the tax unused.

**C**

For S, restore stated\_total to 115, keep calculated\_total at 110 and set conflict\_detected true.

**D**

For S, retain the overwritten 110 because agreement is the goal of self-correction.

Correct answer: A, C

### Explanation

R has a faulty calculation producing a false conflict; S has an altered source value concealing a real conflict. Self-correction must preserve source truth and independent arithmetic, not manufacture agreement.

## Question 34

Type: single\_choice
Knowledge point: Designing self-correction validation flows: extracting "calculated\_total" alongside "stated\_total" to flag discrepancies, adding "conflict\_detected" booleans for inconsistent source data

An invoice's independently checked items and applicable adjustments total 860, while the document states 900 on that same currency and total basis. Which structured result supports later review without forcing a resolution?

### Options

**A**

Store calculated\_total: 860, stated\_total: 900, conflict\_detected: true, and cause\_status: unresolved.

**B**

Store only stated\_total: 900 since it came from the source document

**C**

Store calculated\_total: 900 so both extracted totals will match

**D**

Replace both of the totals with a single overall confidence score

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Store calculated\_total: 860, stated\_total: 900, conflict\_detected: true, and cause\_status: unresolved.**: Both values and the unresolved discrepancy remain available for review without treating either as a forced correction.
* **B — Store only stated\_total: 900 since it came from the source document**: Omitting the calculated value prevents the documented source comparison.
* **C — Store calculated\_total: 900 so both extracted totals will match**: Changing the calculated value to match hides the underlying discrepancy.
* **D — Replace both of the totals with a single overall confidence score**: A single overall confidence score is not the requested total-conflict representation.

