CCDV-F practice › Agents and Workflows · Question 13 of 92
Agents and Workflows
A team wants a rule that blocks any agent from running a destructive shell command, no matter what the model decides mid-conversation. What enforces this reliably?
Show answer and explanation
Answer: B — A hook — deterministic code that runs at a fixed point in the loop
A system prompt is a request the model can still deviate from under the right pressure. A hook is code — it enforces the rule regardless of what the model decides, which is the hard guarantee this scenario needs.
Keep going
More Agents and Workflows questions
- A team is choosing how to build a multi-step research agent. They want structured state…
- A startup wants to ship an agent quickly with minimal operational burden and is…
- An agent loop keeps calling tools and re-evaluating without ever producing a final…
- A team needs their agent running inside their own VPC with full control over the…
- In the agent loop, the model requests a tool call but your application code decides…