A retailer’s CI pipeline runs Claude to review every pull request. Engineers report that most comments are about variable naming, missing docstrings and possible null values that the type checker already rules out, and they have started ignoring the bot.
Which change most directly improves precision without losing real bug reports?
A hospital triage assistant labels incoming patient-portal messages as urgent or routine. Staff find that messages with words like “severe” or “emergency” are always marked urgent, even when they describe an old, resolved problem.
An insurer’s claim classifier has a detailed system prompt defining each claim type. Reviewers find it consistently puts storm-damaged vehicles under “weather” one day and “motor” the next, depending on wording.
An extraction prompt pulls invoice fields from supplier PDFs. All four examples in the prompt show complete invoices. On invoices with no purchase-order number, the model sometimes returns a plausible-looking but invented PO number.
An internal IT agent calls a create_ticket tool. Calls are valid JSON, but dates arrive in three different formats and the optional reporter object is filled in with guessed values.
Which two changes are most appropriate? (Select 2.)
A claims pipeline asks Claude to “respond only with valid JSON” describing each claim. Roughly one response in fifty has a sentence before the JSON or a missing key, and the loader crashes.
A mailroom agent receives invoices, receipts and purchase orders mixed together, unlabelled. There is a separate extraction tool for each type, and every document must produce structured data.
After moving to strict tool use, an extraction pipeline never produces malformed JSON. An audit finds that on contracts with no renewal date, renewal_date is filled with the signature date. The field is a required string.
A shipping company’s extraction pipeline validates each bill of lading. When the container count does not match the listed containers, it resends the same request, up to three times. Most failing documents fail all three attempts.
What change will most improve the retry success rate?
An HR system extracts employee start dates from signed offer letters. Some older letters were signed without a stated start date. The validator rejects records without a date and triggers a retry.
A bank extracts loan applications with a strict extraction tool, so every response matches the schema. Auditors find cases where monthly income exceeds annual income, and where the applicant’s name was taken from the referee section.
Which two measures address these errors? (Select 2.)
A team runs two Claude workloads: a check that must pass before a pull request can merge, and an overnight job that summarises every support ticket from the previous day for a morning dashboard.
A batch of 20,000 extraction requests ends with 19,640 succeeded, 300 errored with invalid_request_error, and 60 expired. The engineer’s first instinct is to resubmit the entire batch.
A compliance team must have each uploaded contract reviewed within 30 hours of upload. They want to use the Batches API to cut cost, and documents arrive at random times throughout the day.
How often must they submit batches to guarantee the deadline?
An engineering team’s code-generation agent writes a module, then in the same conversation is asked “Review the code you just wrote for bugs.” It almost always reports no significant issues, yet human reviewers keep finding logic errors.
A single-pass review of a 35-file pull request returns a handful of style comments and misses that a shared function’s return type changed while three callers were not updated.