CCDV-F Prompt and Context Engineering Practice Test

← All CCDV-F mock tests · Claude Developer course

Practice test for CCDV-F domain D6 Prompt and Context Engineering (15% of the exam): 20 questions drawn at random from a bank of 50, 20 minutes, with an explanation for every option. Retake it to get a different set.

📚 Exam guide v1.1 (exams from 7 Dec 2026)🔄 Checked: 24 Nov 2026📝 Original practice questions, not real exam content
Advertisement

What this mock test covers

Questions cover every official v1.1 skill in this domain. Lessons for this domain:

Advertisement

Sample questions with answers

These sample items show the style of the questions. They are original practice items written against the official CCDV-F v1.1 skills.

1. Which fallback parsing approach is safe when structured outputs cannot be used?

  • Extract a candidate JSON object, validate it with a schema, and return None (fail closed) if it is invalid
  • Use eval() on the text
  • Accept partial objects
  • Replace missing fields with guesses

Answer: Extract a candidate JSON object, validate it with a schema, and return None (fail closed) if it is invalid. Never pass half-parsed data downstream.

2. Which statement about the deprecated output_format parameter on messages.create is correct?

  • Use output_config: {format: {…}} instead; messages.parse handles this for Pydantic models
  • output_format is the only way to get JSON
  • output_format is required for tools
  • output_format enables citations

Answer: Use output_config: {format: {…}} instead; messages.parse handles this for Pydantic models. output_format on create is deprecated.

3. A prompt template uses Python f-strings and breaks when a JSON example with braces is added. What is a simple fix?

  • Use string.Template with $placeholders, which does not clash with braces
  • Remove the JSON example
  • Double every brace manually forever
  • Use eval to build the prompt

Answer: Use string.Template with $placeholders, which does not clash with braces. substitute() also fails loudly on missing values.

4. Why split a task into extract → generate → review prompts instead of one large prompt?

  • Each step has one job that can be tested and debugged, and code controls the flow
  • Chains always use fewer tokens
  • Claude cannot follow long prompts
  • Chains make the API stateful

Answer: Each step has one job that can be tested and debugged, and code controls the flow. Reliability and testability.

5. Which two items should be logged with each prompt-chain step for traceability? (Choose TWO.)

  • The prompt version and a hash of its text
  • The model that answered and the request ID
  • The API key
  • The local CPU temperature

Answer: The prompt version and a hash of its text and The model that answered and the request ID. Identifies exactly which prompt ran. Identifies the model and the request.

6. A prompt engineer wants consistent labels on Claude Opus 5.5 and sets temperature to 0. What happens with the Python SDK 2.x?

  • A TypeError before any request, because temperature is no longer a parameter
  • More consistent labels
  • A warning only
  • The request succeeds on Opus 5.5 only

Answer: A TypeError before any request, because temperature is no longer a parameter. Use criteria, examples and schemas.

Advertisement

Frequently asked questions

How many questions are in the D6 practice test?

Each attempt draws 20 questions at random from a bank of 50 original questions.

Is this the real exam content?

No. All questions are original practice items written against the official v1.1 skills.

When should I take this test?

After finishing the lessons for this domain, and again in your final revision week.

How do I improve my score?

Read the explanation for every option, revise the linked lessons, then retake the test for a new set of questions.

Independent study material by SQA Tools. Not affiliated with, endorsed by or sponsored by Anthropic. Claude is a trademark of Anthropic. All questions are original practice items, not real exam content; the practice pass mark is not the official cut-off.