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

Question 170

A browser disconnects while a backend generation continues. What design avoids accidentally starting another run on reconnect?

  1. Reconnect to the existing run using its recorded state.
  2. Assume disconnecting the browser canceled all backend work.
  3. Erase the run identifier when the screen reloads.
  4. Create a new generation for every socket reconnect.

Explanation

Correct Answer

A:

Connection lifetime and task lifetime differ. A stable run record lets reconnection observe work already in progress.

Incorrect Answers

B:

Backend cancellation requires an implemented mechanism, not an assumption about client connectivity.

C:

Losing identity makes recovery and correlation unnecessarily difficult.

D:

This duplicates work and may create conflicting or repeated side effects.

Question 171

A stored task references a customer whose display name changes before the task resumes. Which identifier design supports reliable lookup?

  1. Retain an immutable account identifier independently of the display name.
  2. Use the old display name as the permanent database key.
  3. Create a new customer automatically whenever the display name changes.
  4. Choose the account whose current name is most similar.

Explanation

Correct Answer

A:

A stable identifier preserves entity identity across presentation changes without guessing whether a renamed record is a different customer.

Incorrect Answers

B:

A mutable label may stop matching or be reused, so it is unsuitable as the sole durable identity.

C:

Renaming does not imply a new entity; this would duplicate records rather than maintain the existing reference.

D:

Fuzzy resemblance can select another customer and does not establish continuity of identity.

Question 172

A bulk-update assistant asks for approval. What must the preview make clear?

  1. Only an aggregate record count, with no affected fields or targets.
  2. Only the assistant’s assurance that the action is routine.
  3. The actual operation, affected scope, and important parameter values.
  4. Only the phrase “improve records.”

Explanation

Correct Answer

C:

The approver needs the target records and proposed changes, including consequential amounts or scope, to authorize a concrete operation.

Incorrect Answers

A:

A count omits what will change and which resources are involved, preventing informed approval of the actual mutation.

B:

Routine wording does not identify the resources or modifications being approved.

D:

A vague description hides the action’s scope and consequences.

Question 173

A command object can represent either a search or a deletion, each with different required fields. What schema structure helps?

  1. An explicit operation discriminator with operation-specific validation.
  2. One unlabeled array whose positions change by operation.
  3. A free-text paragraph interpreted differently by every handler.
  4. Treat all missing fields as permission to delete.

Explanation

Correct Answer

A:

The consumer can determine which contract applies and reject incompatible combinations of fields before execution.

Incorrect Answers

B:

Variable positional meaning makes interpretation fragile and difficult to validate.

C:

Inconsistent parsing creates ambiguity at the command boundary.

D:

Absence of data cannot establish a destructive operation’s intent.

Question 174

A tool’s optional currency field defaults to USD. Users may reasonably expect their account currency instead. What should be clarified?

  1. Assume omitted currency always means the user approved USD.
  2. The default’s meaning and whether the application should supply an explicit account currency.
  3. Apply the documented USD default even when account context conflicts.
  4. Infer currency solely from the language of the user's message.

Explanation

Correct Answer

B:

Defaults can silently change business interpretation; the contract should reflect the actual intended source of currency.

Incorrect Answers

A:

Omission does not necessarily express that choice.

C:

A documented default still needs reconciliation with the product's intended account-currency behavior; blindly applying it can change meaning.

D:

Language is not a reliable account-currency declaration. The contract must identify the intended source or request an explicit value.

Question 175

A model returns an action label outside the application’s allowed enum. What should the consumer do?

  1. Execute whichever allowed action sounds closest.
  2. Reject or map it only through an explicit reviewed compatibility rule.
  3. Add the new action to production automatically.
  4. Drop the unknown action label and continue using the previous request's action.

Explanation

Correct Answer

B:

Reject an unknown enum value or handle it through a deliberate compatibility rule. Informal similarity matching can change the requested operation and expand its executable meaning.

Incorrect Answers

A:

Similarity can map to a materially different operation.

C:

Generated output is not authority to expand the application’s command surface.

D:

Reusing prior state can execute an unrelated operation; invalid current input needs its own explicit handling.

Question 176

A user asks for a report “tomorrow” while the server uses UTC and the account has another timezone. What should date resolution use?

  1. The language of the sentence as a complete timezone identifier.
  2. Always the server’s midnight boundary.
  3. The relevant user/account timezone and an explicit reference time.
  4. The model’s training date.

Explanation

Correct Answer

C:

Relative dates depend on local context; server timezone alone can select the wrong calendar day. Resolve relative dates in the intended user's timezone, then convert the resulting instant or interval into the backend's required representation.

Incorrect Answers

A:

Many timezones share a language, so this does not uniquely establish the intended date.

B:

That ignores the user’s configured temporal context.

D:

Training chronology is unrelated to the user’s current relative-time request.

Question 177

A measurement tool returns value=70 without specifying Celsius or Fahrenheit. What contract change is needed?

  1. Infer units from whether the value is above or below 50.
  2. Include the measurement unit explicitly with the value.
  3. Remove the numeric value and retain only “warm.”
  4. Let each consumer select its preferred unit without conversion.

Explanation

Correct Answer

B:

Numbers are ambiguous without units; downstream interpretation must not depend on unstated conventions. Attach a documented unit to the numeric value and convert deliberately at interfaces; precision alone cannot distinguish temperature scales.

Incorrect Answers

A:

Value ranges can overlap across scales, so a heuristic cannot replace an explicit unit contract.

C:

Qualitative text discards required measurable information rather than repairing the contract.

D:

Changing interpretation without conversion changes the represented physical quantity.

Question 178

A search tool returns its first page of records. What metadata prevents an agent from treating it as the complete dataset?

  1. Only the number of rows on the current page.
  2. A statement that the first page is always enough.
  3. A continuation indicator and clear result-scope information.
  4. Only the size of the requested page.

Explanation

Correct Answer

C:

A continuation token or explicit completion indicator tells the consumer whether another page is needed before claiming full coverage.

Incorrect Answers

A:

A page length alone may not indicate whether more records exist; an explicit continuation signal is needed.

B:

That invents completeness regardless of the actual result set.

D:

The requested page size sets a retrieval bound but does not prove how many total results exist or whether another page remains.

Question 179

A report must combine inventory totals from one coherent point in time while records are changing rapidly. The datastore supports consistent snapshots. Which read strategy meets this requirement?

  1. Cache each total independently using the same expiration duration.
  2. Issue independent reads concurrently and assume their versions match.
  3. Read every total from the same supported consistent snapshot.
  4. Read each total normally and attach its individual timestamp.

Explanation

Correct Answer

C:

The snapshot provides one logical data version across the reads. This meets the point-in-time requirement even if individual queries execute at different wall-clock times.

Incorrect Answers

A:

Equal lifetimes do not align cache population times or underlying record versions. Independently cached values may still combine incompatible states.

B:

Concurrent requests can still observe different commits. Close execution times do not supply the datastore guarantee required for one coherent report.

D:

Timestamps expose when observations occurred, but do not make them represent the same database state. This improves traceability without satisfying snapshot consistency.

Question 180

A conversation is saved, but its uploaded attachment expires before the next turn. What should the application retain or handle?

  1. Reopen whichever available attachment has the same filename.
  2. Assume the model permanently memorized the original file.
  3. A valid authorized attachment lifecycle or a clear reattachment path.
  4. Persist the attachment identifier without checking its validity at reuse.

Explanation

Correct Answer

C:

Saved conversation text does not extend the attachment service's retention. Preserve an authorized durable artifact where supported, or explicitly handle expiry and reattachment.

Incorrect Answers

A:

Names are not stable identity or authorization evidence. A replacement must be the intended authorized artifact, not merely similarly named bytes.

B:

Prior processing does not establish durable retrieval of the attachment.

D:

A durable identifier string does not extend the lifetime of its referenced bytes. Reuse needs validity handling or a supported recovery path.

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