A team reuses the same prompt for many customers, changing only the customer name and product. What should they build?
- Exam domain
- Prompt engineering and prompt tuning
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why C is the answer
A prompt template with variables
A prompt template keeps the fixed instructions and fills in variables, such as the customer name, at run time. It keeps prompts consistent and easy to maintain.
Remember: Reuse with a template.
In detail
- Fixed text plus variables.
- One place to improve.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A separate deployment per productWrong
Deployments per product multiply maintenance.
B. A long prompt that lists every customer at once, so the model can pick the right one each timeWrong
Listing everyone wastes the context window and leaks data.
C. A prompt template with variablesRight
Reuse with a template.
D. A new fine-tuned model per customerWrong
Tuning per customer is costly and unnecessary.
Use case
An illustrative scenario, not a real incident.
Illustrative: a renewal email template fills in name, plan and date for each customer.
See it in different ways
mindmap
root(("Template"))
n1["Fixed"]
n2["Instructions"]
n3["Format"]
n4["Variables"]
n5["customer"]
n6["product"]How to read this chart
- The centre is "Template".
- "Fixed" covers "Instructions", "Format".
- "Variables" covers "customer", "product".
flowchart LR S0["Write fixed instructions"] --> S1["Mark variables"] --> S2["Fill at run time"]
How to read this chart
- Read it in order: Write fixed instructions, then Mark variables, then Fill at run time.