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

Question 350

A deployment requires a policy service to approve every outbound message. The service times out. Which behavior preserves this mandatory gate?

  1. Mark the message approved and retry the check asynchronously.
  2. Hold the message and return a recoverable policy-check failure.
  3. Disable the policy gate permanently after the first timeout.
  4. Send the message because no denial was received.
  5. Ask Claude to estimate what the policy service would have decided.

Explanation

Correct Answer

B:

When approval is required, an unavailable decision cannot be treated as permission; the action remains unexecuted.

Incorrect Answers

A:

The message would already be released before the required approval exists.

C:

Removing the control converts a temporary availability problem into an ongoing policy violation.

D:

Absence of a response is not an affirmative approval under the stated mandatory policy.

E:

A model prediction is not the required service decision and bypasses the configured control.

Question 351

A content classifier marks an email draft acceptable. Does that result alone authorize the agent to send it to a customer?

  1. Yes, provided the draft was generated at low temperature.
  2. No; acceptable content and permission to send are separate decisions.
  3. Only if the email is shorter than the classifier's token limit.
  4. Yes; acceptable content is equivalent to user consent.

Explanation

Correct Answer

B:

A safety classification concerns content, while sending also requires the correct recipient, scope, and user authorization.

Incorrect Answers

A:

Sampling behavior does not grant authority to contact a recipient.

C:

Length does not resolve the missing authorization to send.

D:

A policy verdict does not establish that the user requested or approved the external action.

Question 352

A long-running agent was authorized to update records when it started. An administrator revokes that permission before the next write. Which behavior must the execution path enforce?

  1. Cache the initial authorization until the original run reaches completion.
  2. Complete every queued write because the job was once authorized.
  3. Apply current authorization when the pending write executes.
  4. Apply the revocation only when scheduling new jobs.

Explanation

Correct Answer

C:

A job's earlier admission does not preserve revoked rights indefinitely. The service must enforce the current entitlement rather than rely only on a cached startup decision.

Incorrect Answers

A:

An entire-run cache ignores the administrator's midrun revocation. The pending write must obey current rights at the execution boundary.

B:

This turns a past grant into continuing authority and defeats the administrator's revocation for pending operations.

D:

Blocking new jobs still permits the running job's next write under stale authority. Revocation must affect pending execution too.

Question 353

A command policy allows a specific executable. A request uses a path alias that resolves to a different binary. What should the policy evaluate?

  1. Only whether the command string contains the approved name.
  2. Only the model's explanation of the command.
  3. Whether a similar command was approved in an earlier session.
  4. The resolved executable and structured arguments at the execution boundary.

Explanation

Correct Answer

D:

Authorization must apply to what will actually run, not just an ambiguous textual label that may resolve differently.

Incorrect Answers

A:

Substring matching can accept unrelated commands or aliases without identifying the actual executable.

B:

The explanation can diverge from executable arguments and is not an enforceable representation of execution.

C:

Previous approval does not establish the identity or arguments of this invocation.

Question 354

A new guardrail blocks nearly all requests, including legitimate support questions. Which evaluation should guide adjustment?

  1. Use only adversarial examples and ignore ordinary user tasks.
  2. Remove the guardrail because any false positive is unacceptable.
  3. Measure both harmful actions prevented and legitimate tasks incorrectly blocked.
  4. Measure only the percentage of requests blocked.

Explanation

Correct Answer

C:

A useful control must be assessed for protection and excessive restriction across representative cases. Review false positives and false negatives by task category, then adjust policy using evidence rather than equating maximum rejection with maximum usefulness.

Incorrect Answers

A:

Attack coverage alone cannot reveal the guardrail's impact on normal task completion.

B:

Some false positives call for calibration, not automatic removal of the protection entirely.

D:

A high block rate can result from indiscriminate rejection and does not demonstrate useful discrimination.

Question 355

A PreToolUse hook must block deletion outside an approved directory. Which input should it inspect before deciding?

  1. Only the assistant's final answer text.
  2. Only how long the model took to choose the action.
  3. Only whether the conversation mentions deletion.
  4. Only the last successful tool response.
  5. The proposed tool name and normalized target arguments.

Explanation

Correct Answer

E:

The policy concerns a concrete operation and target, so the hook needs the executable request before it runs. Normalize paths and inspect actual executable arguments so aliases or representation differences cannot evade the intended directory boundary.

Incorrect Answers

A:

The final answer may occur after execution and need not accurately describe the actual target.

B:

Decision latency provides no reliable evidence about the requested path or operation.

C:

Keyword presence in conversation is too broad and does not identify the path the tool will operate on.

D:

A previous response is not the pending operation that requires authorization.

Question 356

A Claude Code tool hook uses a matcher intended to select the Bash tool. The author puts a shell filename pattern in that matcher and expects it to inspect command arguments. What is the conceptual mistake?

  1. The matcher selects hooks by the filename of the hook script itself.
  2. The matcher compares the regular expression with the full shell command.
  3. A Bash tool-name match automatically applies the pattern to each argument.
  4. Tool-event matchers select tool names, not command argument text.

Explanation

Correct Answer

D:

For tool events, the matcher selects names such as Bash. Argument-sensitive policy needs the actual tool input, using hook logic or a supported argument-aware filter such as the documented if condition.

Incorrect Answers

A:

The hook command identifies the handler to run; the event matcher determines which tool events select that handler. These are separate configuration roles.

B:

For the specified tool event, matching operates on the tool name. Command text belongs to argument-sensitive inspection rather than this name matcher.

C:

Selecting the Bash event does not recursively evaluate argument values. The hook needs an explicit argument-aware decision mechanism.

Question 357

A hook writes a generated metadata file, which triggers the same hook again through the surrounding automation. What design prevents this recursive trigger loop?

  1. Exclude self-generated artifacts or guard against reentrancy.
  2. Run every recursive invocation concurrently.
  3. Hide repeated hook messages from the log.
  4. Increase the model context window.

Explanation

Correct Answer

A:

The trigger policy must distinguish original work from the hook's own effects so those effects do not recursively schedule the same action.

Incorrect Answers

B:

Concurrency can amplify the loop and resource consumption rather than stop the causal feedback.

C:

Suppressing observations leaves the recursive execution active and makes diagnosis harder.

D:

Context capacity does not change the automation's event-trigger cycle.

Question 358

A service uses an identity provider that issues 15-minute credentials. Agent runs may last an hour. What authentication design supports continued authorized operation?

  1. Use the supported credential provider to obtain fresh credentials before expiry.
  2. Copy the initial credential into every request for the full hour.
  3. Extend the local cache lifetime to cover the longest agent run.
  4. Retry authentication with the same credential after a fixed backoff.

Explanation

Correct Answer

A:

The runtime should follow the identity system's refresh or reissuance flow rather than assuming the credential captured at job start remains valid throughout a long run.

Incorrect Answers

B:

Repeating an expired credential does not renew its validity. Later calls can fail authentication despite carrying the same token successfully used earlier.

C:

A local cache lifetime cannot change the issuer's credential expiry. Caching an expired credential longer preserves the authentication failure.

D:

Waiting does not extend an expired credential's validity. The service must obtain a fresh credential through the supported identity provider.

Question 359

During a planned, non-incident key rotation, the service supports a short overlap where old and new keys are both valid. Which TWO steps support an orderly transition? Choose TWO.

  1. Keep every old key active indefinitely after each rotation.
  2. Revoke the old key after the verified migration completes.
  3. Treat writing the new key into a vault as proof every running worker has reloaded it.
  4. Restart only the coordinator and assume existing worker processes reload.
  5. Deploy the new key to consumers and verify that they authenticate successfully.

Explanation

Correct Answers

B:

The overlap is transitional, not a permanent reason to retain both credentials. Revocation removes the obsolete credential once legitimate consumers no longer depend on it.

E:

Verification establishes that workloads have switched to the replacement instead of merely storing it somewhere. The temporary overlap keeps still-migrating consumers from failing immediately.

Incorrect Answers

A:

Accumulating valid obsolete credentials expands the number of secrets that could still grant access and defeats rotation's cleanup objective.

C:

Processes can cache older values. Actual authentication evidence is needed to confirm consumer adoption of the replacement.

D:

Other long-lived consumers may retain the old key. Rotation needs observed authentication with the new key before the old credential is retired.

Question 360

Two unrelated applications share one production API credential. One application's deployment account is compromised. What design reduces the blast radius of similar incidents?

  1. Store the shared key under two environment variable names.
  2. Give both applications the account owner's master password.
  3. Use the same key but different prompt prefixes.
  4. Use separate scoped credentials and identities for each application.

Explanation

Correct Answer

D:

Identity separation supports independent revocation, attribution, and access limits across applications. A compromised application can then lose its own access without automatically interrupting or exposing every other service using the provider.

Incorrect Answers

A:

Different variable names still reference the same underlying credential and access scope.

B:

A broader shared credential increases the impact of either application's compromise.

C:

Prompt contents do not partition the permissions associated with a shared credential.

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