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

Question 370

A tool paginates a static dataset ordered by created_at. Several records share the page-boundary timestamp, but the cursor stores only that timestamp and the next page uses created_at greater than it. What prevents skipped records?

  1. Use a unique tie-breaker in both ordering and the continuation cursor.
  2. Restart from the first page whenever a duplicate timestamp appears.
  3. Use a client-generated timestamp as the next cursor boundary.
  4. Drop records with repeated timestamps before pagination.
  5. Increase the page size by one and keep the timestamp-only cursor.

Explanation

Correct Answer

A:

The timestamp alone cannot identify a position within equal-time records. A consistent composite order, such as timestamp plus record ID, lets the next-page predicate continue after the exact last record.

Incorrect Answers

B:

Restarting does not establish forward progress through the tied records and can repeatedly return the same page.

C:

The cursor must identify position in the dataset's ordering. A new client timestamp can jump past unseen records rather than disambiguate equal creation times.

D:

Equal creation times do not imply duplicate records. Deleting those entries would lose distinct data rather than make pagination complete.

E:

An arbitrary number of records can share a timestamp. A slightly larger page does not guarantee that every tie fits before a boundary.

Question 371

A search tool supports literal and wildcard modes. The user asks to find the exact product code A*B, including the asterisk. Which call preserves that intent?

  1. Reject all identifiers containing punctuation.
  2. Remove the asterisk and search for AB.
  3. Search for A and accept the first result.
  4. Use wildcard mode with A*B unchanged.
  5. Use literal mode with the exact code.

Explanation

Correct Answer

E:

The asterisk is part of the identifier, so the tool must treat it as data rather than a pattern operator.

Incorrect Answers

A:

The tool already supports a literal representation; a blanket rejection would unnecessarily prevent this valid lookup.

B:

Deleting a literal character changes the identifier and can return a different product.

C:

A prefix match is insufficient evidence that the returned item has the exact code containing the asterisk.

D:

In wildcard mode, the asterisk can match other characters, broadening results beyond the exact requested code.

Question 372

A search tool accepts a date interval with inclusive start and exclusive end, interpreted in UTC. The agent must search one UTC calendar month. What should its call specify?

  1. The first instant of the month through the first instant of the next month.
  2. The first instant through an inclusive next-month boundary.
  3. An end value copied from the previous month's duration without checking dates.
  4. The number of days in the month as an absolute end timestamp.
  5. The first day through noon on the last day.

Explanation

Correct Answer

A:

The half-open interval covers the entire month without guessing the final representable instant or overlapping the next period.

Incorrect Answers

B:

Including the next period's first instant contradicts the tool's documented exclusive-end contract.

C:

Calendar months vary in length, so a reused duration can omit or include unintended records.

D:

A duration and an absolute timestamp have different meanings in the tool's interval contract.

E:

That interval omits records from the latter part of the month's final day.

Question 373

A tool schema requires the property middle_name to be present but permits its value to be null. The record has no middle name. Which input follows both constraints?

  1. Include middle_name with the value null.
  2. Invent a middle name to avoid null.
  3. Omit middle_name entirely.
  4. Move the value to a new property called missing_name.
  5. Include middle_name with the string "null".

Explanation

Correct Answer

A:

Required controls property presence, while nullability controls the allowed value; including the property with null satisfies both stated rules.

Incorrect Answers

B:

The schema explicitly allows missing information to be represented with null, so fabricating a name is unnecessary and inaccurate.

C:

Omission violates the required-property constraint even though null is a permitted value when the property exists.

D:

A different property does not satisfy the required middle_name field in the declared contract.

E:

A string containing those letters is not the JSON null value and may incorrectly represent a literal name.

Question 374

A standard JSON Schema describes an optional limit property with default: 10. Input omits limit and passes validation. Does validation alone guarantee that limit was inserted into the object?

  1. No; therefore the input must always fail validation.
  2. Yes; every conforming validator must modify the object in place.
  3. Yes, provided the schema also gives limit an integer type.
  4. The omitted field must become null automatically.
  5. No; the application must apply defaults if its contract requires insertion.

Explanation

Correct Answer

E:

The default keyword is an annotation in standard JSON Schema, not a required mutation of the input instance. A framework may add its own behavior, but that is separate from validation alone.

Incorrect Answers

A:

An optional property's absence can be valid. Whether the field is required is distinct from whether an annotation supplies a default value.

B:

The schema standard does not require that input mutation. Assuming it can leave downstream handlers without a field they expected to appear.

C:

A type constraint validates supplied values; it does not turn the default annotation into an insertion operation. Application default handling is still separate.

D:

Absence and null are different states. Standard validation does not require converting one into the other.

Question 375

An infrastructure tool supports preview=true, which computes intended changes without applying them. What does a successful preview establish?

  1. The actual operation will never fail.
  2. The production changes have already been applied.
  3. The live environment cannot change before execution.
  4. Proposed effects under preview conditions, without execution proof.
  5. Future execution can skip all permission checks.

Explanation

Correct Answer

D:

A dry run supports review but does not prove that later execution is authorized or has succeeded. Recheck relevant live state and observe the execution result after approval, because conditions can change between preview and application.

Incorrect Answers

A:

Credentials, quotas, state, and network conditions can differ when the operation runs.

B:

The stated preview mode explicitly avoids applying the changes.

C:

Concurrent activity can invalidate preview assumptions between review and execution.

E:

Previewing a change does not grant authority to perform it.

Question 376

A document-generation tool returns a file identifier and a download link. The user asks for the generated document. What should the assistant use?

  1. Return only a statement that the file exists.
  2. Use a link from a previous unrelated generation.
  3. Invent a more readable URL with the same filename.
  4. Treat the model's proposed filename as proof of a saved file.
  5. The actual artifact reference returned by the tool.

Explanation

Correct Answer

E:

The returned reference identifies the created artifact; using it preserves the connection between execution and delivery.

Incorrect Answers

A:

A bare assertion does not provide the artifact the user requested when a usable reference is available.

B:

An earlier artifact reference does not establish access to the current document.

C:

A plausible-looking URL may not point to any artifact or may point to an unrelated resource.

D:

A proposed name is not evidence that generation or persistence completed.

Question 377

A vision inspection tool returns an annotated image and a short textual finding. What should the integration preserve for a multimodal-capable consumer?

  1. Discard the image while claiming the full visual evidence was supplied.
  2. The supported typed content blocks and their association with the same tool result.
  3. Assign the image to an unrelated tool-call identifier.
  4. Convert image bytes to an arbitrary object string and call it an image.
  5. Concatenate binary image data directly into the JSON text without encoding.

Explanation

Correct Answer

B:

Preserving image and text representations lets the consumer inspect the actual evidence instead of losing a modality during adaptation.

Incorrect Answers

A:

The resulting context would lack the evidence the integration claims to preserve.

C:

Incorrect association can make the consumer attribute visual evidence to the wrong operation.

D:

A stringified object does not supply a supported image representation to the model.

E:

Raw binary cannot simply be inserted into ordinary JSON syntax as a valid image block.

Question 378

A creation tool promises that retries using the same idempotency key represent the same logical operation. A caller reuses a key with different arguments. Which TWO server behaviors preserve this contract? Choose TWO.

  1. Return the old success without checking whether the new arguments differ.
  2. Create a new server-side key silently for every retry.
  3. Retain the original request fingerprint and recorded outcome for the key.
  4. Overwrite the original payload and execute the new one immediately.
  5. Reject conflicting reuse instead of executing a second operation under that key.

Explanation

Correct Answers

C:

Associating the key with its initial payload lets the server distinguish a retry from an attempt to redefine the operation and return the original outcome for a genuine duplicate.

E:

A different payload is not the same logical request. Rejecting the conflict prevents one identifier from concealing multiple distinct creations.

Incorrect Answers

A:

A stale success may refer to a different requested operation. Payload conflict must be surfaced rather than misreported as completion of the new arguments.

B:

That removes deduplication from the caller's stable key and can turn retries into additional creations.

D:

This changes the meaning of an existing key and defeats the promise that its retries identify one operation.

Question 379

A tool occasionally submits duplicate invoices. Which THREE trace fields most directly support investigation? Choose THREE.

  1. The arguments and authenticated execution scope, with sensitive values redacted.
  2. A stable operation or idempotency identifier across retries.
  3. Only the aggregate number of messages for the whole month.
  4. Only the final natural-language answer with no execution trace.
  5. The model's unsupported guess about invoice success.
  6. The outcome and timing of each attempt, including timeout ambiguity.

Explanation

Correct Answers

A:

These fields identify what was requested and under which identity without unnecessarily exposing confidential data.

B:

This reveals whether repeated attempts belong to one intended transaction or distinct operations.

F:

Attempt-level outcomes help distinguish confirmed failures from operations that may have completed before a timeout.

Incorrect Answers

C:

A monthly total lacks the operation-level detail needed to reconstruct duplicate submissions.

D:

A final answer can omit retries and timeout ambiguity, so it cannot reconstruct the duplicate mutation sequence.

E:

An unverified guess is not execution evidence and can obscure the actual transaction state.

Question 380

An MCP client connects to a server implementing a different protocol revision. What should happen before normal feature use?

  1. Treat an open TCP connection as proof of feature compatibility.
  2. Assume all protocol revisions are interchangeable.
  3. Perform initialization and negotiate compatible protocol and capabilities.
  4. Call every known tool to discover compatibility through side effects.
  5. Silently reinterpret unknown message fields as tool arguments.

Explanation

Correct Answer

C:

Agree on the protocol revision and supported capabilities before relying on particular messages; an open connection alone proves only transport reachability.

Incorrect Answers

A:

Network connectivity alone does not establish agreement on the application protocol.

B:

Version differences can affect supported messages or behavior and must be handled explicitly.

D:

Invoking tools is not a substitute for protocol negotiation and can execute unintended operations.

E:

Arbitrary reinterpretation can corrupt semantics and bypass the negotiated interface.

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