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

Prompt and context engineering

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.

Prompt and context engineering

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.

Prompt and context engineering

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.

Prompt and context engineering

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.

Prompt and context engineering

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.

Prompt and context engineering

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.

Prompt and context engineering

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

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.

Who wrote this

Matei Olaru

Matei Olaru

CEO, Your AI Department

Former public-company CEO, corporate attorney, and World Bank consultant. Runs the YAID Network and the partner relationship with Anthropic.

Michael Greenberg

Michael Greenberg

AI Product Lead, Your AI Department

AI at Google, Meta, and Samsung. Six patents. Leads member support and the certification prep guidance.

Claude Partner NetworkYour AI Department is a registered Claude Partner Network company. Our members sit these exams under our partner standing. Facts on this page were last checked on October 15, 2026.