Skip to content
AWS Certified AI Practitioner (AIF-C01) Exam Prep

Lesson 23 of 34 · 6 min

x
23/34

Prompt Engineering Constructs and Techniques

Video lesson: AIF-C01 23/34: Prompt Engineering Constructs and Techniques

General background = widely taught prompt engineering; the guide names the constructs and techniques.

Constructs

ConstructIsExample
InstructionThe task"Summarise this ticket in three bullet points."
ContextBackground the model needsCustomer tier, product, policy excerpt
Input dataThe content to work onThe ticket text
Output indicatorThe format wanted"Return JSON with fields issue, urgency."
Negative promptWhat to avoid"Do not include personal data." In image models, elements to exclude ("no text, no watermark")
Role / personaWho the model should act as"You are a support lead."

Techniques

TechniqueHowUse when
Zero-shotInstruction only, no examplesSimple, common tasks
Single-shot (one-shot)One exampleShow a format once
Few-shotSeveral input → output examplesConsistent format or labels; tricky classification
Chain-of-thoughtAsk the model to reason step by step before answeringMulti-step reasoning, maths, logic
Prompt templatesA reusable prompt with variables filled at run timeThe 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

  1. AIF-C01 exam guide, Domain 3 — checked Oct 19, 2026
  2. Bedrock prompt engineering concepts — checked Oct 19, 2026

Check your understanding

  • You add three labelled examples to the prompt. Technique?Show answer

    Answer

    Few-shot prompting.
  • A maths word problem keeps going wrong. Technique?Show answer

    Answer

    Chain-of-thought.
  • Which construct tells an image model what to leave out?Show answer

    Answer

    A negative prompt.
Previous

Progress is saved in this browser.

Next Lesson