# Design prompts with explicit criteria to improve precision and reduce false positives — 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/447

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: The importance of explicit criteria over vague instructions (e.g., "flag comments only when claimed behavior contradicts actual code behavior" vs "check that comments are accurate")

A review policy says to flag a comment only when its behavior claim contradicts reachable code. In round two, reviewer R reports: (1) '# makes three attempts' above a loop with range(3); its only assertion is that a timeout test is absent; (2) '# rejects non-admins' above an endpoint whose viewer-role integration test returns 200 and changes data; (3) an unmodified local naming convention. The team also wants review convergence without losing newly introduced defects. Its later-round policy skips unchanged local-style preferences but keeps newly evidenced behavior defects eligible. Which two policy decisions follow from this evidence? (Choose 2.)

### Options

**A**

Withhold finding 1 unless source or execution evidence contradicts the three-attempt claim; a missing test alone is insufficient.

**B**

Report finding 2 with the reachable endpoint and viewer test evidence; skip finding 3 under a later-round style rule.

**C**

Withhold finding 1 pending a contradiction and report finding 2 from its viewer trace, but keep finding 3 as a blocking issue because any local naming preference should survive a later-round exclusion.

**D**

Withhold finding 1 and skip finding 3, but withhold finding 2 in round two because the first review did not report it, even though the new viewer execution contradicts the access claim.

Correct answer: A, B

### Explanation

The decisions require separating missing verification from an actual contradiction, then applying a convergence rule without suppressing a demonstrated defect.

## Question 2

Type: multiple\_choice
Knowledge point: The importance of explicit criteria over vague instructions (e.g., "flag comments only when claimed behavior contradicts actual code behavior" vs "check that comments are accurate")

Which two criteria make a comment-accuracy review prompt explicit rather than vague? (Choose 2.)

### Options

**A**

Flag a comment when its claimed behavior contradicts actual code behavior.

**B**

Require cited source content that establishes the reachable behavior relevant to the comment.

**C**

Verify only the named function body, without tracing callers or conditions that affect the claim.

**D**

Ask for a general impression of whether comments look accurate.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — Flag a comment when its claimed behavior contradicts actual code behavior.**: Comparing a claim with actual code behavior gives the reviewer a concrete condition for posting a finding.
* **B — Require cited source content that establishes the reachable behavior relevant to the comment.**: A location is useful only when its content supports the behavior being claimed.
* **C — Verify only the named function body, without tracing callers or conditions that affect the claim.**: A local body can omit the call path or preconditions that determine actual behavior.
* **D — Ask for a general impression of whether comments look accurate.**: A general accuracy request leaves the verification bar and finding boundary unspecified.

## Question 3

Type: single\_choice
Knowledge point: The importance of explicit criteria over vague instructions (e.g., "flag comments only when claimed behavior contradicts actual code behavior" vs "check that comments are accurate")

What risk is most associated with a vague instruction such as “check that comments are accurate”?

### Options

**A**

Flagging comments without establishing a contradiction with reachable code behavior.

**B**

Missing findings because the report pipeline truncates otherwise verified results.

**C**

Assigning inconsistent severity because the severity rubric omits impact boundaries.

**D**

Reviewing an older commit because the source-fetch step uses a stale revision.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Flagging comments without establishing a contradiction with reachable code behavior.**: The vague instruction does not define what evidence establishes an inaccurate comment.
* **B — Missing findings because the report pipeline truncates otherwise verified results.**: Report truncation is a delivery defect rather than the missing finding criterion.
* **C — Assigning inconsistent severity because the severity rubric omits impact boundaries.**: Severity ambiguity concerns ranking established findings.
* **D — Reviewing an older commit because the source-fetch step uses a stale revision.**: A stale revision is a source-selection failure, not the ambiguity in the quoted instruction.

## Question 4

Type: single\_choice
Knowledge point: The importance of explicit criteria over vague instructions (e.g., "flag comments only when claimed behavior contradicts actual code behavior" vs "check that comments are accurate")

A comment says an empty request is rejected. Which evidence meets a verification bar for reporting that the comment contradicts current behavior?

### Options

**A**

The current handler and a test show an empty request reaches the success response.

**B**

The handler is named acceptRequest and its declaration is cited.

**C**

A log from an earlier release shows a successful nonempty request.

**D**

The current schema documents the preferred nonempty request format.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — The current handler and a test show an empty request reaches the success response.**: The reachable implementation and matching test directly contradict the claimed rejection.
* **B — The handler is named acceptRequest and its declaration is cited.**: A name does not establish empty-request behavior.
* **C — A log from an earlier release shows a successful nonempty request.**: Different input and revision do not verify the current claim.
* **D — The current schema documents the preferred nonempty request format.**: A preferred format does not show what the handler actually does with empty input.

## Question 5

Type: single\_choice
Knowledge point: The importance of explicit criteria over vague instructions (e.g., "flag comments only when claimed behavior contradicts actual code behavior" vs "check that comments are accurate")

Which instruction is an explicit requirement for a code-behavior claim?

### Options

**A**

Cite the source path and lines whose reachable logic supports the stated behavior.

**B**

Cite the declaration of the function whose name suggests that behavior.

**C**

Cite a passing test for a different branch of the same function.

**D**

Cite the module documentation without checking the implementation.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Cite the source path and lines whose reachable logic supports the stated behavior.**: Both the source location and its connection to the behavioral conclusion are required.
* **B — Cite the declaration of the function whose name suggests that behavior.**: Declaration naming alone does not establish behavior.
* **C — Cite a passing test for a different branch of the same function.**: An unrelated branch does not verify the claim.
* **D — Cite the module documentation without checking the implementation.**: Documentation can itself be the unverified claim.

## Question 6

Type: single\_choice
Knowledge point: The importance of explicit criteria over vague instructions (e.g., "flag comments only when claimed behavior contradicts actual code behavior" vs "check that comments are accurate")

A reviewer says a defect is fixed, but logs from the current commit and validation run still show the reported failure. Which prompt instruction best distinguishes a verified result from a theoretical extrapolation?

### Options

**A**

Require explicit success criteria and empirical validation before claiming a fix.

**B**

Instruct the reviewer to carefully use its judgment to decide if the failure logs matter.

**C**

Accept passing unit tests for an unrelated module as validation of the fix.

**D**

Inspect the changed branch and infer success from its intended logic.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Require explicit success criteria and empirical validation before claiming a fix.**: Explicit criteria and empirical tests require evidence that the failure is resolved before accepting a completion claim.
* **B — Instruct the reviewer to carefully use its judgment to decide if the failure logs matter.**: A general caution lacks the concrete verification procedure needed to properly evaluate the conflicting error logs.
* **C — Accept passing unit tests for an unrelated module as validation of the fix.**: Unrelated passing tests do not reproduce or resolve the reported failure.
* **D — Inspect the changed branch and infer success from its intended logic.**: An intended code path is not empirical evidence that the failing case now succeeds.

## Question 7

Type: single\_choice
Knowledge point: How general instructions like "be conservative" or "only report high-confidence findings" fail to improve precision compared to specific categorical criteria

Why can “only report high-confidence findings” fail to improve a review agent’s precision?

### Options

**A**

It lacks clear categorical criteria to distinguish verified facts from extrapolations.

**B**

It lowers precision because a higher reporting threshold necessarily admits more findings.

**C**

It is ineffective only when a second reviewer is unavailable to repeat the same confidence judgment.

**D**

It defines adequate evidence but fails because the output does not include a numerical confidence field.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — It lacks clear categorical criteria to distinguish verified facts from extrapolations.**: Abstract confidence wording does not specify what evidence qualifies a finding or how unsupported claims should be handled.
* **B — It lowers precision because a higher reporting threshold necessarily admits more findings.**: A higher threshold does not necessarily admit more findings; the issue is the undefined evidence basis.
* **C — It is ineffective only when a second reviewer is unavailable to repeat the same confidence judgment.**: A second ungrounded judgment does not supply missing criteria.
* **D — It defines adequate evidence but fails because the output does not include a numerical confidence field.**: A numerical field does not establish what evidence qualifies a claim.

## Question 8

Type: single\_choice
Knowledge point: How general instructions like "be conservative" or "only report high-confidence findings" fail to improve precision compared to specific categorical criteria

A report must distinguish observed results from predictions. Which prompt rule defines usable evidence categories?

### Options

**A**

Label reproduced outcomes verified, deductions from cited premises inferred, and claims lacking either basis unverified.

**B**

Label all claims from a passing build verified, including runtime paths the build did not execute.

**C**

Label a claim verified when two generated summaries agree, and inferred when they disagree.

**D**

Label claims verified above a self-reported confidence threshold and unverified below it.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Label reproduced outcomes verified, deductions from cited premises inferred, and claims lacking either basis unverified.**: The labels distinguish observed evidence, supported deductions, and missing support.
* **B — Label all claims from a passing build verified, including runtime paths the build did not execute.**: A build does not verify every runtime outcome.
* **C — Label a claim verified when two generated summaries agree, and inferred when they disagree.**: Generated agreement does not establish independent evidence.
* **D — Label claims verified above a self-reported confidence threshold and unverified below it.**: An uncalibrated score is not a verification protocol.

## Question 9

Type: multiple\_choice
Knowledge point: How general instructions like "be conservative" or "only report high-confidence findings" fail to improve precision compared to specific categorical criteria

A support agent says an incident is fixed while the logs still show failures and makes an unverified claim about an API edge case. Which two instructions would make its reporting criteria operational? (Choose 2.)

### Options

**A**

For behavior claims, cite supporting code; for recovery claims, require current-version logs or tests that meet the defined success criteria.

**B**

“Mark a claim as uncertain when evidence fails to verify it.”

**C**

“Only report high-confidence findings.”

**D**

Accept a passing build as evidence that every reported runtime incident is resolved.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — For behavior claims, cite supporting code; for recovery claims, require current-version logs or tests that meet the defined success criteria.**: Code can ground an API claim, while matching runtime evidence is needed to establish recovery.
* **B — “Mark a claim as uncertain when evidence fails to verify it.”**: An uncertainty marker distinguishes an unverified claim when evidence fails to verify it.
* **C — “Only report high-confidence findings.”**: The revised instruction supplies no evidence requirement or procedure for handling an unsupported claim; it relies only on an abstract confidence label.
* **D — Accept a passing build as evidence that every reported runtime incident is resolved.**: Compilation or an unrelated passing build does not prove that the incident stopped recurring.

## Question 10

Type: multiple\_choice
Knowledge point: The impact of false positive rates on developer trust: high false positive categories undermine confidence in accurate categories

A code-review agent repeatedly reports incorrect bugs in one review category. Developers then begin to scrutinize its valid security findings from other categories manually. Which two conclusions are supported? (Choose 2.)

### Options

**A**

False positives in one category can undermine overall confidence in other accurate categories.

**B**

Repeated false positives increase manual verification costs and can reduce automation benefits.

**C**

Additional manual checks show that security precision must have deteriorated.

**D**

Accurate security findings will retain developer trust as long as their labels remain unchanged.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — False positives in one category can undermine overall confidence in other accurate categories.**: Developers can generalize a noisy category experience to the shared reviewer.
* **B — Repeated false positives increase manual verification costs and can reduce automation benefits.**: Rechecking output consumes time and reduces the gains from automation.
* **C — Additional manual checks show that security precision must have deteriorated.**: Review effort is not itself evidence of lower classification precision.
* **D — Accurate security findings will retain developer trust as long as their labels remain unchanged.**: Unchanged labels do not prevent trust from spilling across categories.

## Question 11

Type: single\_choice
Knowledge point: The impact of false positive rates on developer trust: high false positive categories undermine confidence in accurate categories

A review bot's style category has 70 false positives among 100 checked findings; its security category has 2 among 100\. The samples were independently adjudicated using the same criteria on comparable changes. After weeks of mixed reports, developers dismiss security findings without opening their evidence, even though the checked security error rate is unchanged. Which explanation best fits the observation?

### Options

**A**

Noise in one category may have reduced trust in the bot’s accurate categories.

**B**

The unchanged security error rate proves that developers' trust in security findings is unchanged.

**C**

Combining the categories makes every security finding as unreliable as a style finding.

**D**

Dismissal frequency is itself proof that the security findings are false.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Noise in one category may have reduced trust in the bot’s accurate categories.**: The comparable audits and dismissals support trust spillover as an explanation; they do not by themselves prove causation.
* **B — The unchanged security error rate proves that developers' trust in security findings is unchanged.**: Observed dismissals show a behavior change; a stable measured error rate does not force trust to remain stable.
* **C — Combining the categories makes every security finding as unreliable as a style finding.**: Category aggregation does not alter whether an individual security finding is correct or its category's observed error rate.
* **D — Dismissal frequency is itself proof that the security findings are false.**: Dismissal can reflect lost trust or prioritization; it is not an adjudicated truth label.

## Question 12

Type: single\_choice
Knowledge point: The impact of false positive rates on developer trust: high false positive categories undermine confidence in accurate categories

Two teams receive security findings from the same frozen detector, with 95 of 100 audited findings correct in each team. Team X also receives a new style category with 30 of 100 findings correct; Team Y does not. Security evidence-open rates fall from 80% to 35% in X but stay near 80% in Y. The next release must retain security coverage. Which response best fits the evidence and the remaining uncertainty?

### Options

**A**

Treat noisy style reports as a plausible cause of cross-category distrust; temporarily withhold them, retain security reports, and compare category accuracy and security engagement in a controlled rollout.

**B**

Raise the security detector's confidence threshold until X sees fewer security reports, since declining engagement establishes a security precision regression.

**C**

Hide the category names and combine all scores, since the pooled accuracy is sufficient to explain individual security findings.

**D**

Replace the security detector immediately, because X's reduced evidence-open rate outweighs the matching audited security results.

Correct answer: A

### Explanation

The matched security audits weaken a security-quality explanation, while the difference in exposure supports a style-noise hypothesis. A controlled change can test that hypothesis while preserving security coverage.

## Question 13

Type: multiple\_choice
Knowledge point: The impact of false positive rates on developer trust: high false positive categories undermine confidence in accurate categories

A pilot mixes security and style findings. Independently labeled results are: security 190 correct/200; style 40 correct/200\. Security evidence-open rates fall from 75% to 30% after style reports are added. A proposed global filter would retain security 100 correct/100 and style 20 correct/20, but discard 90 known-correct security findings. The team must preserve at least 180 correct security findings in this labeled pilot while investigating trust. Which two decisions are justified? (Choose 2.)

### Options

**A**

Retain the existing security stream and temporarily withhold style reports while comparing security engagement with an unchanged control group.

**B**

Evaluate a revised style prompt on separately labeled cases and require a documented category precision target before staged reinstatement.

**C**

Keep all 190 correct security findings visible and withhold style reports; treat a subsequent before-and-after rise in security evidence-open rate as proof that style caused the decline, without an unchanged control.

**D**

Keep all 190 correct security findings visible and withhold style reports; reinstate the unchanged style prompt as soon as security evidence-open rate returns to 75%, without separately relabeling its output.

Correct answer: A, B

### Explanation

The global filter fails the explicit security-coverage requirement. Category-specific intervention and separately evaluated reinstatement address noise without confusing engagement with correctness.

## Question 14

Type: single\_choice
Knowledge point: Writing specific review criteria that define which issues to report (bugs, security) versus skip (minor style, local patterns) rather than relying on confidence-based filtering

For this managed Code Review setup, CLAUDE.md supplies project-wide guidance and REVIEW.md supplies review-only severity and skip criteria. The team wants to exclude minor style comments without affecting implementation tasks. Which configuration fits?

### Options

**A**

Put the exclusion in CLAUDE.md as a general project instruction.

**B**

Put the exclusion in REVIEW.md as a review reporting criterion.

**C**

Put the exclusion in the application formatter configuration alone.

**D**

Put the exclusion in the CI test selection configuration alone.

Correct answer: B

### Explanation

Correct answer: B.

Option analysis:

* **A — Put the exclusion in CLAUDE.md as a general project instruction.**: That location broadens the instruction beyond review-only behavior.
* **B — Put the exclusion in REVIEW.md as a review reporting criterion.**: The supplied responsibility matches the intended review-only scope.
* **C — Put the exclusion in the application formatter configuration alone.**: Formatting configuration does not define the reviewer’s reporting criteria.
* **D — Put the exclusion in the CI test selection configuration alone.**: Test selection does not establish the review category exclusion.

## Question 15

Type: single\_choice
Knowledge point: Writing specific review criteria that define which issues to report (bugs, security) versus skip (minor style, local patterns) rather than relying on confidence-based filtering

A team defines Important findings as reachable defects that can cause incorrect business results or unauthorized access and should be fixed before merge. Its review policy skips minor naming preferences. Which finding meets the Important criterion?

### Options

**A**

An internal variable uses a different abbreviation from neighboring code without changing behavior.

**B**

A comment wraps at a different column from the repository’s preferred style.

**C**

A new endpoint returns another customer’s invoice because a reachable path omits the ownership check.

**D**

A helper has a longer name than the team prefers, while all documented behavior is preserved.

Correct answer: C

### Explanation

Correct answer: C.

Option analysis:

* **A — An internal variable uses a different abbreviation from neighboring code without changing behavior.**: The stated naming difference has no qualifying behavioral impact.
* **B — A comment wraps at a different column from the repository’s preferred style.**: Line wrapping does not meet the defect criterion.
* **C — A new endpoint returns another customer’s invoice because a reachable path omits the ownership check.**: The reachable authorization defect satisfies the explicit impact threshold.
* **D — A helper has a longer name than the team prefers, while all documented behavior is preserved.**: Naming preference alone is excluded by the supplied review policy.

## Question 16

Type: multiple\_choice
Knowledge point: Writing specific review criteria that define which issues to report (bugs, security) versus skip (minor style, local patterns) rather than relying on confidence-based filtering

A repository review policy excludes generated source artifacts and dependency lockfiles, but includes handwritten generators and test fixtures. Which two files should the policy exclude? (Choose 2.)

### Options

**A**

src/generated/client.ts, marked as generated output by the client generator.

**B**

package-lock.json, the dependency resolver’s lockfile.

**C**

scripts/generate-client.ts, the handwritten program that emits client.ts.

**D**

tests/fixtures/client.ts, a handwritten fixture used to test the generator.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — src/generated/client.ts, marked as generated output by the client generator.**: The file is a generated artifact covered by the exclusion.
* **B — package-lock.json, the dependency resolver’s lockfile.**: It is a dependency lockfile covered by the exclusion.
* **C — scripts/generate-client.ts, the handwritten program that emits client.ts.**: The handwritten generator is explicitly included.
* **D — tests/fixtures/client.ts, a handwritten fixture used to test the generator.**: The handwritten fixture is included even though its name resembles generated output.

## Question 17

Type: multiple\_choice
Knowledge point: Writing specific review criteria that define which issues to report (bugs, security) versus skip (minor style, local patterns) rather than relying on confidence-based filtering

A repository defines Important as an introduced, reachable defect that can lose data or violate authorization; it skips formatter-only differences and accepted local patterns. In a second review round, P identifies an unchecked delete reachable by a viewer in a reproduced request. Q identifies a warning in a generated fixture with no production call path. R dislikes an unchanged local naming pattern. Which two additions to REVIEW.md best implement this policy without concealing P? (Choose 2.)

### Options

**A**

Require a production-reachable path and concrete impact before treating a warning as Important; Q's warning alone does not qualify.

**B**

Keep newly demonstrated Important findings eligible in later rounds and suppress formatter-only or accepted-pattern comments such as R.

**C**

Report P and suppress R, but classify Q as Important because its warning is introduced by the diff even though it has no production call path.

**D**

Require production reachability and concrete impact for severity, but admit only finding identities reported in round one; withhold the newly reproduced P until a future change opens another review.

Correct answer: A, B

### Explanation

Severity depends on reachability and impact, and convergence depends on finding category. Those criteria retain P while excluding the unsupported warning escalation and local-style churn.

## Question 18

Type: single\_choice
Knowledge point: Writing specific review criteria that define which issues to report (bugs, security) versus skip (minor style, local patterns) rather than relying on confidence-based filtering

A managed review run confirms it loaded the current REVIEW.md. Its skip rule names generated/\*, while the reported generated file is packages/api/generated/client.ts. What should the team check first?

### Options

**A**

Whether the skip pattern covers the nested generated directory in the actual repository layout.

**B**

Whether the run loaded an older REVIEW.md despite the confirmed content match.

**C**

Whether a higher severity threshold will make the generated-file path match the existing rule.

**D**

Whether adding more labeled bug examples will change the existing skip pattern’s path scope.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Whether the skip pattern covers the nested generated directory in the actual repository layout.**: The observed path differs from the rule’s specified location, directly explaining the likely mismatch.
* **B — Whether the run loaded an older REVIEW.md despite the confirmed content match.**: The stem already establishes that the current file was loaded.
* **C — Whether a higher severity threshold will make the generated-file path match the existing rule.**: Severity thresholds do not expand path coverage.
* **D — Whether adding more labeled bug examples will change the existing skip pattern’s path scope.**: Bug examples do not repair the path scope of the exclusion.

## Question 19

Type: single\_choice
Knowledge point: Temporarily disabling high false-positive categories to restore developer trust while improving prompts for those categories

A managed Code Review category repeatedly produces unsupported findings. The team wants to pause that category's reported findings while improving its criteria. Which approach fits that goal?

### Options

**A**

Add a category filter only to the evaluation dashboard and monitor whether developers see fewer reports.

**B**

Withhold the category through a reporting filter, refine its criteria, and restore it after category-specific evaluation.

**C**

Continue publishing the category while using only aggregate precision to decide whether it has improved.

**D**

Raise the category’s self-reported confidence threshold and restore it when the average score increases.

Correct answer: B

### Explanation

Correct answer: B.

Option analysis:

* **A — Add a category filter only to the evaluation dashboard and monitor whether developers see fewer reports.**: Filtering an evaluation dashboard does not withhold production findings.
* **B — Withhold the category through a reporting filter, refine its criteria, and restore it after category-specific evaluation.**: A reporting filter enforces the pause, while evaluation supplies evidence for reinstatement.
* **C — Continue publishing the category while using only aggregate precision to decide whether it has improved.**: Publishing continues the noise, and aggregate precision can hide the category’s errors.
* **D — Raise the category’s self-reported confidence threshold and restore it when the average score increases.**: An uncalibrated confidence increase does not establish improved precision.

## Question 20

Type: single\_choice
Knowledge point: Temporarily disabling high false-positive categories to restore developer trust while improving prompts for those categories

A finding category has been withheld from an automated workflow after many unsupported claims. Before the team reintroduces its outputs, the agent again says a fix is complete while logs show failure. Which change targets the underlying calibration problem?

### Options

**A**

Define the success evidence required, check current logs and tests against it, and mark unsupported completion claims as unverified.

**B**

Direct the agent to make completion claims more decisive when reporting its status.

**C**

Lower the supported sampling temperature while leaving the success criteria unchanged.

**D**

Inspect the proposed code path and accept its intended outcome without rerunning the failure.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Define the success evidence required, check current logs and tests against it, and mark unsupported completion claims as unverified.**: The evidence check directly addresses the mismatch between reported completion and observed failure.
* **B — Direct the agent to make completion claims more decisive when reporting its status.**: Making claims more decisive worsens the mismatch between confidence and actual evidence.
* **C — Lower the supported sampling temperature while leaving the success criteria unchanged.**: Lower variability does not define the success evidence or resolve the observed failure.
* **D — Inspect the proposed code path and accept its intended outcome without rerunning the failure.**: A plausible repair still needs current execution evidence before completion is verified.

## Question 21

Type: single\_choice
Knowledge point: Temporarily disabling high false-positive categories to restore developer trust while improving prompts for those categories

A team withholds a noisy review category and sets a reintroduction target of at least 90% precision on independently labeled examples from each affected subcategory. Which approach satisfies that policy?

### Options

**A**

Improve its criteria, evaluate the affected subcategories, and restore reporting after each meets the chosen target.

**B**

Restore it when overall precision across all categories reaches 90%, even if affected subcategories remain below target.

**C**

Restore it when its mean self-reported confidence exceeds 90%, using the same unlabeled examples.

**D**

Restore it when its report volume falls by 90%, without adjudicating the remaining findings.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Improve its criteria, evaluate the affected subcategories, and restore reporting after each meets the chosen target.**: It applies the stated segment-level evidence threshold.
* **B — Restore it when overall precision across all categories reaches 90%, even if affected subcategories remain below target.**: Accurate categories can mask continuing problems in affected subcategories.
* **C — Restore it when its mean self-reported confidence exceeds 90%, using the same unlabeled examples.**: Self-reported confidence is not measured precision.
* **D — Restore it when its report volume falls by 90%, without adjudicating the remaining findings.**: Lower volume does not establish that the remaining findings are correct.

## Question 22

Type: single\_choice
Knowledge point: Temporarily disabling high false-positive categories to restore developer trust while improving prompts for those categories

Reviewers confirm that 75% of style findings are false positives, while security findings remain accurate. The team temporarily stops posting style findings but continues evaluating revised style criteria on held-out cases. Why is this a reasonable response?

### Options

**A**

It reduces the current source of noise while creating evidence for a later decision to reinstate the category.

**B**

Restore the category as soon as developer complaints decline, without evaluating revised findings.

**C**

It establishes that every developer dismissal is a false-positive label.

**D**

It makes continued evaluation unnecessary because withholding a category corrects its detector.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — It reduces the current source of noise while creating evidence for a later decision to reinstate the category.**: The action preserves useful security output and links temporary suppression to evidence-based improvement.
* **B — Restore the category as soon as developer complaints decline, without evaluating revised findings.**: Complaint volume can decline simply because reporting is paused; it does not show improved precision.
* **C — It establishes that every developer dismissal is a false-positive label.**: The stem's confirmed false positives are adjudicated evidence; unexamined dismissals can have other reasons.
* **D — It makes continued evaluation unnecessary because withholding a category corrects its detector.**: Suppressing publication does not change how the detector reasons, so evaluation remains necessary.

## Question 23

Type: multiple\_choice
Knowledge point: Temporarily disabling high false-positive categories to restore developer trust while improving prompts for those categories

A team temporarily withholds a high-false-positive finding category while improving its prompts. Which two controls support a responsible return of that category? (Choose 2.)

### Options

**A**

Keep the category excluded from user-facing reports until the revised criteria are evaluated.

**B**

Check old false positives as regressions and require the recovery threshold on representative, independently labeled holdout cases not used for prompt tuning.

**C**

Restore the category when its average self-reported confidence improves on the same cases.

**D**

Evaluate only easy examples from a different category before restoring the withheld category.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — Keep the category excluded from user-facing reports until the revised criteria are evaluated.**: Withholding controls exposure while the criteria are being repaired.
* **B — Check old false positives as regressions and require the recovery threshold on representative, independently labeled holdout cases not used for prompt tuning.**: Old false positives test whether known failures recur; an untouched representative holdout tests generalization beyond the tuning cases before reporting resumes.
* **C — Restore the category when its average self-reported confidence improves on the same cases.**: Confidence alone is not measured correctness.
* **D — Evaluate only easy examples from a different category before restoring the withheld category.**: A different easy category does not validate the withheld category.

## Question 24

Type: multiple\_choice
Knowledge point: Temporarily disabling high false-positive categories to restore developer trust while improving prompts for those categories

A bot's resource-leak category produced 70 false findings out of 100, and developers began ignoring its accurate injection findings. The team temporarily suppresses resource-leak comments while testing prompt changes in shadow mode. Its predeclared restoration gates are at least 90% precision in EACH of two code segments and detection of at least 18 of 20 known leaks. Candidate P has 96/100 correct reports in conventional code, 14/20 in framework-managed code, and detects 19/20 known leaks. Candidate Q has 46/50 and 47/50 correct reports and detects only 12/20 known leaks. Which two actions best balance restoring trust and retaining useful leak detection? (Choose 2.)

### Options

**A**

Keep the noisy category suppressed for now; neither candidate meets every restoration gate, while reliable injection findings can remain visible.

**B**

Use the two failure patterns to refine separate examples: acceptable framework cleanup for P and missed genuine leaks for Q, then retest both gates before a staged restoration.

**C**

Check both segments separately: P has96% and70%, Q has92% and94%. Restore only Q across both segments because its precisions pass, deferring the18/20 known-leak gate until post-restoration monitoring.

**D**

Check both segments separately and keep both candidates in shadow mode while refining their error cases. Then restore when pooled precision exceeds90% and18/20 known leaks are detected, even if framework precision remains below90%.

Correct answer: A, B

### Explanation

The gates are conjunctive. P reaches 96% precision in conventional code and detects19/20 known leaks, but its framework precision is14/20=70%, below90%. Q reaches92% and94% precision, but detects12/20, below18/20\. Neither qualifies for restoration. Targeted refinement of framework false positives and missed leaks, followed by retesting both segment precision and detection, can inform staged restoration without suppressing reliable injection findings.

## Question 25

Type: single\_choice
Knowledge point: Defining explicit severity criteria with concrete code examples for each severity level to achieve consistent classification

A team defines Important as a reachable defect requiring correction before merge, Nit as a minor non-blocking issue, and Pre-existing as a defect already present before the PR. A new endpoint exposes protected data to unauthorized callers. Which classification follows these criteria?

### Options

**A**

Important

**B**

Nit

**C**

Pre-existing

**D**

Skip because the endpoint has a passing happy-path test.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Important**: The introduced authorization defect meets the supplied pre-merge correction criterion.
* **B — Nit**: Nit is a minor, non-blocking issue.
* **C — Pre-existing**: Pre-existing identifies a bug not introduced by the pull request.
* **D — Skip because the endpoint has a passing happy-path test.**: A happy-path test does not negate the reachable unauthorized-access defect.

## Question 26

Type: multiple\_choice
Knowledge point: Defining explicit severity criteria with concrete code examples for each severity level to achieve consistent classification

A team is defining a code-review severity rubric. Its policy reserves Critical for a demonstrated cross-tenant data exposure, Major for a reproducible request failure affecting only the requesting tenant, and Minor for maintainability problems without a demonstrated behavior change. Reviewers currently label every missing check Critical. Case X calls lookupById(id) and returns another tenant's record; its integration test demonstrates that result. Case Y calls lookupWithinTenant(id, tenant), which enforces tenant isolation, but an absent record reaches record.name and causes a 500 response. Which two rubric entries use criteria and code examples that resolve this inconsistency? (Choose 2.)

### Options

**A**

Use X as a Critical example, tying severity to the demonstrated unauthorized data flow rather than the mere absence of a visible local check.

**B**

Use Y as a Major example, showing the tenant-filtered lookup and failing absent-record path so reviewers distinguish availability impact from cross-tenant exposure.

**C**

Use X as Critical because its test exposes another tenant's record; use Y as Minor because lookupWithinTenant enforces isolation, treating its reproduced500 as a maintainability issue.

**D**

Use Y as Major because the absent-record path returns500; use X as Major too because only the requesting tenant triggers the lookup, despite receiving another tenant's record.

Correct answer: A, B

### Explanation

Concrete contrasting examples should connect severity to demonstrated impact and safeguards. A shared surface pattern does not imply equal severity.

## Question 27

Type: multiple\_choice
Knowledge point: Defining explicit severity criteria with concrete code examples for each severity level to achieve consistent classification

An automated reviewer inconsistently labels similar bugs as Important or Nit. Which two changes directly clarify the severity decision? (Choose 2.)

### Options

**A**

Define severity using concrete impact criteria, such as reproducible data loss versus a minor non-blocking inconsistency.

**B**

Provide reviewed examples showing each level and explain why boundary cases receive their label.

**C**

Define severity by the number of changed lines and use that rule for every finding.

**D**

Assign severity from the current report volume so each run has a similar mix of labels.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — Define severity using concrete impact criteria, such as reproducible data loss versus a minor non-blocking inconsistency.**: Explicit impact criteria define the meaning of each severity level.
* **B — Provide reviewed examples showing each level and explain why boundary cases receive their label.**: Reviewed examples and boundary rationales demonstrate how to apply those criteria consistently.
* **C — Define severity by the number of changed lines and use that rule for every finding.**: Change size does not reliably distinguish the impact of a defect.
* **D — Assign severity from the current report volume so each run has a similar mix of labels.**: A target label mix does not define case-level severity.

## Question 28

Type: single\_choice
Knowledge point: Defining explicit severity criteria with concrete code examples for each severity level to achieve consistent classification

A team marks a finding Pre-existing only when the defect also occurs on the PR’s base revision. An authorization defect is reproducible on both base and head with the same request. The PR only changes response formatting and does not change that execution path. How should the review classify the finding’s origin?

### Options

**A**

Introduced by this PR because the affected file appears in the diff.

**B**

Introduced by this PR because the defect was first discovered during this review.

**C**

Pre-existing because the same defect is reproducible on the unchanged base path.

**D**

Resolved by this PR because response formatting changed in the affected file.

Correct answer: C

### Explanation

Correct answer: C.

Option analysis:

* **A — Introduced by this PR because the affected file appears in the diff.**: A changed file does not prove that every defect in it was introduced by the change.
* **B — Introduced by this PR because the defect was first discovered during this review.**: Discovery time and introduction time are different.
* **C — Pre-existing because the same defect is reproducible on the unchanged base path.**: Matching base and head reproduction establishes that the defect predates the PR.
* **D — Resolved by this PR because response formatting changed in the affected file.**: The formatting change does not repair the unchanged authorization path.

## Question 29

Type: single\_choice
Knowledge point: Defining explicit severity criteria with concrete code examples for each severity level to achieve consistent classification

A team’s review guideline reports minor naming inconsistencies as Nit, significant behavioral defects as Important, and bugs already present before the PR as Pre-existing. A variable introduced by this PR has a minor naming inconsistency and no behavioral impact. Which review decision follows the guideline?

### Options

**A**

Report it as Important, treating introduction by this PR as sufficient severity evidence.

**B**

Report it as Nit, applying the rule for minor naming inconsistencies.

**C**

Classify it as Pre-existing, treating similarity to older variable names as proof that it predates the PR.

**D**

Omit it from the report, treating absence of behavioral impact as an exclusion for every category.

Correct answer: B

### Explanation

Correct answer: B.

Option analysis:

* **A — Report it as Important, treating introduction by this PR as sufficient severity evidence.**: Being newly introduced does not establish significant behavioral impact.
* **B — Report it as Nit, applying the rule for minor naming inconsistencies.**: The issue directly meets the supplied minor-naming rule.
* **C — Classify it as Pre-existing, treating similarity to older variable names as proof that it predates the PR.**: The variable was introduced by this PR; similar names do not establish that this issue existed earlier.
* **D — Omit it from the report, treating absence of behavioral impact as an exclusion for every category.**: The guideline explicitly includes minor naming findings even without behavioral impact.

## Question 30

Type: single\_choice
Knowledge point: Defining explicit severity criteria with concrete code examples for each severity level to achieve consistent classification

The team chooses a 95% target for agreement with its severity rubric. Which evaluation criterion directly measures whether the reviewer applies that rubric consistently?

### Options

**A**

At least 95% agreement with adjudicated severity labels on a fixed 1,000-case set including boundary cases.

**B**

At least 95% of findings include a nonempty severity field on the same 1,000-case set.

**C**

At least 95% of findings preserve their label across repeated runs, without reference labels.

**D**

At least 95% of review runs finish within the team’s latency target.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — At least 95% agreement with adjudicated severity labels on a fixed 1,000-case set including boundary cases.**: Reference-label agreement measures conformity to the chosen rubric; 95% is a team threshold.
* **B — At least 95% of findings include a nonempty severity field on the same 1,000-case set.**: Field completeness does not measure correct severity.
* **C — At least 95% of findings preserve their label across repeated runs, without reference labels.**: Consistent repetition can preserve consistently wrong labels.
* **D — At least 95% of review runs finish within the team’s latency target.**: Latency is operational performance rather than severity agreement.

