CCAO-F Prompting and Context Engineering Practice Question
A support team wants Claude to classify incoming customer emails into one of five categories: Billing, Technical, Account, Feature Request, or Other. The team needs consistent, machine-readable output that a downstream script can parse reliably. Which prompt design best meets this requirement?
⚠ Common exam trap
The trap here is treating a human-readable answer with bold formatting or reasoning as machine-readable, when automation actually requires a strictly constrained, single-token-style label.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Instruct Claude to output only the category label, chosen from the predefined list, with no additional text.
When output feeds an automated script, the prompt should constrain the response to a single value from a predefined set and forbid extra text. This minimizes parsing complexity and ambiguity. Few-shot examples can improve consistency, but adding confidence scores or allowing multiple labels reintroduces variability. Narrative explanations with formatting are human-friendly but not reliably machine-readable, so they fail the stated integration requirement.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Ask Claude to choose the best category and, if multiple categories seem to apply, list them all separated by commas.
Why it's wrong here
Allowing multiple categories or comma-separated lists undermines the requirement for a single, consistent label. Downstream logic would need to handle ambiguous multi-label outputs, increasing complexity and error rates. For a five-way classification task intended for automated routing, forcing a single category from the predefined list is the more reliable approach.
- ✗
Ask Claude to explain its reasoning in a paragraph and end with the category name in bold.
Why it's wrong here
While a paragraph with a bolded category might be human-readable, it is not reliably machine-parsable. Downstream scripts would need to extract the category from free-form text, which introduces fragility and potential errors. The requirement is consistent, machine-readable output, so a structured, constrained format is needed rather than narrative reasoning with emphasis.
- ✗
Provide three examples of emails and their categories, then ask Claude to respond with the category and a confidence score between 0 and 100.
Why it's wrong here
Adding a confidence score introduces a second field that the downstream script must handle, and models are not reliably calibrated in their self-reported confidence. This complicates parsing and may lead to inconsistent formats. While few-shot examples are helpful, the extra score field works against the goal of simple, consistent, machine-readable classification output.
- ✓
Instruct Claude to output only the category label, chosen from the predefined list, with no additional text.
Why this is correct
Constraining the output to exactly one label from a predefined list produces consistent, easily parsed results. It eliminates ambiguity and reduces the chance of extraneous text breaking the downstream script. This directly satisfies the need for machine-readable output and consistent classification, making it the most reliable design for an automated pipeline.
About these practice questions
One of 259 original CCAO-F practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Anthropic exam blueprint
This CCAO-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCAO-F exam.