Rubric
Contents — domains, guide and mocks

Model Selection and Optimization

CCDV-F · Domain 514 questions · 16.8% of the exam

Answer everything, then check. Each result links back to the lesson for the objective it came from.

0 of 14 answered0:00
  1. Question 1 · 5.1

    A document-review tool is tested with temperature set to 0.0 so results can be compared between builds. The test suite asserts that a given contract always produces one exact summary string. It passes locally and fails intermittently in CI.

    What is the underlying problem?

  2. Question 2 · 5.1

    A chat assistant works well for short sessions. After about forty turns, requests begin failing with a 400 error whose message says the prompt is too long. The user's messages are short throughout.

    Which two changes address the cause? (Select 2.)

  3. Question 3 · 5.1

    A team migrates a summarisation service to a model that supports adaptive thinking. Their code reads response.content[0].thinking before formatting the answer. After the migration, some requests raise an attribute error.

    What explains the failures?

  4. Question 4 · 5.1

    A retailer classifies product reviews into five sentiment-and-topic buckets. The prompt names the five buckets and describes each in a sentence. Output quality is inconsistent and new bucket names keep appearing.

    What is the most effective next step?

  5. Question 5 · 5.2

    A service already uses the official Python SDK with default settings. To “make it more resilient”, a developer adds a decorator that retries any exception up to three times with a fixed one-second delay. During a brief rate-limit event the service saturates its own worker pool and the incident lasts far longer than the limit did.

    What is the best correction?

  6. Question 6 · 5.2

    A chat UI streams responses. When Claude calls a tool, the front end sometimes throws a JSON parse error and drops the turn. The logs show it parsing the contents of each content_block_delta as it arrives.

    What is the correct handling?

  7. Question 7 · 5.2

    An architecture review asks how a new voice assistant should connect. The browser holds a live microphone session; the backend calls Claude for each utterance.

    Which description is accurate?

  8. Question 8 · 5.3

    A live-chat widget must acknowledge a customer message within one second. The task is classifying the message into one of eight intents. A trial on the most capable available model is accurate but takes three to four seconds per reply.

    What is the best change?

  9. Question 9 · 5.3

    After upgrading to a newer model, a service that extracts fields from invoices starts returning empty values for every document. The API returns HTTP 200, the token usage looks normal, and the logs show no errors. The extraction code reads response.content[0].text.

    What is the cause?

  10. Question 10 · 5.3

    A team is preparing to move a production agent to the next model release. They have an eval suite, prompts tuned over six months, and a hard-coded model id in three services.

    Which two steps should come first? (Select 2.)

  11. Question 11 · 5.4

    A documentation assistant sends a 30,000-token product manual in the system prompt, followed by a block containing the current date, which carries cache_control. The user's question is in messages. Cache creation tokens are high on every request and cache read tokens are always zero.

    What explains this, and what fixes it?

  12. Question 12 · 5.4

    After enabling prompt caching, a dashboard that plots input_tokens per request shows a dramatic drop, and the team reports a 95% cost saving to their manager. The monthly invoice falls by rather less.

    What is wrong with the measurement?

  13. Question 13 · 5.4

    A finance team asks for a monthly report of spend per product team. Each team has its own API key, and all of them share one workspace. An engineer proposes summing the usage fields their services already log.

    Which two approaches will answer the question? (Select 2.)

  14. Question 14 · 5.4

    An agent holds long conversations with a stable system prompt, a fixed set of tools and a history that grows by roughly 800 tokens per turn. Today it sets a single breakpoint at the end of the system prompt.

    What change most reduces cost over a twenty-turn conversation?

You can change answers until you check. Nothing is saved or sent anywhere.