A test design prompt includes the line: "Do not use real customer names in test data, and cover the checkout flow alone." Which prompt component is this line?
Choose one.
Constraints outline restrictions or special considerations the LLM must respect, and they specify how the instruction is applied to the input data.
The line forbids a kind of test data and narrows the scope to one flow. Both are restrictions on how the task is performed, which the syllabus calls constraints. It is not the instruction, because it does not name the task; it is not context, because it gives no background on the system; and it is not output format, because it does not describe the response's structure.
- Identify what the line does: it limits what the model may produce.
- Restrictions and special considerations map to the constraints component.
- Rule out instruction (the task), context (background) and output format (structure).
Exam tip: Limits on scope, data or behaviour = constraints.
CT-GenAI: Prompt Structure, Prompting Techniques and System vs User Prompts — the lesson that teaches this.