Last reviewed
Correct answer: A. Asking the model to approach a task from a specific perspective, like an experienced reviewer
Explanation
Role framing tells the model whose job it is doing before it starts. "Review this as a security-focused engineer", "edit this as a copyeditor working to house style", "read this as a sceptical fact-checker" — the task is identical each time and the output is not, because the role decides which things count as problems. The security reviewer flags the unvalidated input that the copyeditor reads straight past.
In an application the role goes in the system prompt; in a chat it is usually the first line. One sentence is enough to shift the result, and a full biography is not better than a precise clause.
Two limits keep it honest. A role changes emphasis, priorities and vocabulary — it does not grant knowledge the model does not have, so "as a doctor" is a lens, not a qualification. And it is not an override: a persona sets the angle inside the model's normal behaviour rather than switching any of that behaviour off.
Sources
“Setting a role in the system prompt focuses Claude's behavior and tone for your use case.”
Practise 4 questions on this topic
Take Advanced Prompting Techniques — Timed Test (4 questions) — scored instantly, explanation for every question, no login.