CCARF Practice Question

Paper 4 · Question 27

D4 Prompt Engineering & Structured Output · Paper 4

Your CI/CD pipeline uses a system prompt with a tool named 'check_security' and also includes instructions that say 'check the security of each function'. Developers report that the model sometimes produces a text-based security analysis instead of calling the check_security tool. What is the most likely cause?

Show answer & explanations

Correct answer: A

Related Prompt Engineering & Structured Output questions

Paper 4 Q3The moderation system classifies hate speech accurately for explicit slurs but misses coded language and dog-whistle terms that human modera…Paper 4 Q7A moderation team introduces a severity scale ('low', 'medium', 'high', 'critical'). The same post (a user threatening to 'destroy' a compet…Paper 4 Q12The moderation system uses tool_use with a JSON schema for classification output. All fields including 'sub_category' and 'target_demographi…Paper 4 Q16Your CI/CD pipeline processes code reviews using the Message Batches API. After a batch completes, you need to match each review result back…Paper 4 Q17The moderation system validates that every classification includes a 'reasoning' field explaining the decision. When validation fails (empty…

More: Paper 4 · All practice questions