easyMultiple Choice
AIF-C01 Practice Question: Which prompt engineering technique involves…
Which prompt engineering technique involves providing the model with a few examples of desired input-output pairs before asking it to complete a new instance?
⚠ Common exam trap
AWS often tests the distinction between zero-shot and few-shot prompting, where candidates may confuse 'providing examples' with 'setting system instructions' or 'step-by-step reasoning', leading them to incorrectly select chain-of-thought or system prompting.
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 (Option D) is the correct technique because it explicitly involves providing the model with a few examples of desired input-output pairs before asking it to complete a new instance. This helps the model understand the pattern, format, or task from the examples, improving performance on tasks like classification, translation, or formatting without requiring fine-tuning.
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 supplies no examples at all, relying solely on the instruction, so it cannot demonstrate desired input-output pairs. It is tempting because zero-shot does handle novel tasks without training data, which suits simple, well-specified requests where examples add no value.
- ✗
Chain-of-thought prompting
Why it's wrong here
Chain-of-thought prompting elicits intermediate reasoning steps, not example input-output pairs, so it does not demonstrate the target mapping. It is tempting because chain-of-thought does improve accuracy on multi-step reasoning tasks, which suits arithmetic or logical problems rather than classification by example.
- ✗
System prompting
Why it's wrong here
System prompting sets the model's overall role, tone and constraints, without supplying example input-output pairs for the task. It is tempting because system prompts do shape behaviour across a conversation, which suits defining persona or guardrails rather than teaching a specific mapping.
- ✓
Few-shot prompting
Why this is correct
Few-shot prompting supplies the model with several worked input-output pairs inside the prompt, letting it infer the task pattern before handling the new instance. This directly satisfies the stem's requirement for examples of desired pairs, distinguishing it from zero-shot prompting, which provides instructions alone without demonstrations.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AIF-C01 question from scratch — 862 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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AIF-C01 practice question is part of Courseiva's free Amazon Web Services 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 AIF-C01 exam.