Anthropic CCDV-F (Claude Certified Developer - Foundations) Practice Test 27

Question 260

A network read returns half a protocol event. What must the parser do?

  1. Discard every incomplete chunk immediately.
  2. Retry the whole generation after each small read.
  3. Treat every read as one complete JSON object.
  4. Buffer until a complete event boundary is available.

Explanation

Correct Answer

D:

Transport chunks need not align with application messages; parsing must follow protocol framing rather than read-call boundaries.

Incorrect Answers

A:

Discarding fragments loses data required to reconstruct the event.

B:

Small chunks are normal streaming behavior, not necessarily failures.

C:

A read can split or combine messages, making that assumption unsafe.

Question 261

A multibyte Unicode character is split between network chunks. How should the client decode it?

  1. Use an incremental decoder that retains incomplete byte sequences.
  2. Delete all non-ASCII bytes.
  3. Ask the model to avoid every human language except English.
  4. Decode each byte as a complete character.

Explanation

Correct Answer

A:

Character boundaries can cross chunk boundaries; stateful decoding avoids corruption from decoding each fragment independently.

Incorrect Answers

B:

That destroys valid text rather than preserving the encoded content.

C:

A transport decoder should correctly handle supported Unicode input and output.

D:

Multibyte encodings require several bytes for some characters.

Question 262

A payload limit is measured in bytes. Why can character counting underestimate a multilingual request’s size?

  1. Count Unicode code points and treat that count as the encoded byte size.
  2. Some characters require multiple encoded bytes.
  3. Infer body size only from the requested max_tokens value.
  4. Every character is always one byte.

Explanation

Correct Answer

B:

The transport limit applies to the encoded representation, not simply the number of displayed characters. Characters can require multiple UTF-8 bytes, and serialization adds overhead, so enforce byte limits on the actual encoded payload.

Incorrect Answers

A:

A code point may require multiple bytes in UTF-8, so the character count can understate a byte-based payload limit.

C:

An output allowance does not determine the bytes occupied by the serialized input request.

D:

That is false for common Unicode encodings and non-ASCII text.

Question 263

A response is compressed by an HTTP layer. What must occur before an ordinary JSON parser consumes its content?

  1. Drop the content-encoding information and guess.
  2. Rename the response file with a JSON extension.
  3. The supported transport layer must decode the compression.
  4. Treat compressed bytes as model tokens.

Explanation

Correct Answer

C:

Compressed bytes are not directly the JSON text; appropriate HTTP clients often perform this decoding automatically.

Incorrect Answers

A:

Ignoring representation metadata makes decoding unreliable.

B:

A filename does not transform its bytes.

D:

Network encoding is different from language-model tokenization.

Question 264

The server rejects a request because its HTTP body exceeds a documented size limit. What remedy fits?

  1. Retry the identical oversized body indefinitely.
  2. Rotate the API key.
  3. Reduce or restructure the payload using supported input mechanisms.
  4. Increase max_tokens only.

Explanation

Correct Answer

C:

The transmitted representation must fit the endpoint’s limit; more output budget does not change request-body capacity.

Incorrect Answers

A:

A deterministic size violation persists without changing the request.

B:

Authentication changes do not necessarily alter the documented body-size constraint.

D:

Generation allowance does not shrink the request bytes.

Question 265

A resource endpoint supports ETags. What does a conditional read help determine?

  1. Whether the model’s answer is logically correct.
  2. Whether the server must resend the entire resource even when its validator matches.
  3. Whether the previously retrieved representation remains current.
  4. Whether an unchanged representation allows skipping all access checks.

Explanation

Correct Answer

C:

A conditional request uses the stored validator to check whether the server representation changed. An unchanged response can avoid transferring the complete representation again.

Incorrect Answers

A:

Resource freshness does not validate reasoning about the content.

B:

A supported conditional read can avoid a full unchanged representation; unconditional retransmission defeats that benefit.

D:

Cache validation concerns representation freshness, not permission to access or mutate the resource.

Question 266

A server provides an opaque next-page cursor. How should a client obtain the next page?

  1. Increment a number extracted from the token.
  2. Use the first record’s title as the cursor.
  3. Restart at the first page and assume progress.
  4. Pass the cursor through the documented pagination parameter.

Explanation

Correct Answer

D:

Pass an opaque cursor back through the documented parameter exactly as returned. Its internal contents are not an editable client-side pagination contract.

Incorrect Answers

A:

Opaque tokens do not promise a numeric structure the client may safely modify.

B:

A display field is not necessarily a valid continuation token.

C:

Repeatedly fetching the same page does not advance traversal.

Question 267

A webhook's signature authenticates the exact raw request bytes. Middleware parses and reserializes JSON before signature verification, changing whitespace. Why can valid events fail verification?

  1. The sender must rotate its secret whenever whitespace changes.
  2. Any payload that parses as JSON must pass signature verification.
  3. Verify a hash of the parsed field values instead of the signed raw bytes.
  4. The verifier is checking different bytes from those originally signed.

Explanation

Correct Answer

D:

Equivalent JSON values can have different byte representations. Preserve the received body for signature verification, then parse the authenticated payload for business processing.

Incorrect Answers

A:

The mismatch arises because the receiver changed the signed bytes. Rotating a valid shared secret does not restore the original request body.

B:

Valid JSON syntax does not prove origin or integrity. An attacker can construct syntactically valid data without the required signing secret.

C:

A different representation and hashing input do not implement the stated signature contract. Verification must use the same raw bytes the sender authenticated.

Question 268

A client times out waiting for a remote mutation. What should it avoid assuming?

  1. That reconciliation may be needed.
  2. That the server stopped and performed no effect.
  3. That the event should be logged safely.
  4. That the caller no longer has a response.

Explanation

Correct Answer

B:

A local timeout does not necessarily cancel remote work; the operation may complete after the caller stops waiting.

Incorrect Answers

A:

Checking the remote outcome is often appropriate when effects are uncertain.

C:

The uncertain outcome is useful operational evidence when recorded without secrets.

D:

The timeout does indicate failure to receive a timely result locally.

Question 269

Each SDK invocation permits one initial network attempt plus two retries. An outer wrapper permits four SDK invocations in total, including the first. If every network attempt fails, what is the maximum total number of network attempts?

  1. 4.
  2. 8.
  3. 6.
  4. 12.

Explanation

Correct Answer

D:

Each of the four outer invocations can produce three SDK attempts. The layers multiply to 4 × 3 = 12, illustrating why retry policy must be evaluated across wrappers.

Incorrect Answers

A:

This counts only outer invocations. It ignores the additional network attempts made inside each SDK invocation.

B:

This counts two attempts per outer invocation but omits the SDK's initial attempt. Two retries means three total inner attempts here.

C:

Adding the four outer invocations to the two inner retries does not model nested execution. Every outer invocation has its own inner attempt sequence.

Question 270

Many workers retry a transient failure after exactly the same delay. Why add jitter?

  1. To guarantee that every retried call completes before its deadline.
  2. To make malformed requests valid.
  3. To remove all need for retry limits.
  4. To spread retry attempts and reduce synchronized bursts.

Explanation

Correct Answer

D:

Randomized delays spread retry traffic over time, reducing synchronized bursts that can overwhelm a recovering dependency.

Incorrect Answers

A:

Jitter spreads load but cannot guarantee service recovery or eliminate the need for bounded retry and deadline policies.

B:

Timing variation cannot repair invalid request content.

C:

Jitter controls synchronization, not total attempts or deadlines.

Claude Certified Developer - Foundations (CCDV-F) Practice Tests