Anthropic CCA-F Practice Test 48
Question 470
A payment extractor reports uncertain totals immediately before an irreversible transfer. Which authorization control should stop an unsupported transaction from committing?
- Require human confirmation before committing the transaction
- Send the exact validation error back for a bounded corrective retry
- Cap retries and escalate or return a controlled failure
- Mark the required field unknown and route through the defined exception policy
Explanation
Correct Answer
A:An extractor returns low-confidence totals and the business action is irreversible. The relevant control is to require human confirmation before committing the transaction. Validation and approval thresholds should reflect the consequence of a wrong decision. Treat repair attempts as bounded corrections driven by exact validation failures.
Incorrect Answers
B:Targeted feedback lets the model repair the specific failed field rather than guessing why output was rejected. Here, an extractor returns low-confidence totals and the business action is irreversible. Require human confirmation before committing the transaction. Validation and approval thresholds should reflect the consequence of a wrong decision.
C:Capping retries avoids endless schema repair, but the problem is an uncertain total that could trigger an irreversible transaction. Even a syntactically valid extraction can be wrong; the system must require authorized human confirmation before committing the high-consequence business action.
D:Explicit missing-data handling is safer than inventing an invoice identifier. The direct remedy is “Require human confirmation before committing the transaction”, which the alternative does not itself accomplish. Validation and approval thresholds should reflect the consequence of a wrong decision.
Question 471
An extractor states '100% confident' while returning an invalid date. What should determine acceptance?
- Recalculate arithmetic deterministically and feed any mismatch into a controlled correction step
- Apply format and business validators regardless of model-reported confidence
- Set a maximum retry count with an explicit fallback or human-review outcome
- Return field-specific path, expected type and observed value in the correction feedback
Explanation
Correct Answer
B:Self-reported confidence is not a machine-verifiable guarantee that an object matches the required schema. Apply deterministic JSON validation and then check semantic constraints, such as account identifiers and invoice totals, against authoritative data. The model can explain why it made a choice, but the actual acceptance decision belongs to explicit validators and business rules.
Incorrect Answers
A:Numerical invariants are testable in code. The decisive requirement here is to base extraction acceptance on external validation. A deterministic arithmetic checker cannot establish that an unparseable date is valid. Validate the date itself and reject the unsupported confidence claim.
C:A retry ceiling may stop an invalid-date loop, but cannot make a claimed 100-percent confidence score reliable. Evaluate the actual date against format and business rules, rejecting malformed output regardless of the model's expressed certainty.
D:Field-specific correction details help the model repair a failed date, but acceptance must first depend on deterministic validation. A detailed error message alone is not proof of correctness; validate the format and relevant business rules even when the model claims high confidence.
Question 472
A model marks a shipment both delivered and cancelled in one record. What validation layer detects this?
- Compare field values to the source's semantic labels or rules, not just JSON types
- Ask for a bounded correction of the invalid field while preserving validated fields
- Enforce business invariants that prohibit incompatible statuses and request a grounded correction
- Set a maximum retry count with an explicit fallback or human-review outcome
Explanation
Correct Answer
C:A schema may allow both booleans independently. Domain rules capture constraints between fields that types alone cannot express. A delivered-and-cancelled record can satisfy JSON field types yet contradict the domain's permitted state model. Check cross-field invariants before persistence and request a supported status correction from source evidence.
Incorrect Answers
A:Source-label checks distinguish shipping from billing addresses, but the failure is an impossible combination of delivered and cancelled statuses. Encode business invariants for mutually exclusive states and reject any result that violates them, even if the field types are valid.
B:Replacing an entire record can introduce fresh errors in already-correct fields. This alternative does not establish how to validate relationships between output fields in the stated workflow.
D:A retry ceiling prevents repeated correction attempts, but it does not detect that delivered and cancelled conflict in the same record. Define that business invariant explicitly, then provide a grounded correction or escalate if evidence is ambiguous.
Question 473
A company must classify 100,000 archival support notes by the next morning and can tolerate hours of latency. Which API pattern fits?
- Submit asynchronous Message Batches requests with stable custom identifiers
- Use the synchronous Messages API for the interactive request
- Process each result status separately and selectively resubmit eligible failures
- The asynchronous completion window cannot guarantee the required response latency
Explanation
Correct Answer
A:Batch processing suits large noninteractive work with relaxed deadlines and cost sensitivity. IDs support correlation of returned results to inputs. Use Message Batches for asynchronous, noninteractive work that tolerates delayed completion; assign each record a stable custom_id for later matching. A time-sensitive live chat should use the interactive API instead.
Incorrect Answers
B:A synchronous request is suited to live conversations with short response deadlines, but the company has a large overnight archival classification workload with no need for immediate answers. Message Batches can handle independent requests asynchronously and supply per-item results tracked by unique custom IDs; synchronous execution gives up the applicable throughput-cost tradeoff.
C:Partial success should not trigger repetition of the entire job. The required action is “Submit asynchronous Message Batches requests with stable custom identifiers”; the other measure addresses a separate concern. Use Message Batches for asynchronous, noninteractive work that tolerates delayed completion; assign each record a stable custom_id for later matching.
D:Batch completion time is unsuitable for tight interactive deadlines, but this archival job permits hours of processing and only needs completion by the following morning. Message Batches may fit that tolerance; use stable custom IDs and monitor status instead of assuming every request is synchronous.
Question 474
A live support chat needs a tool-assisted answer in less than two seconds. Should it use Message Batches?
- Use the synchronous Messages API for the interactive request
- Submit asynchronous Message Batches requests with stable custom identifiers
- Assume asynchronous Message Batches guarantee a complete response in under two seconds even while requests remain queued
- Submit the request to Message Batches and poll its status as the only mechanism for producing the live two-second response
Explanation
Correct Answer
A:Asynchronous batches are unsuitable when the customer is waiting on an immediate response. Real-time paths need predictable response handling. An interactive support answer has a strict user-facing latency requirement and may involve immediate tool result handoffs. Asynchronous bulk processing cannot guarantee timely per-turn responses.
Incorrect Answers
B:Stable custom IDs help associate results after an asynchronous batch, but they do not make its completion time fit a two-second live-chat deadline. A client waiting for a tool-assisted answer should use the synchronous Messages API and handle necessary tool turns in the interactive controller, rather than submit a queued batch.
C:Message Batches process independently and return results asynchronously rather than guaranteeing an interactive per-request deadline. An application with a strict two-second chat requirement should handle the immediate request through the synchronous Messages API and an appropriate live tool loop.
D:Polling a queued batch does not transform asynchronous work into a two-second interactive response. Even rapid polling cannot ensure that the batch starts and finishes before the chat deadline. Use the synchronous Messages API and, when a client tool is required, execute the corresponding tool turn in a live application controller.
Question 475
A batch contains thousands of documents and results arrive in a different order. How should consumers map outputs?
- Use Message Batches when its completion window fits the service deadline
- Assign a unique custom_id to each submitted request and join results by that ID
- A durable batch manifest and stable request identity to prevent duplicate submission
- Process each result status separately and selectively resubmit eligible failures
Explanation
Correct Answer
B:Asynchronous batches need not preserve original input order. Stable identifiers prevent merging another document's classification into the wrong row. Batch output order is not a contractual substitute for matching request IDs. Join every returned result to the original manifest using its custom_id before saving classifications.
Incorrect Answers
A:Large independent tasks can be submitted asynchronously to reduce throughput cost when immediate user response is not required. This is not a substitute for “Assign a unique custom_id to each submitted request and join results by that ID”; that control is necessary in the stated circumstances. Join every returned result to the original manifest using its custom_id before saving classifications.
C:Reliable bulk pipelines track what was already submitted and completed. Although useful elsewhere, it is not the direct mechanism to match asynchronous batch results to originating records.
D:Retrying only failed items helps recovery after results are identified, but cannot tell which out-of-order response belongs to which input. Assign a unique custom_id before submission and join every returned status and content to that identifier, independent of arrival order.
Question 476
A large batch finishes with some requests errored and others successful. What recovery approach fits?
- Assign a unique custom_id to each submitted request and join results by that ID
- Process each result status separately and selectively resubmit eligible failures
- Validate every returned item against its schema and business rules before loading
- Use Message Batches when its completion window fits the service deadline
Explanation
Correct Answer
B:Partial success should not trigger repetition of the entire job. Item-level status allows targeted retry without duplicating valid work. Track success and error status for each request separately and retry only eligible failures. Reissuing the entire batch after partial success can duplicate work and obscure which items were already processed.
Incorrect Answers
A:Asynchronous batches need not preserve original input order. That addresses a different part of the system, not the requirement to recover batch failures without reprocessing successes.
C:Asynchronous generation does not eliminate output errors. The decisive requirement here is to recover batch failures without reprocessing successes. Validating successful outputs is needed before database load, but it does not resolve per-item failures during batch execution. Track and selectively retry failed requests rather than treating the entire batch identically.
D:Choosing Message Batches is sensible when latency is nonurgent, but it does not resolve the partial failures already returned in this batch. Inspect each result's status and retry only eligible failures under policy while retaining successful outputs and their custom IDs.
Question 477
A weekly analytics run is nonurgent and budget-sensitive. Which choice best uses the batch tradeoff?
- Assign a unique custom_id to each submitted request and join results by that ID
- Log safe identifiers and status metadata while restricting or redacting sensitive payloads
- Use Message Batches when its completion window fits the service deadline
- Process each result status separately and selectively resubmit eligible failures
Explanation
Correct Answer
C:Large independent tasks can be submitted asynchronously to reduce throughput cost when immediate user response is not required. Each request needs a stable custom_id so results can be matched after unordered completion. The architecture must tolerate the batch completion window and handle per-item errors; it should not use batch processing when a live low-latency conversation is required.
Incorrect Answers
A:Asynchronous batches need not preserve original input order. Although useful elsewhere, it is not the direct mechanism to choose asynchronous batching for flexible noninteractive workloads.
B:Logging safe identifiers instead of sensitive prompts is a privacy control, not the primary tradeoff for a weekly, budget-sensitive job. Choose asynchronous Message Batches if its completion window meets the reporting deadline and track results by stable IDs.
D:Partial success should not trigger repetition of the entire job. This alternative does not establish how to choose asynchronous batching for flexible noninteractive workloads in the stated workflow.
Question 478
An overnight processing job fails silently because the team never checks batch state. What should the architecture add?
- Use Message Batches when its completion window fits the service deadline
- Poll job status or use supported completion mechanisms and record terminal outcomes
- Retrieve and persist completed results within the documented retention period
- Partition work into traceable bounded batches according to provider limits and downstream capacity
Explanation
Correct Answer
B:Asynchronous submission is not completion. A lifecycle tracker is needed to distinguish queued, running, succeeded and failed work. Persist batch identifiers and monitor terminal status so a finished or failed job does not disappear overnight. Completion cannot be inferred from the time it was submitted.
Incorrect Answers
A:Batches can reduce inference cost but introduce variable completion timing. That addresses a different part of the system, not the requirement to track asynchronous batch execution to completion.
C:Persisting batch results within the provider's retention window protects access after completion, but an unattended job still needs to detect whether processing succeeded, failed or is pending. Poll or use supported completion status mechanisms and record terminal outcomes before attempting result retrieval.
D:A large job should be divided into bounded partitions with stable identifiers and a checkpoint for each finished partition. This is not a substitute for “Poll job status or use supported completion mechanisms and record terminal outcomes”; that control is necessary in the stated circumstances. Persist batch identifiers and monitor terminal status so a finished or failed job does not disappear overnight.
Question 479
A developer logs entire batch prompts containing sensitive client data to debug failures. What should be changed?
- Use Message Batches when its completion window fits the service deadline
- Log safe identifiers and status metadata while restricting or redacting sensitive payloads
- Process each result status separately and selectively resubmit eligible failures
- The asynchronous completion window cannot guarantee the required response latency
Explanation
Correct Answer
B:Debugging should preserve enough request IDs, error classes and stage timestamps to reproduce failures without copying raw personal data into broad logs. The application can retain secure restricted references to sensitive payloads rather than indiscriminately storing their content. This reduces the disclosure risk created by large batch-processing telemetry and still supports per-item error triage.
Incorrect Answers
A:Message Batches improves throughput and cost for nonurgent requests, but does not justify logging complete sensitive customer prompts in debugging output. Restrict logs to safe identifiers, status and redacted diagnostics regardless of which API execution mode is used.
C:Partial success should not trigger repetition of the entire job. It would leave the stated need to minimize sensitive content in batch processing logs unresolved.
D:Lower cost is irrelevant if the processing pattern violates the service's deadline. The decisive requirement here is to minimize sensitive content in batch processing logs.
Question 480
A workflow requires application-supplied tool results between model reasoning steps during each request. What is the safer API plan?
- Partition work into traceable bounded batches according to provider limits and downstream capacity
- Assign a unique custom_id to each submitted request and join results by that ID
- Use the synchronous Messages API for the interactive request
- Use an interactive orchestration loop instead of expecting a batch to call back for live tool results
Explanation
Correct Answer
D:A batch call is not an application-driven multi-turn tool loop. Workflows with external dependencies need explicit sequential requests. A batch is not an interactive controller that can call the application after each model reasoning step. Host-executed tools requiring synchronous feedback need an explicit live orchestration loop.
Incorrect Answers
A:Partitioning jobs by size helps throughput but still cannot supply application-run tool results in the middle of one batch request. This workflow has multi-turn dependencies requiring a live caller. Use interactive orchestration instead of expecting asynchronous batch processing to pause for local tool execution.
B:Asynchronous batches need not preserve original input order. This alternative does not establish how to keep live tool exchanges in an interactive execution path in the stated workflow.
C:Asynchronous batches are unsuitable when the customer is waiting on an immediate response. Although useful elsewhere, it is not the direct mechanism to keep live tool exchanges in an interactive execution path.