D3: Prompt Engineering Constructs
AWS Foundational AI Practitioner exam practice questions · 10 flashcards
Question
What is the instruction in a prompt?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Prompt Engineering Constructs practice questions and answers
- What is the instruction in a prompt?The task the model should perform.
- What is context in a prompt?Background information or data the model needs.
- What is input data in a prompt?The specific content to process, e.g. the text to summarize.
- What is an output indicator?Specifies the desired format, e.g. 'Answer in JSON'.
- What is a negative prompt?Specifies what to exclude, e.g. in image generation 'no text, no blur'.
- What is a system prompt vs user prompt?System prompt sets persistent role/rules; user prompt is the specific request.
- Why use delimiters or XML tags?To clearly separate instructions from data and reduce injection risk.
- What is persona/role in a prompt?Telling the model who it is, e.g. 'You are a tax expert'.
- What is prefill?Starting the model's response with given text to steer its format.
- Why include constraints?Limit length, style or scope to get usable output.