CCDV-F Security and Safety practice questions
8.1% of the CCDV-F exam. These worked examples come from free Form 1, with an explanation for every answer option.
Relay CX's support assistant summarizes about 40,000 inbound customer emails a month and can call 12 internal tools, including one that exports account records. During a red-team exercise, an email containing hidden instructions caused the assistant to invoke the export tool and reply with another customer's account data. Which changes would most directly harden the pipeline against this class of attack?
- A
Upgrade the assistant to the most capable model tier so it better recognizes manipulative content
A more capable model may resist some manipulation, but no model tier eliminates prompt injection, so the underlying attack surface remains.
- B
Wrap every incoming message in delimiters marking it as material to analyze rather than obeyCorrect
Separating untrusted content from instructions removes the attacker's main lever: embedded text is framed as data to analyze rather than commands to follow.
- C
Set temperature to 0 so the assistant behaves deterministically and is harder to manipulate
Temperature controls sampling variability, not whether injected instructions get followed; a deterministic assistant can be deterministically injected.
- D
Scope the toolset to the few capabilities summarization actually needs, nothing moreCorrect
Least-privilege tooling means a successful injection has nothing dangerous left to call, which cuts off the exfiltration path shown in the exercise.
- E
Log each tool call the assistant makes and have the security team audit the export log weekly
Audit logs support detection and response, but by the time a weekly review runs, the customer data has already been sent.
The principle
Prompt injection carried in untrusted content is mitigated structurally: separate data from instructions so embedded text is not read as commands, and scope the agent to only the capabilities its task requires so a successful injection cannot reach anything dangerous.
A team deploying a public-facing Claude chatbot currently relies on a single system-prompt instruction forbidding disallowed content. Which change best reflects recommended deployment practice for reducing harmful outputs?
- A
Rewrite the system prompt with stronger wording so it covers more disallowed cases
Stronger wording improves one control but still leaves a single point of failure that one successful jailbreak defeats.
- B
Rely on the model's built-in safety training, since it already refuses clearly harmful requests
Built-in safety training is a genuine layer, but relying on it alone provides no application-specific policy enforcement.
- C
Move all the safety instructions from the system prompt into every user turn
Relocating the instructions changes where the single control lives, not how many independent controls exist.
- D
Add input screening and output checks so several controls back up the system promptCorrect
Layering independent guardrails means a failure of any one control can be caught by another, which is the core of safe deployment practice.
The principle
Safe deployment layers guardrails — model safety training, prompt-level rules, input screening, and output checks — so that no single control is the only thing standing between a user and a harmful output.
A developer wants Claude Code to be unable to execute destructive shell commands in a shared repository, even when the model itself decides to try one. Which mechanism enforces this most reliably?
- A
A PreToolUse hook that inspects Bash commands and blocks matching patternsCorrect
PreToolUse hooks run before the tool call executes and can deny it outright, so a matching command never reaches the shell regardless of what the model intends.
- B
A PostToolUse hook that flags dangerous commands and records them in the transcript
PostToolUse hooks are useful for auditing, but they fire only after the tool has run, which surfaces the damage without preventing it.
- C
A CLAUDE.md rule stating that destructive shell commands must never be run
CLAUDE.md guidance shapes model behavior but is advisory; a model that decides to run the command can still issue it.
- D
A system-prompt line telling the model to ask for confirmation before deleting files
Prompt instructions depend on the model complying, which is exactly the failure mode the developer wants to rule out.
The principle
Hooks provide deterministic enforcement outside the model: a PreToolUse hook intercepts a tool call before it executes, making it the right layer for hard-blocking destructive actions rather than merely discouraging them.