CCDV-F domain drill
CCDV-F practice questions: Prompt and context engineering.
7 original questions on Prompt and context engineering, which carries 11% of the Claude Certified Developer – Foundations exam per the published guide. Study notes first, then the questions with an explanation for each. When this domain feels solid, take the timed CCDV-F practice exam and check the domain breakdown.
What to know about Prompt and context engineering
- System prompt versus user turn, examples, XML structure, prefilling, and long-context ordering.
- Managing conversation history: truncation, summarization, and what to keep verbatim.
Prompt and context engineering questions
A multi-turn assistant's history grows until requests fail. What is the sane fix?
Show answer
Answer: Summarize older turns and keep the most recent turns verbatim. Summarization keeps the useful state while trimming tokens; recent turns stay verbatim because they matter most. Cached tokens still occupy the context window, and max_tokens only caps output.
Where should a long reference document sit relative to the question in a prompt?
Show answer
Answer: Before the question, clearly delimited. Documents first, question last. Splitting across turns fragments the reference and confuses the conversation structure.
Which technique reduces the chance that instructions inside a document are followed?
Show answer
Answer: Wrap documents in tags, label them as data, and keep instructions outside them. Separate data from instructions. Putting the document in the system prompt does the opposite: it lends the content authority.
What is the benefit of putting the system prompt in the system parameter rather than the first user message?
Show answer
Answer: Standing instructions stay stable and separate, and the prefix caches well. Stable, separate, cacheable. The system prompt is still billed as input tokens.
How can you make an extraction prompt more reliable without changing the model?
Show answer
Answer: Add examples of input and expected output, including an edge case. Examples anchor format and edge behavior. A persona changes tone more than accuracy.
A prompt has grown to 300 lines with contradictory rules. What should you do?
Show answer
Answer: Refactor it: remove conflicts, group rules, and test against a golden set. Prompts need maintenance like code. A precedence rule leaves the contradictions in place.
Which is a good reason to summarize conversation history rather than truncate it?
Show answer
Answer: Summarization keeps decisions and state that truncation would drop. Keep the state, drop the words. Summaries are ordinary input tokens and are billed as such.
Next
- Timed CCDV-F practice exam: 53 questions in 120 minutes, scored against the 720 pass mark.
- All CCDV-F practice questions with a domain filter.
- The CCDV-F exam page: format, weights, registration, study path.
Other CCDV-F domains
FAQ
How much of the CCDV-F exam is prompt and context engineering?+
11% of the marks, per the published CCDV-F exam guide. The full domain list with weights is on the CCDV-F exam page.
Are these real CCDV-F exam questions?+
No. They are 7 original scenario questions written from the blueprint for this domain. Reproducing exam content would violate the candidate agreement.
How should I study prompt and context engineering for CCDV-F?+
Read the domain notes on this page, answer the questions with explanations hidden, then take the timed CCDV-F practice exam and check the per-domain breakdown for this domain.



