AnthropicPrompt Engineering and Structured Output

Prompting & Separation — CCAR-F Practice Question

A representative Claude Certified Architect - Foundations (CCAR-F) exam question on Prompting & Separation. Work through it below, then read why each option is right or wrong.

This question is part of the free Claude Certified Architect - Foundations practice test.

Short answer

The correct answer is D. Separate instruction layers and clearly delimit examples and untrusted data so precedence and purpose are explicit.

Clear structural boundaries reduce instruction ambiguity and help prevent untrusted data from being treated as higher-priority guidance.

The Question

A prompt contains policy, task instructions, examples, user data, and retrieved documents in one undifferentiated block. What is the best redesign?

ARandomize the order each request
BRemove the policy
CAdd more prose at the end
DSeparate instruction layers and clearly delimit examples and untrusted data so precedence and purpose are explicitCorrect

Why D is correct

Clear structural boundaries reduce instruction ambiguity and help prevent untrusted data from being treated as higher-priority guidance.

Why the other options are wrong

Option A: Randomize the order each request

Option A does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (D) is the only one that fully meets every constraint stated in the question.

Option B: Remove the policy

Option B does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (D) is the only one that fully meets every constraint stated in the question.

Option C: Add more prose at the end

Option C does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (D) is the only one that fully meets every constraint stated in the question.

Key idea: Prompting & Separation

Clear structural boundaries reduce instruction ambiguity and help prevent untrusted data from being treated as higher-priority guidance. On the CCAR-F exam, questions in the "Prompt Engineering and Structured Output" domain test whether you can map a scenario's constraints to the right choice. Read the requirement carefully, eliminate options that violate any single constraint, and pick the one that satisfies all of them with the least operational overhead.

Ready to see how you'd score?

Take the free practice quiz and find out which Claude Certified Architect - Foundations domains you need to focus on. No signup required.

Practice 5 similar questions

Same cert, same or adjacent domain. Use these after reviewing the explanation.

Related Claude Certified Architect - Foundations Practice Questions

Official sources used

Verify program and exam details at the source before scheduling.