Prompt Engineering Constructs and Techniques
General background = widely taught prompt engineering; the guide names the constructs and techniques.
Constructs
| Construct | Is | Example |
|---|---|---|
| Instruction | The task | "Summarise this ticket in three bullet points." |
| Context | Background the model needs | Customer tier, product, policy excerpt |
| Input data | The content to work on | The ticket text |
| Output indicator | The format wanted | "Return JSON with fields issue, urgency." |
| Negative prompt | What to avoid | "Do not include personal data." In image models, elements to exclude ("no text, no watermark") |
| Role / persona | Who the model should act as | "You are a support lead." |
Techniques
| Technique | How | Use when |
|---|---|---|
| Zero-shot | Instruction only, no examples | Simple, common tasks |
| Single-shot (one-shot) | One example | Show a format once |
| Few-shot | Several input → output examples | Consistent format or labels; tricky classification |
| Chain-of-thought | Ask the model to reason step by step before answering | Multi-step reasoning, maths, logic |
| Prompt templates | A reusable prompt with variables filled at run time | The same task across many inputs (24) |
Exam traps
- Few-shot vs fine-tuning. Few-shot puts examples in the prompt; nothing is trained.
- Zero-shot means no instructions. It means no examples.
- Chain-of-thought for a one-word lookup. It adds tokens and latency for no gain.
References
- AIF-C01 exam guide, Domain 3 — checked Oct 19, 2026
- Bedrock prompt engineering concepts — checked Oct 19, 2026
Check your understanding
You add three labelled examples to the prompt. Technique?Show answerHide answer
Answer
Few-shot prompting.A maths word problem keeps going wrong. Technique?Show answerHide answer
Answer
Chain-of-thought.Which construct tells an image model what to leave out?Show answerHide answer
Answer
A negative prompt.