CCDV-F Practice Questions: Model Selection and Optimization Domain
Test your CCDV-F knowledge with 10 practice questions from the Model Selection and Optimization domain. Includes detailed explanations and answers.
CCDV-F Practice Questions
Master the Model Selection and Optimization Domain
Test your knowledge in the Model Selection and Optimization domain with these 10 practice questions. Each question is designed to help you prepare for the CCDV-F certification exam with detailed explanations to reinforce your learning.
Question 1
A developer is adding a Claude-powered routing step that labels inbound tickets as billing, account access, bug report, or sales. The team has already validated that simple instructions produce acceptable labels on a sample set. Workload matrix: - 2.5 million requests per month - Target: lowest practical cost and sub-second perceived latency - Task: short text classification into four known categories - Quality requirement: adequate label accuracy, not deep reasoning Which model choice is the best starting point?
Show Answer & Explanation
Correct Answer: C
Correct answer (C): Haiku is the best fit when a task is simple, high-volume, latency-sensitive, and cost-sensitive, provided evaluation shows the quality is sufficient. The scenario states that simple instructions already meet the labeling requirement, so paying for a higher-capability model or additional reasoning is not justified.
Why the other options are wrong:
- Option A: Opus may be attractive because it is the highest-capability tier, but the scenario does not require complex reasoning and explicitly prioritizes cost and latency.
- Option B: Sonnet is a strong balanced default for many production workloads, but this specific task is simple and already validated with straightforward instructions, making Haiku the better starting point.
- Option D: Extended thinking can help reasoning-heavy tasks, but this is a simple classification workload where added latency and token usage would not be justified.
Question 2
A SaaS product uses Claude to answer questions about a customer's 80-page policy manual. Each request sends the same system instructions and the same manual, followed by a short user question. Artifact: Per request input: 58,000 stable tokens + 80 changing tokens Request pattern: 40,000 requests/day per large customer Manual update frequency: once per quarter Current issue: input-token cost is much higher than expected What is the best primary optimization?
Show Answer & Explanation
Correct Answer: A
Correct answer (A): Prompt caching is most useful when many requests share a large, stable prefix or reusable context. Here, almost all input tokens come from the same manual and instructions repeated across many requests, while only a small user question changes. Caching the stable prefix can reduce repeated processing cost when the prompt is structured consistently around stable boundaries.
Why the other options are wrong:
- Option B: A larger model might improve quality in some cases, but the problem described is repeated input-token cost from stable context. Switching to Opus does not address that cost driver.
- Option C: Increasing output limits could raise cost and latency. The artifact shows the main issue is large repeated input, not insufficient answer length.
- Option D: Frequently changing content should not be placed in the cacheable prefix because it prevents cache reuse. The user question should remain outside the stable cached portion.
Question 3
A team is optimizing a Claude extraction prompt for invoices. Zero-shot prompting is cheap but misses edge cases. A 10-example prompt is accurate but too costly at production volume. A one-example prompt meets the target quality threshold in evaluation. Artifact: Evaluation results: - Zero-shot: 89% field accuracy, 900 input tokens/request - Single-shot: 96% field accuracy, 1,250 input tokens/request - Multi-shot with 10 examples: 97% field accuracy, 4,800 input tokens/request Production requirement: at least 95% field accuracy with lowest practical token cost Which prompt approach is most appropriate?
Show Answer & Explanation
Correct Answer: A
Correct answer (A): Examples can improve quality but increase token usage. The single-shot prompt meets the stated 95% quality requirement at much lower token cost than the 10-example prompt. Zero-shot is cheaper but fails the accuracy requirement, so the single-shot prompt is the best tradeoff.
Why the other options are wrong:
- Option B: Zero-shot has the lowest token cost, but it does not meet the required accuracy threshold.
- Option C: The 10-example prompt has slightly higher accuracy, but the requirement is to meet at least 95% with the lowest practical token cost.
- Option D: A stronger model may help in some cases, but the provided evaluation already identifies a prompt format that satisfies quality and cost constraints.
Question 4
A developer runs the same release-note summarization prompt five times in a test job. The summaries are all factually acceptable but use different phrasing and sentence order. Artifact: Run | Prompt hash | Model version | Key facts present | Exact string match 1 | 8f2a | pinned-v1 | Yes | baseline 2 | 8f2a | pinned-v1 | Yes | No 3 | 8f2a | pinned-v1 | Yes | No 4 | 8f2a | pinned-v1 | Yes | No 5 | 8f2a | pinned-v1 | Yes | No What is the most likely explanation and best testing adjustment?
Show Answer & Explanation
Correct Answer: A
Correct answer (A): Claude outputs can vary because LLM generation is based on probabilistic next-token prediction and sampling behavior. For acceptable summaries with different wording, tests should evaluate required facts, structure, and quality criteria rather than requiring exact string equality.
Why the other options are wrong:
- Option B: The artifact shows key facts are present, so there is no evidence that the SDK is dropping tokens. Retrying for an exact match treats normal variation as an integration failure.
- Option C: The summaries include the required facts, so the issue is not insufficient context. Adding a repository would increase cost and distraction without addressing non-determinism.
- Option D: Prompt caching can reduce repeated processing of static prompt content, but it does not guarantee identical generated outputs.
Question 5
A retail assistant builds each request from several sections and the team wants to add cache checkpointing. Artifact: 1. System behavior guide: stable for months, 2,000 tokens 2. Return policy: stable for weeks, 4,000 tokens 3. Product catalog excerpt: stable for one day, 16,000 tokens 4. Customer account history: unique per request, 3,000 tokens 5. Current customer question: unique per request, 200 tokens Where should the main cache checkpoint be placed for the best reuse?
Show Answer & Explanation
Correct Answer: A
Correct answer (A): The checkpoint should capture the stable reusable prefix: the behavior guide, return policy, and catalog excerpt. Placing it after section 3 maximizes reuse while excluding customer account history and the current question, which change per request and would reduce cache effectiveness.
Why the other options are wrong:
- Option B: Placing the checkpoint after the full prompt includes unique customer content, which makes reuse much less likely.
- Option C: Putting the checkpoint before the stable sections does not capture the reusable long prefix that drives the optimization.
- Option D: Account history may be important for answer quality, but it is unique per request, so including it in the checkpoint hurts reuse.
Question 6
A CI test calls Claude with the same prompt and compares the full response string to a stored golden response. The test is failing intermittently even though the answers remain semantically correct. Artifact: Run 1: "The renewal notice must be sent 30 days before expiration." Run 2: "Send the renewal notice at least 30 days before the policy expires." Run 3: "The notice deadline is 30 days before expiration." What is the best adjustment to the test strategy?
Show Answer & Explanation
Correct Answer: A
Correct answer (A): LLM outputs can vary across runs because generation is probabilistic and based on next-token prediction and sampling. For this type of CI check, exact string comparison is brittle when semantically correct answers can be phrased differently. The better test verifies required meaning, structured fields, or acceptance criteria rather than identical prose.
Why the other options are wrong:
- Option B: Exact wording comparison may be appropriate for deterministic code paths, but it is brittle for probabilistic model output when the meaning is correct.
- Option C: WebSockets or streaming-oriented transports affect response delivery and perceived responsiveness. They do not make model generation identical across runs.
- Option D: A larger context window does not guarantee identical wording. It can also increase cost and latency without fixing the test-design issue.
Question 7
A developer is optimizing a claims-assistant feature. Each request includes the same 45,000-token policy manual, then a different customer claim and a short question. Artifact: Prompt section | Changes per request? | Approx. tokens System instructions | Rarely | 700 Policy manual v3.2 | No, reused all day | 45,000 Customer claim | Yes | 1,200 User question | Yes | 80 What is the best prompt-caching plan?
Show Answer & Explanation
Correct Answer: A
Correct answer (A): Prompt caching is most useful when many requests share a large static prefix. The stable system instructions and policy manual are good cache candidates because they are reused across requests. Frequently changing claim details and user questions should come after the cached prefix rather than serving as cache anchors.
Why the other options are wrong:
- Option B: The customer claim and user question change on each request, so placing the checkpoint after them makes the reusable cached portion less effective or not reusable across requests.
- Option C: The generated answer changes, but caching applies to repeated static prompt content. Variable outputs do not prevent caching the shared policy manual prefix.
- Option D: Caching generated answers is not the prompt caching optimization described here, and it would not help with new claims that require fresh reasoning over different inputs.
Question 8
A developer is configuring two Claude-powered features in the same application. Artifact: - Feature A: autocomplete short product tags, target under 500 ms, low reasoning need - Feature B: analyze a failed deployment plan and propose a recovery sequence, target under 20 seconds, high reasoning need - Team goal: avoid unnecessary token spend while preserving quality where needed Which configuration is the BEST fit?
Show Answer & Explanation
Correct Answer: A
Correct answer (A): Fast mode fits the low-reasoning, tight-latency autocomplete feature, while higher effort or extended thinking fits the reasoning-heavy deployment recovery task where more latency is acceptable. Thinking settings should be matched to task complexity and latency budget because higher effort can increase token use and latency.
Why the other options are wrong:
- Option B: Extended thinking for both features wastes latency and tokens on the simple autocomplete task.
- Option C: Fast mode for both features may harm the reasoning-heavy recovery analysis, where quality depends on deeper deliberation.
- Option D: Higher effort is misplaced on the simple tagging task, and zero-shot alone does not address the need for deeper reasoning in recovery planning.
Question 9
A developer is building an internal contract review assistant. It summarizes clauses and flags unusual obligations for a legal operations team, but lawyers still review the final output. Artifact: Quality need: strong reasoning over long legal text Latency need: interactive responses under a few seconds when possible Budget: moderate; cannot use the highest-cost path for every request Risk: important, but not autonomous final decision-making Which model strategy is most appropriate as the default?
Show Answer & Explanation
Correct Answer: A
Correct answer (A): Sonnet is commonly the balanced default when an application needs strong quality while preserving better latency and cost than the most capable model. The task requires meaningful reasoning over legal text, so the smallest model for all cases is risky, but the scenario does not justify using the most expensive model for every request because lawyers review outputs and budget is moderate.
Why the other options are wrong:
- Option B: Haiku may reduce cost, but the scenario calls for strong reasoning over legal language. Choosing it for all reviews without validation would underweight quality requirements.
- Option C: Opus may help the hardest cases, but the scenario states a moderate budget and interactive latency needs. Using it for every clause is not the best default.
- Option D: Fast mode may improve latency, but skipping quality evaluation is inappropriate for a legal-review workflow with stated reasoning requirements.
Question 10
A team is tuning two Claude request paths in the same application. Artifact: | Path | Task | Latency goal | Quality concern | |---|---|---|---| | A | Rephrase a short chat message in a friendlier tone | Near realtime | Low complexity | | B | Analyze a multi-step incident report and rank likely root causes | Can wait longer | Complex reasoning | What is the best optimization choice?
Show Answer & Explanation
Correct Answer: A
Correct answer (A): Fast response modes are appropriate for simple, latency-sensitive interactions, while extended or adaptive thinking is most appropriate when complex reasoning quality is worth additional latency and token usage. The two paths have different complexity and latency requirements, so they should not be tuned identically.
Why the other options are wrong:
- Option B: Deeper thinking for the simple near-realtime path would add unnecessary latency and token usage without a matching quality need.
- Option C: Fast responses for the complex incident analysis path may under-serve the reasoning requirement where the team can tolerate additional latency.
- Option D: Model family and thinking mode should reflect task complexity; the artifact states Path B needs complex reasoning, so this option ignores the key requirement.
Ready to Accelerate Your CCDV-F Preparation?
Join thousands of professionals who are advancing their careers through expert certification preparation with FlashGenius.
- ✅ Unlimited practice questions across all CCDV-F domains
- ✅ Full-length exam simulations with real-time scoring
- ✅ AI-powered performance tracking and weak area identification
- ✅ Personalized study plans with adaptive learning
- ✅ Mobile-friendly platform for studying anywhere, anytime
- ✅ Expert explanations and study resources
Already have an account? Sign in here
About CCDV-F Certification
The CCDV-F certification validates your expertise in model selection and optimization and other critical domains. Our comprehensive practice questions are carefully crafted to mirror the actual exam experience and help you identify knowledge gaps before test day.
More CCDV-F Practice Questions by Domain
- CCDV-F Practice Questions: Applications and Integration — 33.1% of the exam
- CCDV-F Practice Questions: Agents and Workflows — 14.7% of the exam
- CCDV-F Practice Questions: Prompt and Context Engineering — 11.0% of the exam
- CCDV-F Practice Questions: Tools and MCPs — 10.6% of the exam
- CCDV-F Practice Questions: Security and Safety — 8.1% of the exam
- CCDV-F Practice Questions: Claude Code — 3.1% of the exam
- CCDV-F Practice Questions: Eval, Testing and Debugging — 2.6% of the exam
Want more? Take the free CCDV-F sample tests across all 8 domains, review the CCDV-F cheat sheet for last-minute revision, or work through the CCDV-F interactive guide.