CCDV-P domain drill
CCDV-P practice questions: Runtime guardrails and production security.
10 original questions on Runtime guardrails and production security, which carries 11% of the Claude Certified Developer – Professional exam per the official exam guide. Study notes first, then the questions with an explanation for each. When this domain feels solid, take the timed CCDV-P practice exam and check the domain breakdown.
What to know about Runtime guardrails and production security
- Layered guardrails sized to the agent's risk: input and output filtering, PII redaction, hook-based policy enforcement, sandboxing that gives tool and web access without exposing production systems, approval gates, and refusal handling with a safe fallback.
- Deterministic enforcement for irreversible actions, and tuning guardrails for false positives and false negatives.
- The attack surface of a tool-using agent that reads untrusted content: prompt injection, tool and memory poisoning, and data exfiltration paths.
- The high-risk combination: access to private data, untrusted input, and a channel to the outside. Know why controls enforced outside the model are what closes it.
- Defense in depth, red-team exercise design and secure MCP configuration, drawing on the OWASP Top 10 for LLM Applications and the NIST AI Risk Management Framework with its Generative AI Profile.
- Identity, secrets and audit: agent identity, workload identity federation in place of static API keys, secrets management, least-privilege tool permissions, and audit logs of security-relevant agent actions.
Runtime guardrails and production security questions
A coding agent runs in CI with a shell tool. The project instructions file says never to run destructive commands against the production database, and last week the agent ran one anyway while chasing a failing migration. Which control actually prevents a repeat?
Show answer
Answer: A pre-tool-use hook and deny rules that block matching commands before they run, plus a sandbox with no route to production. Instructions shape what the model tries to do but are not enforcement. A hook that runs before the tool call can block it deterministically, deny rules are applied by the harness rather than the model, and network isolation removes the target altogether. A post-tool-use hook fires after the damage is done, and a self-check is another model judgment that can fail the same way.
An assistant with persistent memory reads a web page during a research task. Hidden text on the page tells it to remember that all future reports should also be sent to an outside address. The assistant writes this to memory, and later sessions act on it. Which design change addresses the weakness?
Show answer
Answer: Treat memory written from untrusted content as untrusted, record its provenance, and keep action gates on the tools themselves. Memory poisoning turns a one-time injection into a persistent one. The defenses are to control what untrusted content can cause to be written, to keep provenance so memory is read as data rather than instructions, and to enforce approvals and allowlists at the tool layer so no remembered text can authorize an action. Encryption protects the store from outsiders but the assistant itself wrote the entry, and nightly clearing removes the feature while leaving a full day of exposure.
CI pipelines and cluster services across a company call the Claude API with one long-lived API key copied into dozens of secret stores. The key has just appeared in a build log. Beyond revoking it, which change removes this class of incident?
Show answer
Answer: Workload identity federation: each workload trades its platform identity token for a short-lived token tied to a service account. Federation removes the static secret: a workload proves who it is with a token from an identity provider the organization already trusts and receives a short-lived credential scoped by a federation rule, so there is nothing long-lived to copy or leak. Per-team keys, rotation, and network restrictions reduce the blast radius of a leak but keep long-lived secrets in circulation.
A research agent needs to run code and browse documentation sites. It currently runs on a virtual machine next to production, with service credentials in its environment. Which setup grants the access it needs without exposing production?
Show answer
Answer: An isolated sandbox with scoped filesystem access, an egress allowlist through a proxy, and credentials kept outside it. Isolation should be enforced by the environment, not by the agent's judgment: a sandbox limits what code can touch, an egress allowlist limits where data can go, and keeping credentials outside the sandbox means injected content cannot read them. An unprivileged user and a command blocklist are easy to sidestep, and read-only credentials can still be used to read and exfiltrate data.
An output filter blocks any response containing a digit string that could be an account number. It blocks 9% of legitimate responses, mostly order numbers, while an audit finds that responses combining a name with a date of birth pass through. How should the team tune it?
Show answer
Answer: Measure precision and recall per category on a labeled set, choose an action per category, and track both error types. A guardrail has two error rates, and tuning one by complaint volume ignores the other. A labeled set makes false positives and false negatives measurable per data category, and different categories deserve different actions: redaction for an identifier, blocking for a sensitive combination. A prompt instruction is not a control, and blocking everything that resembles data makes the product unusable while still missing what the pattern does not describe.
Before launching an agent that reads documents and web pages and can call internal tools, a team plans a red-team exercise consisting of twenty jailbreak prompts typed into the chat box. What would make the exercise meaningful?
Show answer
Answer: Map each untrusted input channel against each sensitive tool, plant indirect injections there, and score harmful actions. The attack surface of a tool-using agent is the content it reads, not only what a user types. A useful exercise starts from a threat model, places injections in documents, pages, and tool results, and judges success by whether an unsafe action or data flow occurred. Successful attacks then become regression tests. Direct jailbreak prompts and refusal rates measure chat safety and miss the indirect paths.
Every agent in a company acts on downstream systems through one shared service account that holds administrator rights. After an unauthorized configuration change, nobody can tell which agent, session, or user was behind it. What should change?
Show answer
Answer: Give each agent its own identity with only the permissions its task needs, and audit-log every sensitive call it makes. Attribution and least privilege both start with identity: an agent that authenticates as itself, with scoped permissions, can be audited and can do limited damage. Security-relevant calls should be logged with the initiating user, session, inputs, and result. A shared administrator account is the excessive agency risk named in the OWASP Top 10 for LLM Applications, and self-reported comments or stored prompts are not an audit trail.
A regulated service passes every model response through an output guardrail service. The guardrail times out on about 2% of calls, and in that case the application sends the unchecked response to the user. What should the behavior be?
Show answer
Answer: Fail closed for high-risk categories with a safe fallback response, and track guardrail availability as an SLI. A guardrail that fails open is absent exactly when it is under stress. Where a missed check carries regulatory or safety risk the safe default is to withhold the response and return a designed fallback, while lower-risk categories may be allowed through. The guardrail is a dependency with its own indicators and alerts. Asynchronous checks detect rather than prevent, unbounded retries trade one failure for a hung request, and a borrowed verdict was never computed for this response.
Developers in a company connect their agents to third-party MCP servers of their own choosing. One server, approved months ago, ships an update whose tool descriptions now contain hidden instructions to read local credential files. Which configuration practice defends against this?
Show answer
Answer: Allowlist vetted servers, pin versions, review changes to tool definitions, and scope what each server can reach. Tool descriptions are untrusted content that the model reads as guidance, and they can change after approval. An allowlist limits which servers can connect, pinning and change review catch a poisoned update, least-privilege scopes limit what a compromised server can reach, and approval gates on sensitive tools hold whatever a description says. A one-time scan misses later changes, popularity is not a control, and without descriptions the model cannot use tools correctly.
An agent needs to call an internal API from its sandbox. For convenience the team places the API token in the system prompt, so that the model can add it to the commands it writes. What is the right pattern?
Show answer
Answer: Keep the secret out of the model's context and sandbox, and have a tool or egress proxy attach a scoped credential. Anything in the context window can be echoed, logged in traces, or extracted by injected content, so secrets should never be there. A tool wrapper or an egress proxy that injects a narrowly scoped, short-lived credential lets the call succeed while the model and the sandbox only ever see a placeholder. Encoding is not protection, an instruction is not a control, and rotation limits the damage of a leak that the design still permits.
Next
- Timed CCDV-P practice exam: 70 questions in 120 minutes, scored against the 720 pass mark.
- All CCDV-P practice questions with a domain filter.
- The CCDV-P exam page: format, weights, registration, study path.
Other CCDV-P domains
- Production integration, reliability, and knowledge grounding (20 questions)
- Advanced agent architecture and orchestration (14 questions)
- Observability and production monitoring (10 questions)
- Evaluation engineering and quality assurance (12 questions)
- Advanced debugging and incident response (9 questions)
- Agent fleet operations for software delivery (10 questions)
- Cost and latency optimization at scale (7 questions)
FAQ
How much of the CCDV-P exam is runtime guardrails and production security?+
11% of the marks, per the official CCDV-P exam guide. The full domain list with weights is on the CCDV-P exam page.
Are these real CCDV-P exam questions?+
No. They are 10 original scenario questions written from the blueprint for this domain. Reproducing exam content would violate the candidate agreement.
How should I study runtime guardrails and production security for CCDV-P?+
Read the domain notes on this page, answer the questions with explanations hidden, then take the timed CCDV-P practice exam and check the per-domain breakdown for this domain.



