Courseiva
Claude API Mechanics →hardMultiple Select

CCDV-F Claude API Mechanics Practice Question

A developer is diagnosing a production Messages API workload where some requests fail with an overloaded_error and others return stop_reason "max_tokens". They want to handle both conditions correctly. Which TWO actions are appropriate? (Choose two.)

⚠ Common exam trap

The trap here is conflating a transient server error with a deterministic output-limit signal and applying the same retry logic to both.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Implement exponential backoff with jitter and retry requests that return overloaded_error.

The two conditions require different handling. Transient overloaded_error should be retried with exponential backoff and jitter because capacity pressure is temporary. A max_tokens stop reason indicates the output was truncated by the configured ceiling, so the developer must raise max_tokens or reduce input to leave room for a complete answer. Retrying truncation unchanged, caching around an unprocessed request, or shrinking output for server load all fail to address the actual cause.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Implement exponential backoff with jitter and retry requests that return overloaded_error.

    Why this is correct

    overloaded_error signals transient capacity pressure on the server and is designed to be retried. Exponential backoff with jitter spreads retries so a client does not hammer the endpoint, improving the chance of success. This is the recommended handling for that error class.

  • ✗

    Convert overloaded_error responses into successful responses by caching the last valid completion for the same prompt.

    Why it's wrong here

    overloaded_error indicates the request was not processed, so there is no completion to serve. Returning a stale cached answer for a different prompt would mislead users and hide the failure. The correct response is to retry with backoff, not to mask the error with unrelated cached content.

  • ✗

    Retry every request that returns stop_reason "max_tokens" with the identical parameters until it completes.

    Why it's wrong here

    Retrying the same request with unchanged parameters will hit the same output ceiling and truncate again, creating a loop. max_tokens is a deterministic limit, not a transient fault. The developer must adjust the token budget or reduce input rather than blindly resending.

  • ✗

    Lower max_tokens to 1 whenever overloaded_error occurs so the server has less work to do.

    Why it's wrong here

    overloaded_error stems from server capacity, not from the size of an individual request, so shrinking max_tokens does not relieve it and would produce useless one-token outputs. This conflates output length with server load and would degrade results without improving reliability.

  • ✓

    Treat stop_reason "max_tokens" as a truncation signal and either raise max_tokens or shorten the prompt or conversation.

    Why this is correct

    A max_tokens stop reason means generation hit the output ceiling and the answer is incomplete. The fix is to increase max_tokens when the model's window allows, or reduce input so more room remains for output. Recognizing truncation prevents silently serving partial answers.

About these practice questions

Courseiva writes every CCDV-F question from scratch — 257 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Anthropic exam blueprint

This CCDV-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCDV-F exam.