Courseiva

CCAR-F Prompt Engineering and Structured Output Practice Question

Which prompting technique involves providing Claude with a few examples of the desired input-output pairs to improve performance on a specific task?

⚠ Common exam trap

Candidates confuse few-shot prompting with fine-tuning or zero-shot evaluation, overlooking the direct inclusion of input-output examples within the prompt text.

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

✓

Few-shot prompting.

Few-shot prompting is a foundational technique used to guide the model by showing it exactly what is expected. By providing examples within the prompt, the developer can specify the tone, format, and logic required for the task, which is particularly useful for niche or highly structured requirements.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Zero-shot prompting.

    Why it's wrong here

    Zero-shot prompting involves giving the model a task without any prior examples of the expected output. While Claude is highly capable of zero-shot performance, this technique does not involve providing input-output pairs and is often less effective for complex or highly specialized formatting tasks.

  • ✗

    Chain of Thought prompting.

    Why it's wrong here

    Chain of Thought prompting focuses on encouraging the model to explain its reasoning process step-by-step. While it can be combined with examples, the core definition of Chain of Thought is about the reasoning process itself rather than the provision of multiple input-output examples for task guidance.

  • ✓

    Few-shot prompting.

    Why this is correct

    Few-shot prompting specifically refers to the practice of including a small number of examples in the prompt to demonstrate the desired behavior. This technique is highly effective for teaching Claude new formats or specific stylistic requirements that might be difficult to describe with instructions alone.

  • ✗

    Role prompting.

    Why it's wrong here

    Role prompting involves assigning a specific persona or identity to the model, such as a 'Senior Software Engineer' or 'Legal Assistant'. While it influences the tone and perspective of the response, it does not inherently involve providing example pairs to demonstrate the task's execution.

About these practice questions

Courseiva writes every CCAR-F question from scratch — 271 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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 CCAR-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 CCAR-F exam.