AI Certificates

CCDV-P Runtime Guardrails and Production Security practice questions

11% of the CCDV-P exam. These worked examples come from free Form 1, with an explanation for every answer option.

D7 Runtime Guardrails and Production SecurityCCDV-P · Form 1 · free

A manufacturer's procurement agent, built on the Claude Agent SDK, submits purchase orders through a tool. A PreToolUse hook calls an internal budget service and denies any order that exceeds the requester's remaining budget. Last night the budget service was down for two hours; traces show every hook call timed out, the harness logged a non-blocking hook error, and 37 orders went out unchecked. Submitted orders go straight to suppliers. Which change best closes the gap?

  1. A

    Make the hook fail closed, catching timeouts and errors and returning a deny so orders wait until a budget check succeeds.Correct

    The control already exists but fails open; returning an explicit deny on any error makes the guardrail hold during exactly the outages that let these orders through.

  2. B

    Add retries with backoff inside the hook, so short budget-service outages are absorbed before the hook gives up on the check.

    Retries smooth over brief blips, but a two-hour outage outlasts any sensible retry budget, after which the hook still errors and the order still proceeds.

  3. C

    Add a system-prompt rule telling the agent to hold any order whenever it notices that the budget check could not be completed.

    A prompt rule depends on the model noticing and obeying, and the hook error happens in the harness where the model may never see it, so nothing is enforced.

  4. D

    Run a nightly reconciliation job that compares submitted orders against budgets and flags any overspend for finance to reverse.

    Reconciliation is useful detection, but these orders reach suppliers immediately, so finding them the next morning does not prevent the commitment.

The principle

A guardrail is only as strong as its failure mode: for irreversible actions, the enforcement point must fail closed, so that an unavailable policy check blocks the action rather than silently waving it through.

D7 Runtime Guardrails and Production SecurityCCDV-P · Form 1 · free

A legal-tech firm deploys an agent that reviews documents produced by opposing parties during discovery. The agent can search the firm's privileged case files to cross-reference facts, and it can send email so that it can deliver summaries to the assigned attorney. A threat model flags that a produced document could carry hidden instructions. Attorneys insist that cross-referencing against case files must remain available. Which mitigation most directly removes the exfiltration path?

  1. A

    Add a prompt-injection classifier to every produced document and quarantine any document that scores above a tuned threshold before the agent reads it.

    A classifier lowers the odds that an injection gets through, but it can be evaded, and the agent would still hold private data plus an open outbound channel.

  2. B

    Replace open email with a delivery tool that posts summaries only to the assigned attorney's internal matter inbox, with no free-form recipients.Correct

    Untrusted input and private data must both stay, so removing the third leg, open external communication, closes the exfiltration path regardless of what the model is tricked into doing.

  3. C

    Wrap produced documents in clearly delimited tags and instruct the model to treat anything inside those tags as data rather than as instructions.

    Delimiting untrusted content is good hygiene, but it is a soft instruction the model can still be manipulated past, so the outbound channel remains exploitable.

  4. D

    Require the agent to cite a source passage for every claim in its summaries so that attorneys can spot content that a document tried to inject.

    Citations help attorneys verify summaries, but they detect manipulated content after the fact and do nothing to stop data being emailed to an attacker.

The principle

When an agent combines private data access, untrusted input and external communication, the most reliable mitigation is structural: remove or tightly constrain one of the three legs instead of trying to detect every injection.

D7 Runtime Guardrails and Production SecurityCCDV-P · Form 1 · free

A hospital's discharge-summary assistant runs a PII redactor on model output before notes are stored. Clinicians report that drug names derived from surnames and eponymous conditions are being masked, making notes clinically unusable, and complaints are rising. A labeled sample confirms a high false-positive rate on those categories, while the false-negative rate on patient identifiers is low and already meets the privacy team's target. Which change is best?

  1. A

    Disable the output redactor for clinical users and rely on access controls on the notes store, since clinicians are already authorized to see identifiers.

    Access controls matter, but removing the redactor discards a control that is meeting its privacy target, trading a usability problem for a privacy one.

  2. B

    Raise the redactor's global confidence threshold so that it masks only spans it is very sure about, cutting masking across every entity category at once.

    A global threshold change would cut false positives, but it also loosens detection of patient identifiers, putting the currently acceptable false-negative rate at risk.

  3. C

    Replace the redactor with an instruction asking the model to leave patient identifiers out of summaries, which avoids post-processing errors entirely.

    Relying on an instruction swaps a measurable deterministic control for a probabilistic one with unknown leakage, which the privacy team cannot sign off on.

  4. D

    Add a clinical-terms allowlist for the over-masked categories and re-measure both error rates on the labeled set before shipping the adjusted redactor.Correct

    A targeted fix aimed only at the categories causing false positives, verified against both error rates, improves usability without loosening identifier detection.

The principle

Tune guardrails per error type and category with a labeled set: fix the specific source of false positives and re-measure false negatives, rather than moving a global knob that trades one error for the other.

Start free CCDV-P Form 1Format, domains and the 25 skills